public class StaticGroupDirectory extends AbstractLogEnabled implements GroupDirectory
GroupDirectory
Modifier and Type | Class and Description |
---|---|
private static class |
StaticGroupDirectory.StaticGroup |
Modifier and Type | Field and Description |
---|---|
private static String |
__PARAMETER_GROUPS_DEFINITION |
private String |
_gdModelId |
private Map<String,Group> |
_groups |
private String |
_id |
private I18nizableText |
_label |
private Map<String,Object> |
_params |
Constructor and Description |
---|
StaticGroupDirectory() |
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.
|
List<Group> |
getGroups(int count,
int offset,
Map parameters)
Get 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.
|
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.
|
getLogger, setLogger
private static final String __PARAMETER_GROUPS_DEFINITION
private I18nizableText _label
private String _gdModelId
public StaticGroupDirectory()
public String getId()
GroupDirectory
getId
in interface GroupDirectory
public I18nizableText getLabel()
GroupDirectory
getLabel
in interface GroupDirectory
public void setId(String id)
GroupDirectory
setId
in interface GroupDirectory
id
- The idpublic void setLabel(I18nizableText label)
GroupDirectory
setLabel
in interface GroupDirectory
label
- The labelpublic String getGroupDirectoryModelId()
GroupDirectory
GroupDirectoryModel
extension pointgetGroupDirectoryModelId
in interface GroupDirectory
public Map<String,Object> getParameterValues()
GroupDirectory
getParameterValues
in interface GroupDirectory
public void init(String groupDirectoryModelId, Map<String,Object> paramValues) throws Exception
GroupDirectory
init
in interface GroupDirectory
groupDirectoryModelId
- The id of group directory extension pointparamValues
- The parameters' valuesException
- If an error occuredpublic Group getGroup(String groupID)
GroupDirectory
getGroup
in interface GroupDirectory
groupID
- The id of the group.public Set<Group> getGroups()
GroupDirectory
getGroups
in interface GroupDirectory
public Set<String> getUserGroups(UserIdentity userIdentity)
GroupDirectory
getUserGroups
in interface GroupDirectory
userIdentity
- The identity of the userpublic List<Group> getGroups(int count, int offset, Map parameters)
GroupDirectory
getGroups
in interface GroupDirectory
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.