public interface GroupManager
Manager to retrieve current group information. All APIs are restricted to the current tenant unless specifically noted otherwise.
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
Group s 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.
|
Group getGroup(String groupId)
Returns the group with the given id.
groupId
- the group id, not nullEntityNotFoundException
- if a group with the given id does not existSystemGroups getCurrentSystemGroups()
Returns the current system groups.
Optional<Group> findGroup(Predicate predicate)
Finds the Group
that matches the given predicate.
predicate
- the predicate to apply, never nullIllegalStateException
- if more than one matching user is foundcom.google.common.collect.ImmutableList<Group> findGroups(Predicate predicate)
Finds the Group
s that match the given predicate.
predicate
- the predicate to apply, never 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 - 2019 edorasware ag. All Rights Reserved.