public interface GroupService
Service that provides user and group related information.
| Modifier and Type | Interface and Description | 
|---|---|
static class  | 
GroupService.GroupSearchScope
Defines the scope in which to apply a group search. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
createGroup(Group group)
 | 
Optional<Group> | 
findGroup(com.edorasware.api.query.Predicate predicate,
         GroupService.GroupSearchScope searchScope)
Finds the  
Group that matches the given predicate. | 
com.google.common.collect.ImmutableList<Group> | 
findGroups(com.edorasware.api.query.Predicate predicate,
          GroupService.GroupSearchScope searchScope)
Finds the  
Groups that match the given predicate. | 
Group | 
getGroup(String groupId)
Returns the  
Group with the given id. | 
SystemGroups | 
getSystemGroups(String tenantId)
Returns the ids of the system groups for the specified tenant. 
 | 
String | 
updateGroup(Group group)
Updates an already persisted group. 
 | 
Group getGroup(String groupId)
Returns the Group with the given id.
groupId - the group id, not nullIllegalArgumentException - if the given group id is nullcom.edorasware.api.exception.EntityNotFoundException - if a group with the given id does not existSystemGroups getSystemGroups(String tenantId)
Returns the ids of the system groups for the specified tenant.
tenantId - the tenant id for which the system groups are returned, not nullRuntimeException - if the system groups cannot be foundOptional<Group> findGroup(com.edorasware.api.query.Predicate predicate, GroupService.GroupSearchScope searchScope)
Finds the Group that matches the given predicate.
predicate - the predicate to apply, never nullsearchScope - the boundaries within which to searchIllegalArgumentException - if the given predicate or search scope is nullIllegalStateException - if more than one matching group is foundcom.google.common.collect.ImmutableList<Group> findGroups(com.edorasware.api.query.Predicate predicate, GroupService.GroupSearchScope searchScope)
Finds the Groups that match the given predicate.
predicate - the predicate to apply, never nullsearchScope - the boundaries within which to searchIllegalArgumentException - if the given predicate or search scope is nullString createGroup(Group group)
Persists the given Group object as an AnyWorkObject
with type WorkObjectTypes.GROUP_TYPE.
group - the group to be created, not nullIllegalArgumentException - if the given group is nullString updateGroup(Group group)
Updates 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>
group - the group to be updated, not nullIllegalArgumentException - if the given group is null or the id of the group is undefinedCopyright © 2010 - 2018 edorasware ag. All Rights Reserved.