org.jboss.security.microcontainer.beans
Class BasePolicyBean<M,I>

java.lang.Object
  extended by org.jboss.security.microcontainer.beans.BasePolicyBean<M,I>
Type Parameters:
M - the type of the modules used by the policy.
I - the type of the info object that the policy is capable of generating.
Direct Known Subclasses:
ACLPolicyBean, AuditPolicyBean, AuthorizationPolicyBean, BaseAuthenticationPolicy, IdentityTrustPolicyBean, MappingPolicyBean

public abstract class BasePolicyBean<M,I>
extends Object

Superclass of all policy beans that compose an ApplicationPolicyBean.

Author:
Stefan Guilhen

Field Summary
protected  List<M> modules
          the policy's set of modules.
 
Constructor Summary
BasePolicyBean()
           Creates an instance of BasePolicyBean.
 
Method Summary
 List<M> getModules()
           Gets a reference to collection of modules used by this policy.
abstract  I getPolicyInfo(String domainName)
           Creates a security info object using the information contained in this policy bean.
 void setModules(List<M> modules)
           Sets the collection of modules used by this policy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

modules

protected List<M> modules
the policy's set of modules.

Constructor Detail

BasePolicyBean

public BasePolicyBean()

Creates an instance of BasePolicyBean.

Method Detail

getModules

public List<M> getModules()

Gets a reference to collection of modules used by this policy.

Returns:
a reference to the List that contains the policy's modules.

setModules

public void setModules(List<M> modules)

Sets the collection of modules used by this policy.

Parameters:
modules - a List containing all modules to be used by this policy.

getPolicyInfo

public abstract I getPolicyInfo(String domainName)

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

Parameters:
domainName - a String containing the security domain name of this policy.
Returns:
the generated info object.


Copyright © 2009 JBoss Inc.. All Rights Reserved.