public class RightsManagerPluginApi extends PluginApi<RightsManagerPlugin>
Modifier and Type | Field and Description |
---|---|
static String |
CONTEXT_LASTERRORCODE
Field name of the last error code inserted in context.
|
static String |
CONTEXT_LASTEXCEPTION
Field name of the last api exception inserted in context.
|
protected static org.slf4j.Logger |
LOGGER
The logging toolkit.
|
Constructor and Description |
---|
RightsManagerPluginApi(RightsManagerPlugin plugin,
XWikiContext context)
Create an instance of the Rights Manager plugin user api.
|
Modifier and Type | Method and Description |
---|---|
int |
countAllGroupsNamesForMember(String member)
Deprecated.
since 10.8RC1, use org.xwiki.user.script.GroupScriptService ($services.user.group) instead
|
int |
countAllMatchedMembersNamesForGroup(String group,
String filter)
Filters the members of the specified group using the given text and counts the results.
|
int |
countAllMembersNamesForGroup(String group)
Deprecated.
since 10.8RC1, use org.xwiki.user.script.GroupScriptService ($services.user.group) instead
|
Collection<String> |
getAllGroupsNamesForMember(String member)
Deprecated.
since 10.8RC1, use org.xwiki.user.script.GroupScriptService ($services.user.group) instead
|
Collection<String> |
getAllMatchedMembersNamesForGroup(String group,
String matchField,
int nb,
int start,
Boolean orderAsc)
Get members of provided group.
|
Collection<String> |
getAllMembersNamesForGroup(String group)
Deprecated.
since 10.8RC1, use org.xwiki.user.script.GroupScriptService ($services.user.group) instead
|
Collection<String> |
getAllMembersNamesForGroup(String group,
int nb,
int start)
Deprecated.
since 10.8RC1, use org.xwiki.user.script.GroupScriptService ($services.user.group) instead
|
RightsManagerGroupsApi |
getGroupsApi() |
RightsManagerRightsApi |
getRightsApi() |
RightsManagerUsersApi |
getUsersApi() |
getInternalPlugin, getProtectedPlugin, setPlugin
convert, convert, convert, convertAttachments, getAuthorizationManager, getContextualAuthorizationManager, getXWikiContext, hasAccess, hasAccessLevel, hasAdminRights, hasProgrammingRights, hasWikiAdminRights
public static final String CONTEXT_LASTERRORCODE
public static final String CONTEXT_LASTEXCEPTION
protected static final org.slf4j.Logger LOGGER
public RightsManagerPluginApi(RightsManagerPlugin plugin, XWikiContext context)
plugin
- the entry point of the Rights Manager plugin.context
- the XWiki context.public RightsManagerRightsApi getRightsApi()
public RightsManagerUsersApi getUsersApi()
public RightsManagerGroupsApi getGroupsApi()
@Deprecated public Collection<String> getAllGroupsNamesForMember(String member) throws XWikiException
member
- the name of the member (user or group).Collection
of String
containing group name.XWikiException
- error when browsing groups.@Deprecated public Collection<String> getAllMembersNamesForGroup(String group) throws XWikiException
group
- the name of the group.Collection
of String
containing member (user or group) name.XWikiException
- error when browsing groups.@Deprecated public Collection<String> getAllMembersNamesForGroup(String group, int nb, int start) throws XWikiException
group
- the name of the group.nb
- the maximum number of result to return.start
- the index of the first found user to return.Collection
of String
containing member (user or group) name.XWikiException
- error when browsing groups.public Collection<String> getAllMatchedMembersNamesForGroup(String group, String matchField, int nb, int start, Boolean orderAsc) throws XWikiException
group
- the group.matchField
- a string to search in result to filter.nb
- the maximum number of result to return.start
- the index of the first found user to return.orderAsc
- if true, the result is ordered ascendent, if false it descendant. If null no order is applied.Collection
of String
containing member name.XWikiException
- error when browsing groups.public int countAllMatchedMembersNamesForGroup(String group, String filter)
group
- the group whose members are going to be countedfilter
- the text used to filter the group membersgetAllMatchedMembersNamesForGroup(String, String, int, int, Boolean)
@Deprecated public int countAllGroupsNamesForMember(String member) throws XWikiException
member
- the name of the member (user or group).XWikiException
- error when getting number of users.@Deprecated public int countAllMembersNamesForGroup(String group) throws XWikiException
group
- the name of the group.XWikiException
- error when getting number of groups.Copyright © 2004–2022 XWiki. All rights reserved.