Enum Class Auth.Logical

java.lang.Object
java.lang.Enum<Auth.Logical>
tech.riemann.nif.auth.aop.Auth.Logical
All Implemented Interfaces:
Serializable, Comparable<Auth.Logical>, Constable
Enclosing class:
Auth

public static enum Auth.Logical extends Enum<Auth.Logical>
逻辑关系枚举

定义多个角色或权限之间的逻辑关系

Author:
Kerbores(kerbores@riemann.tech)
  • Enum Constant Details

    • AND

      public static final Auth.Logical AND
      且关系 - 用户必须拥有所有指定的角色或权限
    • OR

      public static final Auth.Logical OR
      或关系 - 用户只需拥有任一指定的角色或权限
  • Method Details

    • values

      public static Auth.Logical[] 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 Auth.Logical 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