Enum AllowAccessMode
- java.lang.Object
-
- java.lang.Enum<AllowAccessMode>
-
- org.cyclos.model.system.configurations.AllowAccessMode
-
- All Implemented Interfaces:
Serializable,Comparable<AllowAccessMode>,HasMessageKey
public enum AllowAccessMode extends Enum<AllowAccessMode> implements HasMessageKey
Used to determine how users are allowed to access this configuration
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANYThe user can access from any URLCURRENT_ONLYThe user can access only from the current configuration URLCURRENT_OR_ANCESTORSThe user can access from the current configuration URL or any ancestor (default)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageKeygetMessageKey()static AllowAccessModevalueOf(String name)Returns the enum constant of this type with the specified name.static AllowAccessMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CURRENT_OR_ANCESTORS
public static final AllowAccessMode CURRENT_OR_ANCESTORS
The user can access from the current configuration URL or any ancestor (default)
-
CURRENT_ONLY
public static final AllowAccessMode CURRENT_ONLY
The user can access only from the current configuration URL
-
ANY
public static final AllowAccessMode ANY
The user can access from any URL
-
-
Method Detail
-
values
public static AllowAccessMode[] 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 (AllowAccessMode c : AllowAccessMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AllowAccessMode 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
-
getMessageKey
public MessageKey getMessageKey()
- Specified by:
getMessageKeyin interfaceHasMessageKey
-
-