public final class Roles
extends java.lang.Object
implements java.io.Serializable
Experimenter
,
ExperimenterGroup
,
Serialized FormConstructor and Description |
---|
Roles()
default constructor which assigns hard-coded values to all roles
|
Roles(long rootUserId,
java.lang.String rootUserName,
long systemGroupId,
java.lang.String systemGroupName,
long userGroupId,
java.lang.String userGroupName,
long guestUserId,
java.lang.String guestUserName,
long guestGroupId,
java.lang.String guestGroupName)
constructor which allows full specification of all roles
|
Modifier and Type | Method and Description |
---|---|
long |
getGuestGroupId() |
java.lang.String |
getGuestGroupName() |
long |
getGuestId() |
java.lang.String |
getGuestName() |
long |
getRootId() |
java.lang.String |
getRootName() |
long |
getSystemGroupId() |
java.lang.String |
getSystemGroupName() |
long |
getUserGroupId() |
java.lang.String |
getUserGroupName() |
boolean |
isRootUser(ome.model.meta.Experimenter user) |
boolean |
isSystemGroup(ome.model.meta.ExperimenterGroup group) |
boolean |
isUserGroup(ome.model.meta.ExperimenterGroup group) |
public Roles()
public Roles(long rootUserId, java.lang.String rootUserName, long systemGroupId, java.lang.String systemGroupName, long userGroupId, java.lang.String userGroupName, long guestUserId, java.lang.String guestUserName, long guestGroupId, java.lang.String guestGroupName)
public boolean isRootUser(ome.model.meta.Experimenter user)
public boolean isUserGroup(ome.model.meta.ExperimenterGroup group)
public boolean isSystemGroup(ome.model.meta.ExperimenterGroup group)
public long getRootId()
public java.lang.String getRootName()
Experimenter.getOmeName()
of the root userpublic long getGuestId()
public java.lang.String getGuestName()
Experimenter.getOmeName()
of the guest userpublic long getSystemGroupId()
public java.lang.String getSystemGroupName()
ExperimenterGroup.getName()
of the system grouppublic long getUserGroupId()
public java.lang.String getUserGroupName()
ExperimenterGroup.getName()
of the user grouppublic long getGuestGroupId()
public java.lang.String getGuestGroupName()
ExperimenterGroup.getName()
of the guest group