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:
org.springframework.beans.factory.xml.BeanDefinitionParser
Direct Known Subclasses:
AbstractEntityAttributeMatchFunctorBeanDefinitionParser, AbstractEntityGroupMatchFunctorBeanDefinitionParser, AbstractNameIDFormatSupportedMatchFunctorBeanDefinitionParser, AbstractRegexMatchFunctorBeanDefinitionParser, AbstractStringMatchFunctorBeanDefinitionParser, AndMatchFunctorBeanDefinitionParser, AnyMatchFunctorBeanDefinitionParser, AttributeFilterPolicyBeanDefinitionParser, AttributeRuleBeanDefinitionParser, NotMatchFunctorBeanDefinitionParser, NumOfAttributeValuesMatchFunctorBeanDefinitionParser, OrMatchFunctorBeanDefinitionParser, ScriptMatchFunctorBeanDefinitionParser

public abstract class BaseFilterBeanDefinitionParser
extends org.springframework.beans.factory.xml.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
private static org.opensaml.common.IdentifierGenerator idGen
          Generator of unique IDs.
 
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, org.springframework.beans.factory.support.AbstractBeanDefinition beanDefinition, org.springframework.beans.factory.xml.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
 

Field Detail

idGen

private static org.opensaml.common.IdentifierGenerator idGen
Generator of unique IDs.

Constructor Detail

BaseFilterBeanDefinitionParser

public BaseFilterBeanDefinitionParser()
Method Detail

resolveId

protected String resolveId(Element configElement,
                           org.springframework.beans.factory.support.AbstractBeanDefinition beanDefinition,
                           org.springframework.beans.factory.xml.ParserContext parserContext)

Overrides:
resolveId in class org.springframework.beans.factory.xml.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 © 1999-2012. All Rights Reserved.