Enum DummyRole

java.lang.Object
java.lang.Enum<DummyRole>
net.avcompris.commons3.web.it.utils.DummyRole
All Implemented Interfaces:
Serializable, Comparable<DummyRole>, java.lang.constant.Constable, EnumRole

public enum DummyRole extends Enum<DummyRole> implements EnumRole
  • Enum Constant Details

    • ANONYMOUS

      public static final DummyRole ANONYMOUS
    • REGULAR

      public static final DummyRole REGULAR
    • USERMGR

      public static final DummyRole USERMGR
    • SUPERVISOR

      public static final DummyRole SUPERVISOR
    • ADMIN

      public static final DummyRole ADMIN
    • SUPERADMIN

      public static final DummyRole SUPERADMIN
  • Method Details

    • values

      public static DummyRole[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static DummyRole 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
    • getRolename

      public String getRolename()
      Specified by:
      getRolename in interface EnumRole
    • getSuperRoles

      public EnumRole[] getSuperRoles()
      Specified by:
      getSuperRoles in interface EnumRole
    • getPermissions

      public EnumPermission[] getPermissions()
      Specified by:
      getPermissions in interface EnumRole