[xwiki-devs] Using the rightsmanager API
Hi, I tried the following script but, I do not get anything displayed on my page wen I save it: [xwiki version: 1.3.2.9174] #set($rightsAPI=$xwiki.rightsmanager) #set($groupsAPI=$rightsAPI.getGroupsAPI()) - (I hope this is right!) #set($list=$groupsAPI.getAllLocalGroupsNames()) - (I do not know if this is working or not...I tried all methods available..Global, Local, normal..) ##set($list=$rightsAPI.getAllGroupsNamesForMember($context.getUser())) - (This works) #set($temp =$xwiki.getUser()) ##$temp #foreach($grp in $list) * [$grp ] #end Nothing displayed on the page...whats the mistake? Thanks
Hi, On Fri, May 9, 2008 at 1:26 AM, Kamna Jain <[email protected]> wrote:
Hi,
I tried the following script but, I do not get anything displayed on my page wen I save it: [xwiki version: 1.3.2.9174]
#set($rightsAPI=$xwiki.rightsmanager) #set($groupsAPI=$rightsAPI.getGroupsAPI()) - (I hope this is right!)
#set($groupsAPI=$rightsAPI.getGroupsApi()) (see http://maven.xwiki.org/site/xwiki-core-parent/xwiki-core/apidocs/index.html)
#set($list=$groupsAPI.getAllLocalGroupsNames()) - (I do not know if this is working or not...I tried all methods available..Global, Local, normal..) ##set($list=$rightsAPI.getAllGroupsNamesForMember($context.getUser())) - (This works) #set($temp =$xwiki.getUser()) ##$temp #foreach($grp in $list) * [$grp ] #end
Nothing displayed on the page...whats the mistake?
Thanks _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne
participants (2)
-
Kamna Jain -
Thomas Mortagne