Sorry I make a mistake writing the mail the used code is:
Vector XWikiRights = doc.getObjects(XWiki.XWikiRights);
for (Object singleObj : XWikiRights) {
Object entry = targetDoc.newObject(XWiki.XWikiRights);
entry.set(groups,singleObj.getProperty(groups).getValue());
Hi,
the code:
Jerome Velociter-2 wrote:
$entry.set(allow,$right.get(allow))
throws this Exception:
java.lang.NumberFormatException: For input string:
Deny---java.lang.NumberFormatException.forInputString(Unknown Source)
java.lang.NumberFormatException: For input string:
raffovi wrote:
Hi,
the code:
Jerome Velociter-2 wrote:
$entry.set(allow,$right.get(allow))
throws this Exception:
java.lang.NumberFormatException: For input string:
Deny---java.lang.NumberFormatException.forInputString(Unknown Source)
How can I copy automatically the rights, set on a page, to another page?
Thanks
raffo
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
How can I copy automatically the rights, set on a page, to another page?
something like
#set($sourceDoc=$xwiki.getDocument(YourSpace.YourSourceDoc))
#set($targetDoc=$xwiki.getDocument(YourSpace.YourTargetDoc))
#foreach($right in $sourceDoc.getObjects(XWiki.XWikiRights))