public static class SimplePermissionMapper.Builder extends Object
| Modifier and Type | Method and Description |
|---|---|
SimplePermissionMapper.Builder |
addMapping(Set<String> principals,
Set<String> roles,
PermissionVerifier permissionVerifier)
Add a new mapping to a
PermissionVerifier, if the PermissionMappable being mapped has a principal name that is in the Set of principals or of any of the assigned roles are matched this mapping will be a match. |
SimplePermissionMapper.Builder |
addMatchAllPrincipals(PermissionVerifier permissionVerifier)
Add a new mapping to a
PermissionVerifier, if the PermissionMappable being mapped has a principal or any of the assigned roles are matched this mapping will be a match. |
PermissionMapper |
build()
Build and return the resulting
PermissionMapper. |
SimplePermissionMapper.Builder |
setMappingMode(SimplePermissionMapper.MappingMode mappingMode)
Set the mapping mode that the newly created
PermissionMapper should use. |
public SimplePermissionMapper.Builder setMappingMode(SimplePermissionMapper.MappingMode mappingMode)
PermissionMapper should use.mappingMode - the mapping mode.this builder to allow chaining.public SimplePermissionMapper.Builder addMapping(Set<String> principals, Set<String> roles, PermissionVerifier permissionVerifier)
PermissionVerifier, if the PermissionMappable being mapped has a principal name that is in the Set of principals or of any of the assigned roles are matched this mapping will be a match.principals - the principal names to compare with the PermissionMappable principal.roles - the role names to compare with the roles being passed for mapping.permissionVerifier - the PermissionVerifier to use in the event of a resulting match.this builder to allow chaining.public SimplePermissionMapper.Builder addMatchAllPrincipals(PermissionVerifier permissionVerifier)
PermissionVerifier, if the PermissionMappable being mapped has a principal or any of the assigned roles are matched this mapping will be a match.permissionVerifier - the PermissionVerifier to use in the event of a resulting match.this builder to allow chaining.public PermissionMapper build()
PermissionMapper.PermissionMapperCopyright © 2018 JBoss by Red Hat. All rights reserved.