Class OptionsRoleMappingProvider
- java.lang.Object
-
- org.jboss.security.mapping.providers.OptionsRoleMappingProvider
-
- All Implemented Interfaces:
MappingProvider<RoleGroup>
public class OptionsRoleMappingProvider extends Object implements MappingProvider<RoleGroup>
Role Mapping Provider that picks up the roles from the options and then appends them to the passed Group- Since:
- Aug 24, 2006
- Version:
- $Revision$
- Author:
- Anil Saldhana
-
-
Constructor Summary
Constructors Constructor Description OptionsRoleMappingProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
init(Map<String,Object> opt)
Initialize the provider with the configured module optionsvoid
performMapping(Map<String,Object> contextMap, RoleGroup mappedObject)
Map the passed objectvoid
setMappingResult(MappingResult<RoleGroup> res)
Injected by the MappingContextboolean
supports(Class<?> p)
Whether this mapping provider supports mapping T
-
-
-
Method Detail
-
init
public void init(Map<String,Object> opt)
Description copied from interface:MappingProvider
Initialize the provider with the configured module options- Specified by:
init
in interfaceMappingProvider<RoleGroup>
-
setMappingResult
public void setMappingResult(MappingResult<RoleGroup> res)
Description copied from interface:MappingProvider
Injected by the MappingContext- Specified by:
setMappingResult
in interfaceMappingProvider<RoleGroup>
-
performMapping
public void performMapping(Map<String,Object> contextMap, RoleGroup mappedObject)
Description copied from interface:MappingProvider
Map the passed object- Specified by:
performMapping
in 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
-
supports
public boolean supports(Class<?> p)
Description copied from interface:MappingProvider
Whether this mapping provider supports mapping T- Specified by:
supports
in interfaceMappingProvider<RoleGroup>
- Returns:
- See Also:
MappingProvider.supports(Class)
-
-