Enum 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 Detail

      • 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 the Role.MEMBER role
    • 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 name
        NullPointerException - if the argument is null
      • isManagement

        public boolean isManagement()