public final class Roles extends Object implements Serializable
Experimenter
,
ExperimenterGroup
,
Serialized FormModifier and Type | Field and Description |
---|---|
com.google.common.base.Predicate<Experimenter> |
IS_ROOT_USER |
com.google.common.base.Predicate<ExperimenterGroup> |
IS_SYSTEM_GROUP |
com.google.common.base.Predicate<ExperimenterGroup> |
IS_USER_GROUP |
Constructor and Description |
---|
Roles()
default constructor which assigns hard-coded values to all roles
|
Roles(long rootUserId,
String rootUserName,
long systemGroupId,
String systemGroupName,
long userGroupId,
String userGroupName,
long guestUserId,
String guestUserName,
long guestGroupId,
String guestGroupName)
constructor which allows full specification of all roles
|
Modifier and Type | Method and Description |
---|---|
long |
getGuestGroupId() |
String |
getGuestGroupName() |
long |
getGuestId() |
String |
getGuestName() |
long |
getRootId() |
String |
getRootName() |
long |
getSystemGroupId() |
String |
getSystemGroupName() |
long |
getUserGroupId() |
String |
getUserGroupName() |
boolean |
isRootUser(Experimenter user) |
boolean |
isSystemGroup(ExperimenterGroup group) |
boolean |
isUserGroup(ExperimenterGroup group) |
public final com.google.common.base.Predicate<Experimenter> IS_ROOT_USER
public final com.google.common.base.Predicate<ExperimenterGroup> IS_USER_GROUP
public final com.google.common.base.Predicate<ExperimenterGroup> IS_SYSTEM_GROUP
public Roles()
public boolean isRootUser(Experimenter user)
public boolean isUserGroup(ExperimenterGroup group)
public boolean isSystemGroup(ExperimenterGroup group)
public long getRootId()
public String getRootName()
Experimenter.getOmeName()
of the root userpublic long getGuestId()
public String getGuestName()
Experimenter.getOmeName()
of the guest userpublic long getSystemGroupId()
public String getSystemGroupName()
ExperimenterGroup.getName()
of the system grouppublic long getUserGroupId()
public String getUserGroupName()
ExperimenterGroup.getName()
of the user grouppublic long getGuestGroupId()
public String getGuestGroupName()
ExperimenterGroup.getName()
of the guest group
Version: 5.2.8-ice35-b57
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.