edu.internet2.middleware.shibboleth.common.config.attribute.resolver.dataConnector
Class LdapDataConnectorBeanDefinitionParser

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.resolver.AbstractResolutionPlugInBeanDefinitionParser
              extended by edu.internet2.middleware.shibboleth.common.config.attribute.resolver.dataConnector.BaseDataConnectorBeanDefinitionParser
                  extended by edu.internet2.middleware.shibboleth.common.config.attribute.resolver.dataConnector.LdapDataConnectorBeanDefinitionParser
All Implemented Interfaces:
org.springframework.beans.factory.xml.BeanDefinitionParser

public class LdapDataConnectorBeanDefinitionParser
extends BaseDataConnectorBeanDefinitionParser

Spring bean definition parser for configuring an LDAP data connector.


Field Summary
static QName TYPE_NAME
          LDAP data connector type name.
 
Fields inherited from class edu.internet2.middleware.shibboleth.common.config.attribute.resolver.dataConnector.BaseDataConnectorBeanDefinitionParser
FAILOVER_DATA_CONNECTOR_ELEMENT_NAME
 
Fields inherited from class edu.internet2.middleware.shibboleth.common.config.attribute.resolver.AbstractResolutionPlugInBeanDefinitionParser
DEPENDENCY_ELEMENT_NAME
 
Fields inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
ID_ATTRIBUTE
 
Constructor Summary
LdapDataConnectorBeanDefinitionParser()
           
 
Method Summary
protected  void doParse(String pluginId, Element pluginConfig, Map<QName,List<Element>> pluginConfigChildren, org.springframework.beans.factory.support.BeanDefinitionBuilder pluginBuilder, org.springframework.beans.factory.xml.ParserContext parserContext)
          Parses the plugin configuration.
protected  Class getBeanClass(Element element)
          
protected  org.springframework.beans.factory.config.RuntimeBeanReference processCredential(List<Element> credentials, org.springframework.beans.factory.xml.ParserContext parserContext)
          Processes a credential element.
protected  Map<String,String> processLDAPProperties(List<Element> propertyElems)
          Processes the LDAP properties provided in the configuration.
protected  String[] processReturnAttributes(List<Element> returnAttributes)
          Processes the return attributes provided in the configuration.
 
Methods inherited from class edu.internet2.middleware.shibboleth.common.config.attribute.resolver.AbstractResolutionPlugInBeanDefinitionParser
doParse, parseDependencies, resolveId
 
Methods inherited from class org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
doParse, 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

TYPE_NAME

public static final QName TYPE_NAME
LDAP data connector type name.

Constructor Detail

LdapDataConnectorBeanDefinitionParser

public LdapDataConnectorBeanDefinitionParser()
Method Detail

getBeanClass

protected Class getBeanClass(Element element)

Overrides:
getBeanClass in class org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser

doParse

protected void doParse(String pluginId,
                       Element pluginConfig,
                       Map<QName,List<Element>> pluginConfigChildren,
                       org.springframework.beans.factory.support.BeanDefinitionBuilder pluginBuilder,
                       org.springframework.beans.factory.xml.ParserContext parserContext)
Parses the plugin configuration.

Overrides:
doParse in class BaseDataConnectorBeanDefinitionParser
Parameters:
pluginId - unique ID of the plugin
pluginConfig - root plugin configuration element
pluginConfigChildren - immediate children of the root configuration element (provided to save from having to reparse them)
pluginBuilder - bean definition builder for the plugin
parserContext - current parsing context

processReturnAttributes

protected String[] processReturnAttributes(List<Element> returnAttributes)
Processes the return attributes provided in the configuration.

Parameters:
returnAttributes - return attributes provided in the configuration
Returns:
return attributes provided in the configuration

processLDAPProperties

protected Map<String,String> processLDAPProperties(List<Element> propertyElems)
Processes the LDAP properties provided in the configuration.

Parameters:
propertyElems - LDAP properties provided in the configuration
Returns:
LDAP properties provided in the configuration

processCredential

protected org.springframework.beans.factory.config.RuntimeBeanReference processCredential(List<Element> credentials,
                                                                                          org.springframework.beans.factory.xml.ParserContext parserContext)
Processes a credential element.

Parameters:
credentials - list containing the element to process.
parserContext - current parser context
Returns:
the bean definition for the credential


Copyright © 2006-2008 Internet2. All Rights Reserved.