Enum Class PermissionAllowed

java.lang.Object
java.lang.Enum<PermissionAllowed>
edu.internet2.middleware.grouper.permissions.PermissionAllowed
All Implemented Interfaces:
Serializable, Comparable<PermissionAllowed>, Constable

public enum PermissionAllowed extends Enum<PermissionAllowed>
if allowed or disallowed
  • Enum Constant Details

    • ALLOWED

      public static final PermissionAllowed ALLOWED
      normal assignment if allowed
    • DISALLOWED

      public static final PermissionAllowed DISALLOWED
      disallow underneath an inherited allow to limit the scope of the allow
  • Method Details

    • values

      public static PermissionAllowed[] 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 PermissionAllowed 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
    • isDisallowed

      public abstract boolean isDisallowed()
      if disallowed
      Returns:
      true or false
    • fromDisallowedBoolean

      public static PermissionAllowed fromDisallowedBoolean(boolean disallowed)
      convert from disallowed boolean to the enum
      Parameters:
      disallowed -
      Returns:
      the permission allowed