Class DeploymentRoleToRolesMappingProvider
- java.lang.Object
-
- org.jboss.security.mapping.providers.DeploymentRoleToRolesMappingProvider
-
- All Implemented Interfaces:
MappingProvider<RoleGroup>
public class DeploymentRoleToRolesMappingProvider extends Object implements MappingProvider<RoleGroup>
A Role to Roles Mapping Module that takes into consideration a principal to roles mapping that can be done in the assembly descriptor of jboss.xml, jboss-web.xml and jboss-app.xml. In this case principal denotes role to map other roles to.- Since:
- Jan 24, 2013
- Version:
- $Revision$
- Author:
- pskopek at redhat dot com
-
-
Constructor Summary
Constructors Constructor Description DeploymentRoleToRolesMappingProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinit(Map<String,Object> options)Initialize the provider with the configured module optionsvoidperformMapping(Map<String,Object> contextMap, RoleGroup mappedObject)Obtains the deployment roles via the context map and applies it on the mappedObjectvoidsetMappingResult(MappingResult<RoleGroup> res)Injected by the MappingContextbooleansupports(Class<?> p)Whether this mapping provider supports mapping T
-
-
-
Method Detail
-
init
public void init(Map<String,Object> options)
Description copied from interface:MappingProviderInitialize the provider with the configured module options- Specified by:
initin interfaceMappingProvider<RoleGroup>
-
setMappingResult
public void setMappingResult(MappingResult<RoleGroup> res)
Description copied from interface:MappingProviderInjected by the MappingContext- Specified by:
setMappingResultin interfaceMappingProvider<RoleGroup>
-
performMapping
public void performMapping(Map<String,Object> contextMap, RoleGroup mappedObject)
Obtains the deployment roles via the context map and applies it on the mappedObject- Specified by:
performMappingin interfaceMappingProvider<RoleGroup>- Parameters:
contextMap- A read-only contextual map that can provide information to the providermappedObject- an Object on which the mapping will be applied- See Also:
MappingProvider.performMapping(Map, Object)
-
supports
public boolean supports(Class<?> p)
Description copied from interface:MappingProviderWhether this mapping provider supports mapping T- Specified by:
supportsin interfaceMappingProvider<RoleGroup>- Returns:
- See Also:
MappingProvider.supports(Class)
-
-