Enum Role

    • Enum Constant Detail

      • ADMIN

        public static final Role ADMIN
        Administrators have this role, and may have other more specific roles as well, such as GLOBAL_ADMIN or NETWORK_ADMIN.
      • GLOBAL_ADMIN

        public static final Role GLOBAL_ADMIN
        Administrators in the special global system administrators group have this role.
      • NETWORK_ADMIN

        public static final Role NETWORK_ADMIN
        Administrators in the special network system administrators group have this role.
      • BROKER

        public static final Role BROKER
        A broker is someone who can manage other users, and eventually receive commissions.
        IMPORTANT: All brokers also have the MEMBER role.
      • MEMBER

        public static final Role MEMBER
        A member is a regular user. Brokers and operators always have this role.
      • OPERATOR

        public static final Role OPERATOR
        An operator is a "sub-user" created by a member to manage his data. All operators also have the MEMBER role.
      • ALIAS_OPERATOR

        public static final Role ALIAS_OPERATOR
        An operator without group, that is, an alias of the own member
      • RESTRICTED_OPERATOR

        public static final Role RESTRICTED_OPERATOR
        An operator with group, that is, with restricted permissions
    • Method Detail

      • values

        public static Role[] 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 (Role c : Role.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Role 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
      • userManager

        public static Role[] userManager()
        Returns all roles which manages other users
      • isUserManager

        public boolean isUserManager()
        Returns whether this role a user manager (admin or broker)