public interface GroupManager
Modifier and Type | Method and Description |
---|---|
com.edorasware.commons.core.entity.GroupId |
createGroup(Group group)
|
com.google.common.base.Optional<Group> |
findGroup(com.edorasware.commons.core.query.Predicate predicate)
Finds the
Group that matches the given predicate. |
com.google.common.collect.ImmutableList<Group> |
findGroups(com.edorasware.commons.core.query.Predicate predicate)
Finds the
Group s that match the given predicate. |
SystemGroups |
getCurrentSystemGroups()
Returns the current system groups.
|
Group |
getGroup(com.edorasware.commons.core.entity.GroupId groupId)
Returns the group with the given id.
|
com.edorasware.commons.core.entity.GroupId |
updateGroup(Group group)
Updates an already persisted group.
|
Group getGroup(com.edorasware.commons.core.entity.GroupId groupId)
groupId
- the group id, not nullcom.edorasware.commons.core.entity.EntityNotFoundException
- if a group with the given id does not existSystemGroups getCurrentSystemGroups()
com.google.common.base.Optional<Group> findGroup(com.edorasware.commons.core.query.Predicate predicate)
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(com.edorasware.commons.core.query.Predicate predicate)
Group
s that match the given predicate.predicate
- the predicate to apply, never nullcom.edorasware.commons.core.entity.GroupId createGroup(Group group)
group
- the group to be created, not nullIllegalArgumentException
- if the given group is nullcom.edorasware.commons.core.entity.GroupId updateGroup(Group group)
group
- the group to be updated, not nullIllegalArgumentException
- if the given group is null or the id of the group is undefinedCopyright © 2010 - 2017 edorasware ag. All Rights Reserved.