public final class SystemGroups extends Object
GroupId, they are the ids of type AnyWorkObjectId of the group work objects (work objects of entity type Group.ENTITY_TYPE).SystemRole| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
static SystemGroups |
from(com.edorasware.commons.core.entity.GroupId userGroupId,
com.edorasware.commons.core.entity.GroupId modelerGroupId,
com.edorasware.commons.core.entity.GroupId managerGroupId,
com.edorasware.commons.core.entity.GroupId administratorGroupId,
com.edorasware.commons.core.entity.GroupId supervisorGroupId,
com.edorasware.commons.core.entity.GroupId allUsersGroupId)
Creates a new
SystemGroups instance from the given system group ids. |
com.edorasware.commons.core.entity.GroupId |
getAdministratorGroupId()
Returns the id of the group that represents the administrators.
|
com.edorasware.commons.core.entity.GroupId |
getAllUsersGroupId()
Returns the id of the group that represents all users.
|
com.edorasware.commons.core.entity.GroupId |
getGroupId(SystemRole systemRole)
Returns the system group id for the given system role.
|
com.edorasware.commons.core.entity.GroupId |
getManagerGroupId()
Returns the id of the group that represents the managers.
|
com.edorasware.commons.core.entity.GroupId |
getModelerGroupId()
Returns the id of the group that represents the modelers.
|
com.google.common.base.Optional<SystemRole> |
getRole(com.edorasware.commons.core.entity.GroupId groupId)
Maps the given group id to a
SystemRole. |
com.edorasware.commons.core.entity.GroupId |
getSupervisorGroupId()
Returns the id of the group that represents the supervisors.
|
com.edorasware.commons.core.entity.GroupId |
getUserGroupId()
Returns the id of the group that represents the users.
|
int |
hashCode() |
String |
toString() |
public com.edorasware.commons.core.entity.GroupId getUserGroupId()
public com.edorasware.commons.core.entity.GroupId getModelerGroupId()
public com.edorasware.commons.core.entity.GroupId getManagerGroupId()
public com.edorasware.commons.core.entity.GroupId getAdministratorGroupId()
public com.edorasware.commons.core.entity.GroupId getSupervisorGroupId()
public com.edorasware.commons.core.entity.GroupId getAllUsersGroupId()
public com.edorasware.commons.core.entity.GroupId getGroupId(SystemRole systemRole)
systemRole - the system rolepublic com.google.common.base.Optional<SystemRole> getRole(com.edorasware.commons.core.entity.GroupId groupId)
SystemRole.groupId - the group id to mappublic static SystemGroups from(com.edorasware.commons.core.entity.GroupId userGroupId, com.edorasware.commons.core.entity.GroupId modelerGroupId, com.edorasware.commons.core.entity.GroupId managerGroupId, com.edorasware.commons.core.entity.GroupId administratorGroupId, com.edorasware.commons.core.entity.GroupId supervisorGroupId, com.edorasware.commons.core.entity.GroupId allUsersGroupId)
SystemGroups instance from the given system group ids.userGroupId - the id of the user groupmodelerGroupId - the id of the modeler groupmanagerGroupId - the id of the manager groupadministratorGroupId - the id of the administrator groupsupervisorGroupId - the id of the supervisor groupallUsersGroupId - the id of the all users groupCopyright © 2010 - 2017 edorasware ag. All Rights Reserved.