edu.internet2.middleware.shibboleth.common.config.attribute.filtering
Class AttributeFilterPolicyFactoryBean

java.lang.Object
  extended by org.springframework.beans.factory.config.AbstractFactoryBean
      extended by edu.internet2.middleware.shibboleth.common.config.attribute.filtering.AttributeFilterPolicyFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean

public class AttributeFilterPolicyFactoryBean
extends org.springframework.beans.factory.config.AbstractFactoryBean

Spring factory for AttributeFilterPolicys.


Field Summary
private  List<AttributeRule> attributeRules
          Filters to be used on attribute values.
private  String policyId
          Unique identifier for this policy.
private  MatchFunctor policyRequirement
          Requirement that must be met for this policy to apply.
 
Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
logger
 
Constructor Summary
AttributeFilterPolicyFactoryBean()
           
 
Method Summary
protected  Object createInstance()
          
 List<AttributeRule> getAttributeRules()
          Gets the attribute rules that are in effect if this policy is in effect.
 Class getObjectType()
          
 String getPolicyId()
          Gets the unique ID for this policy.
 MatchFunctor getPolicyRequirement()
          Gets the requirement for this policy.
 void setAttributeRules(List<AttributeRule> rules)
          Sets the attribute rules that are in effect if this policy is in effect.
 void setPolicyId(String id)
          Sets the unique ID for this policy.
 void setPolicyRequirement(MatchFunctor requirement)
          Sets the requirement for this policy.
 
Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
afterPropertiesSet, destroy, destroyInstance, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

policyId

private String policyId
Unique identifier for this policy.


policyRequirement

private MatchFunctor policyRequirement
Requirement that must be met for this policy to apply.


attributeRules

private List<AttributeRule> attributeRules
Filters to be used on attribute values.

Constructor Detail

AttributeFilterPolicyFactoryBean

public AttributeFilterPolicyFactoryBean()
Method Detail

getObjectType

public Class getObjectType()

Specified by:
getObjectType in interface org.springframework.beans.factory.FactoryBean
Specified by:
getObjectType in class org.springframework.beans.factory.config.AbstractFactoryBean

getPolicyId

public String getPolicyId()
Gets the unique ID for this policy.

Returns:
unique ID for this policy

setPolicyId

public void setPolicyId(String id)
Sets the unique ID for this policy.

Parameters:
id - unique ID for this policy

getPolicyRequirement

public MatchFunctor getPolicyRequirement()
Gets the requirement for this policy.

Returns:
requirement for this policy

setPolicyRequirement

public void setPolicyRequirement(MatchFunctor requirement)
Sets the requirement for this policy.

Parameters:
requirement - requirement for this policy

getAttributeRules

public List<AttributeRule> getAttributeRules()
Gets the attribute rules that are in effect if this policy is in effect.

Returns:
attribute rules that are in effect if this policy is in effect, never null

setAttributeRules

public void setAttributeRules(List<AttributeRule> rules)
Sets the attribute rules that are in effect if this policy is in effect.

Parameters:
rules - attribute rules that are in effect if this policy is in effect

createInstance

protected Object createInstance()
                         throws Exception

Specified by:
createInstance in class org.springframework.beans.factory.config.AbstractFactoryBean
Throws:
Exception


Copyright © 1999-2012. All Rights Reserved.