|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface XWikiGroupService
Interface giving access to users and groups management.
| Method Summary | |
|---|---|
void |
addUserToGroup(java.lang.String user,
java.lang.String database,
java.lang.String group,
XWikiContext context)
|
int |
countAllGroupsNamesForMember(java.lang.String member,
XWikiContext context)
Return the number of groups containing provided member. |
int |
countAllMatchedGroups(java.lang.Object[][] matchFields,
XWikiContext context)
Return number of groups with provided constraints. |
int |
countAllMatchedUsers(java.lang.Object[][] matchFields,
XWikiContext context)
Return number of users with provided constraints. |
int |
countAllMembersNamesForGroup(java.lang.String group,
XWikiContext context)
Return the number of members provided group contains. |
void |
flushCache()
|
java.util.Collection<java.lang.String> |
getAllGroupsNamesForMember(java.lang.String member,
int nb,
int start,
XWikiContext context)
Get all groups containing provided member. |
java.util.List<?> |
getAllMatchedGroups(java.lang.Object[][] matchFields,
boolean withdetails,
int nb,
int start,
java.lang.Object[][] order,
XWikiContext context)
Search for all groups with provided constraints and in a provided order. |
java.util.Collection<java.lang.String> |
getAllMatchedMembersNamesForGroup(java.lang.String group,
java.lang.String matchField,
int nb,
int start,
java.lang.Boolean orderAsc,
XWikiContext context)
Get members of provided group. |
java.util.List<?> |
getAllMatchedUsers(java.lang.Object[][] matchFields,
boolean withdetails,
int nb,
int start,
java.lang.Object[][] order,
XWikiContext context)
Search for all users with provided constraints and in a provided order. |
java.util.Collection<java.lang.String> |
getAllMembersNamesForGroup(java.lang.String group,
int nb,
int start,
XWikiContext context)
Get all members provided group contains. |
void |
init(XWiki xwiki,
XWikiContext context)
|
void |
initCache(int iCapacity,
XWikiContext context)
|
void |
initCache(XWikiContext context)
|
java.util.List<java.lang.String> |
listAllGroups(XWikiContext context)
Deprecated. Use getAllMatchedGroups(Object[][], boolean, int, int, Object[][], XWikiContext). |
java.util.Collection<java.lang.String> |
listGroupsForUser(java.lang.String username,
XWikiContext context)
Deprecated. Use getAllGroupsNamesForMember(String, int, int, XWikiContext). |
java.util.List<java.lang.String> |
listMemberForGroup(java.lang.String s,
XWikiContext context)
Deprecated. Use getAllMembersNamesForGroup(String, int, int, XWikiContext). |
void |
removeUserOrGroupFromAllGroups(java.lang.String userOrGroupWiki,
java.lang.String userOrGroupSpace,
java.lang.String userOrGroupName,
XWikiContext context)
Remove user or group name from all groups. |
| Method Detail |
|---|
void init(XWiki xwiki,
XWikiContext context)
throws XWikiException
XWikiException
void initCache(XWikiContext context)
throws XWikiException
XWikiException
void initCache(int iCapacity,
XWikiContext context)
throws XWikiException
XWikiExceptionvoid flushCache()
java.util.Collection<java.lang.String> listGroupsForUser(java.lang.String username,
XWikiContext context)
throws XWikiException
getAllGroupsNamesForMember(String, int, int, XWikiContext).
XWikiException
void addUserToGroup(java.lang.String user,
java.lang.String database,
java.lang.String group,
XWikiContext context)
throws XWikiException
XWikiException
void removeUserOrGroupFromAllGroups(java.lang.String userOrGroupWiki,
java.lang.String userOrGroupSpace,
java.lang.String userOrGroupName,
XWikiContext context)
throws XWikiException
userOrGroupWiki - the name of the wiki of the member.userOrGroupSpace - the name of the space of the member.userOrGroupName - the name of the member.context - the XWiki context.
XWikiException - error when browsing groups.
java.util.List<java.lang.String> listMemberForGroup(java.lang.String s,
XWikiContext context)
throws XWikiException
getAllMembersNamesForGroup(String, int, int, XWikiContext).
XWikiException
java.util.List<java.lang.String> listAllGroups(XWikiContext context)
throws XWikiException
getAllMatchedGroups(Object[][], boolean, int, int, Object[][], XWikiContext).
XWikiException
java.util.List<?> getAllMatchedUsers(java.lang.Object[][] matchFields,
boolean withdetails,
int nb,
int start,
java.lang.Object[][] order,
XWikiContext context)
throws XWikiException
matchFields - the field to math with values. It is a table of table with :
withdetails - indicate if a List containing String names is returned or List
containing XWikiDocument.nb - the maximum number od result to return.start - the index of the first found user to return.order - the fields to order from. It is a table of table with :
context - the XWikiContext.
XWikiException - error when getting users.
java.util.List<?> getAllMatchedGroups(java.lang.Object[][] matchFields,
boolean withdetails,
int nb,
int start,
java.lang.Object[][] order,
XWikiContext context)
throws XWikiException
matchFields - the field to math with values. It is a table of table with :
withdetails - indicate if a List containing String names is returned or List
containing XWikiDocument.nb - the maximum number od result to return.start - the index of the first found group to return.order - the field to order from. It is a table of table with :
context - the XWikiContext.
XWikiException - error when getting groups.
int countAllMatchedUsers(java.lang.Object[][] matchFields,
XWikiContext context)
throws XWikiException
matchFields - the field to math with values. It is a table of table with :
context - the XWikiContext.
XWikiException - error when getting number of users.
int countAllMatchedGroups(java.lang.Object[][] matchFields,
XWikiContext context)
throws XWikiException
matchFields - the field to math with values. It is a table of table with :
context - the XWikiContext.
XWikiException - error when getting number of groups.
java.util.Collection<java.lang.String> getAllGroupsNamesForMember(java.lang.String member,
int nb,
int start,
XWikiContext context)
throws XWikiException
member - the name of the member (user or group).nb - the maximum number of result to return.start - the index of the first found member to return.context - the XWiki context.
Collection of String containing group name.
XWikiException - error when browsing groups.
java.util.Collection<java.lang.String> getAllMembersNamesForGroup(java.lang.String group,
int nb,
int start,
XWikiContext context)
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.context - the XWiki context.
Collection of String containing member name.
XWikiException - error when browsing groups.
java.util.Collection<java.lang.String> getAllMatchedMembersNamesForGroup(java.lang.String group,
java.lang.String matchField,
int nb,
int start,
java.lang.Boolean orderAsc,
XWikiContext context)
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.context - the XWiki context.
Collection of String containing member name.
XWikiException - error when browsing groups.
int countAllGroupsNamesForMember(java.lang.String member,
XWikiContext context)
throws XWikiException
member - the name of the member (user or group).context - the XWiki context.
XWikiException - error when getting number of users.
int countAllMembersNamesForGroup(java.lang.String group,
XWikiContext context)
throws XWikiException
group - the name of the group.context - the XWiki context.
XWikiException - error when getting number of groups.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||