public class SystemGroups extends Object
This class describes what group ids make up the system groups. For each tenant, the group ids are different. Within a tenant, the group ids never change. Even though this class
operates with ids, they are the ids of type String of the group work objects (work objects of entity type WorkObjectTypes.GROUP_TYPE
).
SystemRole
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
static SystemGroups |
from(String userGroupId,
String modelerGroupId,
String managerGroupId,
String administratorGroupId,
String supervisorGroupId,
String allUsersGroupId)
Creates a new
SystemGroups instance from the given system group ids. |
String |
getAdministratorGroupId()
Returns the id of the group that represents the administrators.
|
String |
getAllUsersGroupId()
Returns the id of the group that represents all users.
|
String |
getGroupId(SystemRole systemRole)
Returns the system group id for the given system role.
|
String |
getManagerGroupId()
Returns the id of the group that represents the managers.
|
String |
getModelerGroupId()
Returns the id of the group that represents the modelers.
|
Optional<SystemRole> |
getRole(String groupId)
Maps the given group id to a
SystemRole . |
String |
getSupervisorGroupId()
Returns the id of the group that represents the supervisors.
|
String |
getUserGroupId()
Returns the id of the group that represents the users.
|
int |
hashCode() |
String |
toString() |
public String getUserGroupId()
Returns the id of the group that represents the users.
public String getModelerGroupId()
Returns the id of the group that represents the modelers.
public String getManagerGroupId()
Returns the id of the group that represents the managers.
public String getAdministratorGroupId()
Returns the id of the group that represents the administrators.
public String getSupervisorGroupId()
Returns the id of the group that represents the supervisors.
public String getAllUsersGroupId()
Returns the id of the group that represents all users.
public String getGroupId(SystemRole systemRole)
Returns the system group id for the given system role.
systemRole
- the system rolepublic Optional<SystemRole> getRole(String groupId)
Maps the given group id to a SystemRole
.
groupId
- the group id to mappublic static SystemGroups from(String userGroupId, String modelerGroupId, String managerGroupId, String administratorGroupId, String supervisorGroupId, String allUsersGroupId)
Creates a new 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 - 2018 edorasware ag. All Rights Reserved.