Re: [xwiki-users] copy the rigths

2008-01-31 Thread raffovi
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());

Re: [xwiki-users] copy the rigths

2008-01-30 Thread raffovi
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:

Re: [xwiki-users] copy the rigths

2008-01-30 Thread Sergiu Dumitriu
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)

[xwiki-users] copy the rigths

2008-01-21 Thread Raffaele Viola
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

Re: [xwiki-users] copy the rigths

2008-01-21 Thread Jerome Velociter
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))