[xwiki-users] List of groups that a user belongs to
Is it possible to get a list of all users that a user belongs to using velocity or groovy? The getAllMatchedUsers() method in the XWikiGroupService looks like it would do what I need but this does not seem to be exposed in the xwiki api for use in velocity/groovy? http://maven.xwiki.org/site/xwiki-core-parent/xwiki-core/apidocs/com/xpn/xwi... Radek Rekas
I am not sure if there is anything in the API but if you want access to the core and you have programming permission you can get it by following the instructions here: http://platform.xwiki.org/xwiki/bin/view/DevGuide/Scripting#HXWikiCoreAccess Once you have the core XWiki object and the XWikiContext you can get the group service by calling def coreGroupService = wiki.getGroupService(xc) (this is also possible in velocity if you have programming right.) Caleb Radek Rekas wrote:
Is it possible to get a list of all users that a user belongs to using velocity or groovy?
The getAllMatchedUsers() method in the XWikiGroupService looks like it would do what I need but this does not seem to be exposed in the xwiki api for use in velocity/groovy?
http://maven.xwiki.org/site/xwiki-core-parent/xwiki-core/apidocs/com/xpn/xwi...
Radek Rekas
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
On Wed, Jun 9, 2010 at 03:53, Radek Rekas <[email protected]> wrote:
Is it possible to get a list of all users that a user belongs to using velocity or groovy?
The getAllMatchedUsers() method in the XWikiGroupService looks like it would do what I need but this does not seem to be exposed in the xwiki api for use in velocity/groovy?
The public api entry point is $xwiki.rightsmanager, see http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-core/src/main/j... for the list of methods (we really need to include all plugins apis in the generated javadoc...).
http://maven.xwiki.org/site/xwiki-core-parent/xwiki-core/apidocs/com/xpn/xwi...
Radek Rekas
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
participants (3)
-
Caleb James DeLisle -
Radek Rekas -
Thomas Mortagne