Enum Class Authorization

java.lang.Object
java.lang.Enum<Authorization>
com.caplin.permissioning.Authorization
All Implemented Interfaces:
Serializable, Comparable<Authorization>, Constable

public enum Authorization extends Enum<Authorization>
Defines the allowed types of authorization that can be applied to an action.
  • Enum Constant Details

    • ALLOW

      public static final Authorization ALLOW
      Allows authorization to perform the action
    • DENY

      public static final Authorization DENY
      Denies authorization to perform the action
    • NO_PERMISSION

      public static final Authorization NO_PERMISSION
      If the user has neither ALLOW or DENY permissions to perform the action
  • Method Details

    • values

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

      public static Authorization valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null