org.jboss.security.microcontainer.beans
Class MappingPolicyBean

java.lang.Object
  extended by org.jboss.security.microcontainer.beans.BasePolicyBean<MappingPolicyModule,MappingInfo>
      extended by org.jboss.security.microcontainer.beans.MappingPolicyBean

public class MappingPolicyBean
extends BasePolicyBean<MappingPolicyModule,MappingInfo>

This class represents a mapping policy.

Author:
Stefan Guilhen

Field Summary
 
Fields inherited from class org.jboss.security.microcontainer.beans.BasePolicyBean
modules
 
Constructor Summary
MappingPolicyBean()
           
 
Method Summary
 Map<String,MappingInfo> getMappingInfoByType(String domainName)
           Groups the mapping modules according to their types, and creates a MappingInfo object for each group of mapping modules.
 MappingInfo getPolicyInfo(String domainName)
           Creates a security info object using the information contained in this policy bean.
 String toString()
           
 
Methods inherited from class org.jboss.security.microcontainer.beans.BasePolicyBean
getModules, setModules
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MappingPolicyBean

public MappingPolicyBean()
Method Detail

getMappingInfoByType

public Map<String,MappingInfo> getMappingInfoByType(String domainName)

Groups the mapping modules according to their types, and creates a MappingInfo object for each group of mapping modules.

Parameters:
domainName - the name of the application-policy where the mappings where specified.
Returns:
a Map<String,MappingInfo> containing the generated MappingInfo objects keyed by the type of their modules.

getPolicyInfo

public MappingInfo getPolicyInfo(String domainName)
Description copied from class: BasePolicyBean

Creates a security info object using the information contained in this policy bean.

Specified by:
getPolicyInfo in class BasePolicyBean<MappingPolicyModule,MappingInfo>
Parameters:
domainName - a String containing the security domain name of this policy.
Returns:
the generated info object.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009 JBoss Inc.. All Rights Reserved.