org.jboss.security.mapping.providers
Class DeploymentRolesMappingProvider

java.lang.Object
  extended by org.jboss.security.mapping.providers.DeploymentRolesMappingProvider
All Implemented Interfaces:
org.jboss.security.mapping.MappingProvider<org.jboss.security.identity.RoleGroup>

public class DeploymentRolesMappingProvider
extends Object
implements org.jboss.security.mapping.MappingProvider<org.jboss.security.identity.RoleGroup>

A Role 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

Since:
Nov 1, 2006
Version:
$Revision$
Author:
Anil Saldhana

Constructor Summary
DeploymentRolesMappingProvider()
           
 
Method Summary
 void init(Map<String,Object> options)
           
 void performMapping(Map<String,Object> map, org.jboss.security.identity.RoleGroup mappedObject)
          Obtains the deployment roles via the context map and applies it on the mappedObject
 void setMappingResult(org.jboss.security.mapping.MappingResult<org.jboss.security.identity.RoleGroup> res)
           
 boolean supports(Class<?> p)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeploymentRolesMappingProvider

public DeploymentRolesMappingProvider()
Method Detail

init

public void init(Map<String,Object> options)
Specified by:
init in interface org.jboss.security.mapping.MappingProvider<org.jboss.security.identity.RoleGroup>

setMappingResult

public void setMappingResult(org.jboss.security.mapping.MappingResult<org.jboss.security.identity.RoleGroup> res)
Specified by:
setMappingResult in interface org.jboss.security.mapping.MappingProvider<org.jboss.security.identity.RoleGroup>

performMapping

public void performMapping(Map<String,Object> map,
                           org.jboss.security.identity.RoleGroup mappedObject)
Obtains the deployment roles via the context map and applies it on the mappedObject

Specified by:
performMapping in interface org.jboss.security.mapping.MappingProvider<org.jboss.security.identity.RoleGroup>
See Also:
MappingProvider.performMapping(Map, Object)

supports

public boolean supports(Class<?> p)
Specified by:
supports in interface org.jboss.security.mapping.MappingProvider<org.jboss.security.identity.RoleGroup>
See Also:
MappingProvider.supports(Class)


Copyright © 2009 JBoss Inc.. All Rights Reserved.