public final class Roles
extends java.lang.Object
implements java.io.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,
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(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 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(Experimenter user)
public boolean isUserGroup(ExperimenterGroup group)
public boolean isSystemGroup(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
Version: 5.4.4-ice35-b82
Copyright © 2018 The University of Dundee & Open Microscopy Environment. All Rights Reserved.