Package org.cyclos.model.access
Enum PermissionAccountAccess
- java.lang.Object
-
- java.lang.Enum<PermissionAccountAccess>
-
- org.cyclos.model.access.PermissionAccountAccess
-
- All Implemented Interfaces:
Serializable,Comparable<PermissionAccountAccess>
public enum PermissionAccountAccess extends Enum<PermissionAccountAccess>
Define which accounts are required for the logged user to have a granted permission.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MYRequires a member with visible accounts.SYSTEMRequires an administrator with visible system accounts.SYSTEM_OR_USERRequires a manager with visible system or user accounts.USERRequires a manager with visible user accounts.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PermissionAccountAccessvalueOf(String name)Returns the enum constant of this type with the specified name.static PermissionAccountAccess[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MY
public static final PermissionAccountAccess MY
Requires a member with visible accounts.
-
USER
public static final PermissionAccountAccess USER
Requires a manager with visible user accounts.
-
SYSTEM
public static final PermissionAccountAccess SYSTEM
Requires an administrator with visible system accounts.
-
SYSTEM_OR_USER
public static final PermissionAccountAccess SYSTEM_OR_USER
Requires a manager with visible system or user accounts.
-
-
Method Detail
-
values
public static PermissionAccountAccess[] 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 (PermissionAccountAccess c : PermissionAccountAccess.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PermissionAccountAccess 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
-
-