@Manager public class DefaultGroupManager extends Object implements GroupManager
Default group manager which provides groups related information.
| Constructor and Description | 
|---|
DefaultGroupManager(GroupService groupService,
                   CurrentTenantService currentTenantService)  | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
createGroup(Group group)
 | 
Optional<Group> | 
findGroup(Predicate predicate)
Finds the  
Group that matches the given predicate. | 
com.google.common.collect.ImmutableList<Group> | 
findGroups(Predicate predicate)
Finds the  
Groups that match the given predicate. | 
SystemGroups | 
getCurrentSystemGroups()
Returns the current system groups. 
 | 
Group | 
getGroup(String groupId)
Returns the group with the given id. 
 | 
String | 
updateGroup(Group group)
Updates an already persisted group. 
 | 
public DefaultGroupManager(GroupService groupService, CurrentTenantService currentTenantService)
public Group getGroup(String groupId)
GroupManagerReturns the group with the given id.
getGroup in interface GroupManagergroupId - the group id, not nullpublic SystemGroups getCurrentSystemGroups()
GroupManagerReturns the current system groups.
getCurrentSystemGroups in interface GroupManagerpublic Optional<Group> findGroup(Predicate predicate)
GroupManagerFinds the Group that matches the given predicate.
findGroup in interface GroupManagerpredicate - the predicate to apply, never nullpublic com.google.common.collect.ImmutableList<Group> findGroups(Predicate predicate)
GroupManagerFinds the Groups that match the given predicate.
findGroups in interface GroupManagerpredicate - the predicate to apply, never nullpublic String createGroup(Group group)
GroupManagerPersists the given Group object as an AnyWorkObject
with type WorkObjectTypes.GROUP_TYPE.
createGroup in interface GroupManagergroup - the group to be created, not nullpublic String updateGroup(Group group)
GroupManagerUpdates an already persisted group. All group properties are updated except the following id’s:
<ul>
    <li>Group.id</li>
    <li>Group.externalId</li>
    <li>Group.tenantId</li>
</ul>
updateGroup in interface GroupManagergroup - the group to be updated, not nullCopyright © 2010 - 2019 edorasware ag. All Rights Reserved.