Package org.cyclos.model.access
Enum PermissionUserAccess
- java.lang.Object
-
- java.lang.Enum<PermissionUserAccess>
-
- org.cyclos.model.access.PermissionUserAccess
-
- All Implemented Interfaces:
Serializable,Comparable<PermissionUserAccess>
public enum PermissionUserAccess extends Enum<PermissionUserAccess>
Indicates if / which user access a permission is required. There are not MANAGEMENT_ADMIN / RELATIONSHIP_ADMIN because currently admins don't have own data which members also don't have.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MANAGEMENT_ANYThe permission requires user management over any type of userMANAGEMENT_MEMBERThe permission requires user management over membersMYThe permission is only applicable for the logged userMY_OR_RELATIONSHIPThe permission is either applicable to the logged user or a related user, which must have theRole.MEMBERroleNONEThe permission is not related to usersRELATIONSHIP_ANYThe permission requires user relationship over any type of userRELATIONSHIP_MEMBERThe permission requires user relationship over members
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisManagement()static PermissionUserAccessvalueOf(String name)Returns the enum constant of this type with the specified name.static PermissionUserAccess[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final PermissionUserAccess NONE
The permission is not related to users
-
MY
public static final PermissionUserAccess MY
The permission is only applicable for the logged user
-
MANAGEMENT_ANY
public static final PermissionUserAccess MANAGEMENT_ANY
The permission requires user management over any type of user
-
MANAGEMENT_MEMBER
public static final PermissionUserAccess MANAGEMENT_MEMBER
The permission requires user management over members
-
RELATIONSHIP_ANY
public static final PermissionUserAccess RELATIONSHIP_ANY
The permission requires user relationship over any type of user
-
RELATIONSHIP_MEMBER
public static final PermissionUserAccess RELATIONSHIP_MEMBER
The permission requires user relationship over members
-
MY_OR_RELATIONSHIP
public static final PermissionUserAccess MY_OR_RELATIONSHIP
The permission is either applicable to the logged user or a related user, which must have theRole.MEMBERrole
-
-
Method Detail
-
values
public static PermissionUserAccess[] 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 (PermissionUserAccess c : PermissionUserAccess.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PermissionUserAccess 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
-
isManagement
public boolean isManagement()
-
-