public interface GroupDirectory
Modifier and Type | Method and Description |
---|---|
Group |
getGroup(String groupID)
Returns a particular group.
|
String |
getGroupDirectoryModelId()
Get the id of the
GroupDirectoryModel extension point |
Set<Group> |
getGroups()
Returns all groups.
|
String |
getId()
Get the id of the group directory.
|
I18nizableText |
getLabel()
Get the label of the group directory.
|
Map<String,Object> |
getParameterValues()
Get the values of parameters (from group directory model)
|
Set<String> |
getUserGroups(UserIdentity userIdentity)
Get all groups a particular user is in.
|
Map<String,Object> |
group2JSON(String id,
boolean withUsers)
Get group
|
List<Map<String,Object>> |
groups2JSON(int count,
int offset,
Map parameters,
boolean withUsers)
Get groups
|
void |
init(String groupDirectoryModelId,
Map<String,Object> paramValues)
Initialize the group directory with given parameter values.
|
void |
setId(String id)
Set the id of the group directory.
|
void |
setLabel(I18nizableText label)
Set the label of the group directory.
|
I18nizableText getLabel()
void setLabel(I18nizableText label)
label
- The labelString getGroupDirectoryModelId()
GroupDirectoryModel
extension pointMap<String,Object> getParameterValues()
void init(String groupDirectoryModelId, Map<String,Object> paramValues) throws Exception
groupDirectoryModelId
- The id of group directory extension pointparamValues
- The parameters' valuesException
- If an error occuredGroup getGroup(String groupID)
groupID
- The id of the group.Set<Group> getGroups()
Set<String> getUserGroups(UserIdentity userIdentity)
userIdentity
- The identity of the userList<Map<String,Object>> groups2JSON(int count, int offset, Map parameters, boolean withUsers)
count
- The maximum number of groups to sax. (-1 to sax all)offset
- The offset to start with, first is 0.parameters
- Parameters for saxing user list differently, see implementation.withUsers
- true to also have the users of the groupsMap<String,Object> group2JSON(String id, boolean withUsers)
id
- The group's idwithUsers
- true to also have the users of the group