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 ConstantsEnum ConstantDescriptionIf multiple mappings are found the correspondingPermissionVerifierinstances will be combined using 'and'.If multiple mappings are found only the first will be used.If multiple mappings are found the correspondingPermissionVerifierinstances will be combined using 'or'.If multiple mappings are found the correspondingPermissionVerifierinstances will be combined using 'unless'.If multiple mappings are found the correspondingPermissionVerifierinstances will be combined using 'xor'. -
Method Summary
Modifier and TypeMethodDescriptionReturns 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 Details
-
FIRST_MATCH
If multiple mappings are found only the first will be used. -
AND
If multiple mappings are found the correspondingPermissionVerifierinstances will be combined using 'and'. Will assign permission which would be assigned by all mappings. -
OR
If multiple mappings are found the correspondingPermissionVerifierinstances will be combined using 'or'. Will assign permissions which would be assigned by at least one mapping. -
XOR
If multiple mappings are found the correspondingPermissionVerifierinstances will be combined using 'xor'. Will assign permissions which would be assigned by odd amount of mappings. -
UNLESS
If multiple mappings are found the correspondingPermissionVerifierinstances will be combined using 'unless'. Will assign permissions which would be assigned by first mapping but not by others.
-
-
Method Details
-
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
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
-