Right now we have dropPermissions which makes a specific guarantee, there will not be any programming
right for the duration of the request cycle.
Sometimes a user might want to drop permissions for the duration of the document rendering.
This would mean {{include}} macros, $doc.getRenderedContent() would allow permissions to be gained back
while the included document was being rendered and after the content of that document is finished
rendering, the permissions would be returned.
I think it would do more harm than good to break the promise that dropPermissions() makes so I propose
adding $doc.dropPermissions() to do this.
I think $doc.dropPermissions() vs. $context.dropPermissions() is intuitive and easily explained but if
anyone has another suggestion for a name, I'd be glad to hear it.
WDYT?
Caleb
Dear all,
I am not sure how to implement "rename page" in xeclipse via REST API.
In the current xmlrpc implementation, page rename changes the page name
of and keeps the page history at the same time.
However, in REST API, changing the page name means changes the resource
URL of the page.
This means that a new resource will be created.
For example, change from "wikis/xwiki/spaces/myspace/pages/oldPageName"
to "wikis/xwiki/spaces/myspace/pages/newName"
Here are my questions:
1. Will the old page resource be removed?
2. Will the old page history be kept and stored in the new page?
From REST API, I cannot find an http method to add page history
Best regards
Jun Han
Hi devs,
I'm having trouble with a listener to DocumentUpdatingEvent.
I need to add new objects to my document, depending on the new values of
some fields of an already existing object.
The problem is that, because the document is not saved yet, I can only see
the old values of the fields but I can't see the changes that were made. Is
there a method to get the new values?
I could use DocumentUpdatedEvent and see only the values but I would like to
avoid saving the document twice.
Thanks,
Vlad
I see that this patch removed parseMessage() entirely as evidenced by broken login tests.
Although I am very happy to see deprecated API removed, I'm not sure it's what you wanted.
Caleb
On 07/26/2011 04:04 AM, noreply(a)github.com wrote:
> Branch: refs/heads/feature-legacyprojects
> Home: https://github.com/xwiki/xwiki-platform
>
> Commit: f438eb421f58d22ca4a1e32aebdde36e08580448
> https://github.com/xwiki/xwiki-platform/commit/f438eb421f58d22ca4a1e32aebdd…
> Author: tmortagne <thomas.mortagne(a)gmail.com>
> Date: 2011-06-24 (Fri, 24 Jun 2011)
>
> Changed paths:
> M xwiki-platform-core/xwiki-platform-application-manager/xwiki-platform-application-manager-api/pom.xml
> M xwiki-platform-core/xwiki-platform-legacy/pom.xml
> R xwiki-platform-core/xwiki-platform-legacy/src/main/java/com/xpn/xwiki/plugin/ldap/LDAPPlugin.java
> R xwiki-platform-core/xwiki-platform-legacy/src/main/java/com/xpn/xwiki/plugin/ldap/LDAPPluginApi.java
> R xwiki-platform-core/xwiki-platform-legacy/src/main/java/com/xpn/xwiki/user/impl/LDAP/LDAPAuthServiceImpl.java
> R xwiki-platform-core/xwiki-platform-legacy/src/main/java/org/xwiki/annotation/internal/AnnotationVelocityContextInitializer.java
> R xwiki-platform-core/xwiki-platform-legacy/src/main/java/org/xwiki/legacy/internal/LegacyEventDispatcher.java
> R xwiki-platform-core/xwiki-platform-legacy/src/main/java/org/xwiki/observation/event/AbstractDocumentEvent.java
> R xwiki-platform-core/xwiki-platform-legacy/src/main/java/org/xwiki/observation/event/DocumentDeleteEvent.java
> R xwiki-platform-core/xwiki-platform-legacy/src/main/java/org/xwiki/observation/event/DocumentSaveEvent.java
> R xwiki-platform-core/xwiki-platform-legacy/src/main/java/org/xwiki/observation/event/DocumentUpdateEvent.java
> R xwiki-platform-core/xwiki-platform-legacy/src/main/resources/META-INF/components.txt
> R xwiki-platform-core/xwiki-platform-legacy/src/test/java/org/xwiki/observation/DocumentEventTest.java
> R xwiki-platform-core/xwiki-platform-legacy/src/test/java/org/xwiki/observation/event/LegacyEventDispatcherTest.java
> A xwiki-platform-core/xwiki-platform-legacy/xwiki-platform-legacy-annotation/pom.xml
> A xwiki-platform-core/xwiki-platform-legacy/xwiki-platform-legacy-annotation/src/main/java/org/xwiki/annotation/internal/AnnotationVelocityContextInitializer.java
> A xwiki-platform-core/xwiki-platform-legacy/xwiki-platform-legacy-annotation/src/main/resources/META-INF/components.txt
> A xwiki-platform-core/xwiki-platform-legacy/xwiki-platform-legacy-observation/pom.xml
> A xwiki-platform-core/xwiki-platform-legacy/xwiki-platform-legacy-observation/src/main/java/org/xwiki/observation/event/AbstractDocumentEvent.java
> A xwiki-platform-core/xwiki-platform-legacy/xwiki-platform-legacy-observation/src/main/java/org/xwiki/observation/event/DocumentDeleteEvent.java
> A xwiki-platform-core/xwiki-platform-legacy/xwiki-platform-legacy-observation/src/main/java/org/xwiki/observation/event/DocumentSaveEvent.java
> A xwiki-platform-core/xwiki-platform-legacy/xwiki-platform-legacy-observation/src/main/java/org/xwiki/observation/event/DocumentUpdateEvent.java
> A xwiki-platform-core/xwiki-platform-legacy/xwiki-platform-legacy-observation/src/main/java/org/xwiki/observation/legacy/LegacyEventDispatcher.java
> A xwiki-platform-core/xwiki-platform-legacy/xwiki-platform-legacy-observation/src/main/resources/META-INF/components.txt
> A xwiki-platform-core/xwiki-platform-legacy/xwiki-platform-legacy-observation/src/test/java/org/xwiki/observation/DocumentEventTest.java
> A xwiki-platform-core/xwiki-platform-legacy/xwiki-platform-legacy-observation/src/test/java/org/xwiki/observation/legacy/LegacyEventDispatcherTest.java
> A xwiki-platform-core/xwiki-platform-legacy/xwiki-platform-legacy-oldcore/pom.xml
> A xwiki-platform-core/xwiki-platform-legacy/xwiki-platform-legacy-oldcore/src/main/aspect/compatibility/com/xpn/xwiki/XWikiCompatibilityAspect.aj
> A xwiki-platform-core/xwiki-platform-legacy/xwiki-platform-legacy-oldcore/src/main/java/com/xpn/xwiki/plugin/ldap/LDAPPlugin.java
> A xwiki-platform-core/xwiki-platform-legacy/xwiki-platform-legacy-oldcore/src/main/java/com/xpn/xwiki/plugin/ldap/LDAPPluginApi.java
> A xwiki-platform-core/xwiki-platform-legacy/xwiki-platform-legacy-oldcore/src/main/java/com/xpn/xwiki/user/impl/LDAP/LDAPAuthServiceImpl.java
> M xwiki-platform-core/xwiki-platform-oldcore/pom.xml
> R xwiki-platform-core/xwiki-platform-oldcore/src/main/aspect/compatibility/com/xpn/xwiki/XWikiCompatibilityAspect.aj
> R xwiki-platform-core/xwiki-platform-oldcore/src/main/aspect/compatibility/com/xpn/xwiki/XWikiContextCompatibilityAspect.aj
> R xwiki-platform-core/xwiki-platform-oldcore/src/main/aspect/compatibility/com/xpn/xwiki/api/ApiCompatibilityAspect.aj
> R xwiki-platform-core/xwiki-platform-oldcore/src/main/aspect/compatibility/com/xpn/xwiki/api/ContextCompatibilityAspect.aj
> R xwiki-platform-core/xwiki-platform-oldcore/src/main/aspect/compatibility/com/xpn/xwiki/api/DocumentCompatibilityAspect.aj
> R xwiki-platform-core/xwiki-platform-oldcore/src/main/aspect/compatibility/com/xpn/xwiki/api/StatsServiceCompatibilityAspect.aj
> R xwiki-platform-core/xwiki-platform-oldcore/src/main/aspect/compatibility/com/xpn/xwiki/api/XWikiCompatibilityAspect.aj
> R xwiki-platform-core/xwiki-platform-oldcore/src/main/aspect/compatibility/com/xpn/xwiki/doc/XWikiDocumentCompatibilityAspect.aj
> R xwiki-platform-core/xwiki-platform-oldcore/src/main/aspect/compatibility/com/xpn/xwiki/objects/BaseCollectionCompatibiityAspect.aj
> R xwiki-platform-core/xwiki-platform-oldcore/src/main/aspect/compatibility/com/xpn/xwiki/plugin/PluginApiAspect.aj
> R xwiki-platform-core/xwiki-platform-oldcore/src/main/aspect/compatibility/com/xpn/xwiki/stats/impl/StatsUtilCompatibilityAspect.aj
> R xwiki-platform-core/xwiki-platform-oldcore/src/main/aspect/compatibility/com/xpn/xwiki/web/UtilsCompatibilityAspect.aj
>
> Log Message:
> -----------
> XWIKI-6741: Move all retro compatibility aspects to xwiki-legacy
>
>
> _______________________________________________
> notifications mailing list
> notifications(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/notifications
>
Hi
I have forked and cloned XWiki Enterprise and XWiki commons from Github and
am trying to build Enterprise using Jenkins as part of an MSc project
looking at cloud software testing and development but am receiving the
following error:
message : Failed to execute goal
org.apache.maven.plugins:maven-remote-resources-plugin:1.2.1:bundle
(default) on project xwiki-commons-tool-license-resources: Error
creating remote resources manifest.
cause : Error creating remote resources manifest.
Stack trace :
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
execute goal org.apache.maven.plugins:maven-remote-resources-plugin:1.2.1:bundle
(default) on project xwiki-commons-tool-license-resources: Error
creating remote resources manifest.
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
.
.
.
.
Any pointers/help on how to solve this would be greatly appreciated.
Thank you very much
Ash Lamb (MSc candidate University of St Andrews)
p.s. apologies if this is not the correct place to ask this question but an
extensive web search and troubleshooting session have not been able to find
a fix for this.
Hi
Does anyone know where I can download
org.xwiki.platform:xwiki-platform-legacy:jar:3.2-SNAPSHOT
as it is the last unresolved artifact I need to build XWiki Enterprise.
Thanks!
--
Ash
Looking at
http://platform.xwiki.org/xwiki/bin/view/Features/XWikiRESTfulAPI#HCustomre…...
If I create this class:
package org.xwiki.contrib.rest;
import javax.ws.rs.DefaultValue;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import org.xwiki.component.annotation.Component;
import org.xwiki.rest.XWikiResource;
@Component("org.xwiki.contrib.rest.HelloWordResource")
@Path("/myresources/{myresourcename}")
class HelloWorldResource extends XWikiResource {
@GET
public String get(@PathParam("myresourcename")
@DefaultValue("world") String myresourcename)
{
return "Hello " + myresourcename;
}
}
Then what is the exact URI I use to access it. E.g. something like
http://localhost:8080/myresources/test? Not sure exactly what full URL is.
Thanks,
-Mark
Apologies in advance for the xpost.
Can anyone provide some help with the, probably old, xwiki TaskManager
app [1]..
I've installed it -semi successfully- on xwiki 3.0... but now some of
the stock macros have an odd look to them.
Perhaps something got overwritten in the css / look area on the xar
import. looks like css -> div.box.code got modified but I don't know where
[1] http://extensions.xwiki.org/xwiki/bin/view/Extension/Task+Manager+Applicati…
------
thanks
kevin.foote
I use $xwiki.searchDocuments(*'where doc.space='Main' order by doc.date desc
*', 5, 0) to query for recently modified pages under a specific space
"Main", but when I am executing it, error returns. Could anyone can tell me
what is the problem with the query
--
Best wishes,
许凌志(Jame Xu)
MOE KLINNS Lab and SKLMS Lab, Xi'an Jiaotong University
Department of Computer Science and Technology, Xi’an Jiaotong University