Package org.silverpeas.core.admin.user
Class DefaultGroupProvider
- java.lang.Object
-
- org.silverpeas.core.admin.user.DefaultGroupProvider
-
- All Implemented Interfaces:
GroupProvider
@Provider public class DefaultGroupProvider extends Object implements GroupProvider
- Author:
- mmoquillon
-
-
Constructor Summary
Constructors Constructor Description DefaultGroupProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Group>
getAllRootGroups()
Gets allGroupState.VALID
root groups in Silverpeas.List<Group>
getAllRootGroupsInDomain(String domainId)
Gets allGroupState.VALID
root groups of users that are defined in the specified domain in Silverpeas.Group
getGroup(String groupId)
Gets a group of users from the specified identifier.
-
-
-
Method Detail
-
getGroup
public Group getGroup(String groupId)
Description copied from interface:GroupProvider
Gets a group of users from the specified identifier.- Specified by:
getGroup
in interfaceGroupProvider
- Parameters:
groupId
- a group identifier as string.- Returns:
- a group instance of
Group
.
-
getAllRootGroups
public List<Group> getAllRootGroups()
Description copied from interface:GroupProvider
Gets allGroupState.VALID
root groups in Silverpeas. A root group is the group of users without any other parent group.- Specified by:
getAllRootGroups
in interfaceGroupProvider
- Returns:
- a list of root groups.
-
getAllRootGroupsInDomain
public List<Group> getAllRootGroupsInDomain(String domainId)
Description copied from interface:GroupProvider
Gets allGroupState.VALID
root groups of users that are defined in the specified domain in Silverpeas.- Specified by:
getAllRootGroupsInDomain
in interfaceGroupProvider
- Parameters:
domainId
- the unique identifier of a Silverpeas domain.- Returns:
- a list of root groups belonging to the specified domain.
-
-