Enum SimplePermissionMapper.MappingMode

java.lang.Object
java.lang.Enum<SimplePermissionMapper.MappingMode>
org.wildfly.security.authz.SimplePermissionMapper.MappingMode
All Implemented Interfaces:
Serializable, Comparable<SimplePermissionMapper.MappingMode>
Enclosing class:
SimplePermissionMapper

public static enum SimplePermissionMapper.MappingMode extends Enum<SimplePermissionMapper.MappingMode>
Mode defining behaviour when multiple mappings are found.
Author:
Darran Lofthouse
  • Enum Constant Details

    • FIRST_MATCH

      public static final SimplePermissionMapper.MappingMode FIRST_MATCH
      If multiple mappings are found only the first will be used.
    • AND

      public static final SimplePermissionMapper.MappingMode AND
      If multiple mappings are found the corresponding PermissionVerifier instances will be combined using 'and'. Will assign permission which would be assigned by all mappings.
    • OR

      public static final SimplePermissionMapper.MappingMode OR
      If multiple mappings are found the corresponding PermissionVerifier instances will be combined using 'or'. Will assign permissions which would be assigned by at least one mapping.
    • XOR

      public static final SimplePermissionMapper.MappingMode XOR
      If multiple mappings are found the corresponding PermissionVerifier instances will be combined using 'xor'. Will assign permissions which would be assigned by odd amount of mappings.
    • UNLESS

      public static final SimplePermissionMapper.MappingMode UNLESS
      If multiple mappings are found the corresponding PermissionVerifier instances will be combined using 'unless'. Will assign permissions which would be assigned by first mapping but not by others.
  • Method Details

    • values

      public static SimplePermissionMapper.MappingMode[] 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 SimplePermissionMapper.MappingMode 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