Hi,
On Fri, May 9, 2008 at 1:26 AM, Kamna Jain <kammy.scorpi(a)gmail.com> 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
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs
--
Thomas Mortagne