Package org.wildfly.security.authz
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.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AND
If multiple mappings are found the correspondingPermissionVerifier
instances will be combined using 'and'.FIRST_MATCH
If multiple mappings are found only the first will be used.OR
If multiple mappings are found the correspondingPermissionVerifier
instances will be combined using 'or'.UNLESS
If multiple mappings are found the correspondingPermissionVerifier
instances will be combined using 'unless'.XOR
If multiple mappings are found the correspondingPermissionVerifier
instances will be combined using 'xor'.
-
Constructor Summary
Constructors Modifier Constructor Description private
MappingMode()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SimplePermissionMapper.MappingMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static SimplePermissionMapper.MappingMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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 correspondingPermissionVerifier
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 correspondingPermissionVerifier
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 correspondingPermissionVerifier
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 correspondingPermissionVerifier
instances will be combined using 'unless'. Will assign permissions which would be assigned by first mapping but not by others.
-
-
Method Detail
-
values
public static SimplePermissionMapper.MappingMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SimplePermissionMapper.MappingMode c : SimplePermissionMapper.MappingMode.values()) System.out.println(c);
- 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 nameNullPointerException
- if the argument is null
-
-