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

java.lang.Object
  extended by org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
      extended by org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
          extended by edu.internet2.middleware.shibboleth.common.config.attribute.filtering.BaseFilterBeanDefinitionParser
All Implemented Interfaces:
BeanDefinitionParser
Direct Known Subclasses:
AbstractEntityGroupMatchFunctorBeanDefinitionParser, AbstractRegexMatchFunctorBeanDefinitionParser, AbstractStringMatchFunctorBeanDefinitionParser, AndMatchFunctorBeanDefinitionParser, AnyMatchFunctorBeanDefinitionParser, AttributeFilterPolicyBeanDefinitionParser, AttributeRuleBeanDefinitionParser, NotMatchFunctorBeanDefinitionParser, NumOfAttributeValuesMatchFunctorBeanDefinitionParser, OrMatchFunctorBeanDefinitionParser, ScriptMatchFunctorBeanDefinitionParser

public abstract class BaseFilterBeanDefinitionParser
extends AbstractSingleBeanDefinitionParser

Base class for Spring bean definition parsers within the filter engine configuration. This base class is responsible for generating an ID for the Spring bean that is unique within all the policy components loaded.


Field Summary
 
Fields inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
ID_ATTRIBUTE
 
Constructor Summary
BaseFilterBeanDefinitionParser()
           
 
Method Summary
protected  String getAbsoluteReference(Element configElement, String componentNamespace, String reference)
          Gets the absolute refrence given a possibly relative reference.
protected  String getQualifiedId(Element configElement, String componentNamespace, String localId)
          Generates an ID for a filter engine component.
protected  String resolveId(Element configElement, AbstractBeanDefinition beanDefinition, ParserContext parserContext)
          
 
Methods inherited from class org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
doParse, doParse, getBeanClass, getBeanClassName, getParentName, parseInternal
 
Methods inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
parse, postProcessComponentDefinition, registerBeanDefinition, shouldFireEvents, shouldGenerateId, shouldGenerateIdAsFallback
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseFilterBeanDefinitionParser

public BaseFilterBeanDefinitionParser()
Method Detail

resolveId

protected String resolveId(Element configElement,
                           AbstractBeanDefinition beanDefinition,
                           ParserContext parserContext)

Overrides:
resolveId in class AbstractBeanDefinitionParser

getQualifiedId

protected String getQualifiedId(Element configElement,
                                String componentNamespace,
                                String localId)
Generates an ID for a filter engine component. If the given localId is null a random one will be generated.

Parameters:
configElement - component configuration element
componentNamespace - namespace for the component
localId - local id or null
Returns:
unique ID for the componenent

getAbsoluteReference

protected String getAbsoluteReference(Element configElement,
                                      String componentNamespace,
                                      String reference)
Gets the absolute refrence given a possibly relative reference.

Parameters:
configElement - component configuration element
componentNamespace - namespace for the component
reference - reference to convert into absolute form
Returns:
absolute form of the reference


Copyright © 2006-2009 Internet2. All Rights Reserved.