public static enum SimplePermissionMapper.MappingMode extends Enum<SimplePermissionMapper.MappingMode>
Enum Constant and Description |
---|
AND
If multiple mappings are found the corresponding
PermissionVerifier 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 corresponding
PermissionVerifier instances will be combined using 'or'. |
UNLESS
If multiple mappings are found the corresponding
PermissionVerifier instances will be combined using 'unless'. |
XOR
If multiple mappings are found the corresponding
PermissionVerifier instances will be combined using 'xor'. |
Modifier and Type | Method and 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.
|
public static final SimplePermissionMapper.MappingMode FIRST_MATCH
public static final SimplePermissionMapper.MappingMode AND
PermissionVerifier
instances will be combined using 'and'.
Will assign permission which would be assigned by all mappings.public static final SimplePermissionMapper.MappingMode OR
PermissionVerifier
instances will be combined using 'or'.
Will assign permissions which would be assigned by at least one mapping.public static final SimplePermissionMapper.MappingMode XOR
PermissionVerifier
instances will be combined using 'xor'.
Will assign permissions which would be assigned by odd amount of mappings.public static final SimplePermissionMapper.MappingMode UNLESS
PermissionVerifier
instances will be combined using 'unless'.
Will assign permissions which would be assigned by first mapping but not by others.public static SimplePermissionMapper.MappingMode[] values()
for (SimplePermissionMapper.MappingMode c : SimplePermissionMapper.MappingMode.values()) System.out.println(c);
public static SimplePermissionMapper.MappingMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2020 JBoss by Red Hat. All rights reserved.