Enum BaseResourceBean.RoleLevel
- java.lang.Object
-
- java.lang.Enum<BaseResourceBean.RoleLevel>
-
- edu.cornell.mannlib.vitro.webapp.beans.BaseResourceBean.RoleLevel
-
- All Implemented Interfaces:
Serializable,Comparable<BaseResourceBean.RoleLevel>
- Enclosing class:
- BaseResourceBean
public static enum BaseResourceBean.RoleLevel extends Enum<BaseResourceBean.RoleLevel>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDisplayLabel()static BaseResourceBean.RoleLevelgetRoleByUri(String uri2)static BaseResourceBean.RoleLevelgetRoleFromLoginStatus(javax.servlet.http.HttpServletRequest req)StringgetShorthand()StringgetUpdateLabel()StringgetURI()static BaseResourceBean.RoleLevelvalueOf(String name)Returns the enum constant of this type with the specified name.static BaseResourceBean.RoleLevel[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PUBLIC
public static final BaseResourceBean.RoleLevel PUBLIC
-
SELF
public static final BaseResourceBean.RoleLevel SELF
-
EDITOR
public static final BaseResourceBean.RoleLevel EDITOR
-
CURATOR
public static final BaseResourceBean.RoleLevel CURATOR
-
DB_ADMIN
public static final BaseResourceBean.RoleLevel DB_ADMIN
-
NOBODY
public static final BaseResourceBean.RoleLevel NOBODY
-
-
Method Detail
-
values
public static BaseResourceBean.RoleLevel[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (BaseResourceBean.RoleLevel c : BaseResourceBean.RoleLevel.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BaseResourceBean.RoleLevel valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getURI
public String getURI()
-
getDisplayLabel
public String getDisplayLabel()
-
getUpdateLabel
public String getUpdateLabel()
-
getShorthand
public String getShorthand()
-
getRoleByUri
public static BaseResourceBean.RoleLevel getRoleByUri(String uri2)
-
getRoleFromLoginStatus
public static BaseResourceBean.RoleLevel getRoleFromLoginStatus(javax.servlet.http.HttpServletRequest req)
-
-