Class RDBMSDataConnectorParser.V2Parser
- java.lang.Object
-
- net.shibboleth.idp.attribute.resolver.spring.dc.rdbms.impl.RDBMSDataConnectorParser.V2Parser
-
- Enclosing class:
- RDBMSDataConnectorParser
protected static class RDBMSDataConnectorParser.V2Parser extends Object
Utility class for parsing v2 schema configuration.
-
-
Field Summary
Fields Modifier and Type Field Description private ElementconfigElementBase XML element.private org.slf4j.LoggerlogClass logger.private StringlogPrefixParent parser's log prefix.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BeanDefinitioncreateCache(ParserContext parserContext)Create the results cache.BeanDefinitioncreateManagedDataSource()Create the data source bean definition.BeanDefinitioncreateMappingStrategy()Create the result mapping strategy.BeanDefinitioncreateTemplateBuilder()Create the definition of the template driven search builder.BeanDefinitioncreateValidator(Object dataSource)Create the validator.StringgetBeanMappingStrategyID()Get the bean ID of an externally defined mapping strategy.StringgetBeanSearchBuilderID()Get the bean ID of an externally defined search builder.StringgetBeanValidatorID()Get the bean ID of an externally defined validator.StringgetConnectionReadOnly()Get the connectionReadOnly attribute value.private StringgetLogPrefix()The parent parser's log prefix.
-
-
-
Method Detail
-
createManagedDataSource
@Nonnull public BeanDefinition createManagedDataSource()
Create the data source bean definition. SeeManagedConnectionParser.- Returns:
- data source bean definition
-
getConnectionReadOnly
@Nullable public String getConnectionReadOnly()
Get the connectionReadOnly attribute value.- Returns:
- whether connections should be read only
-
getBeanSearchBuilderID
@Nullable public String getBeanSearchBuilderID()
Get the bean ID of an externally defined search builder.- Returns:
- search builder bean ID
-
createTemplateBuilder
@Nonnull public BeanDefinition createTemplateBuilder()
Create the definition of the template driven search builder.- Returns:
- the bean definition for the template search builder.
-
getBeanMappingStrategyID
@Nullable public String getBeanMappingStrategyID()
Get the bean ID of an externally defined mapping strategy.- Returns:
- mapping strategy bean ID
-
createMappingStrategy
@Nullable public BeanDefinition createMappingStrategy()
Create the result mapping strategy. SeeMappingStrategy.- Returns:
- mapping strategy
-
getBeanValidatorID
@Nullable public String getBeanValidatorID()
Get the bean ID of an externally defined validator.- Returns:
- validator bean ID
-
createValidator
@Nullable public BeanDefinition createValidator(Object dataSource)
Create the validator. SeeValidator.- Parameters:
dataSource- to provide to the validator- Returns:
- validator
-
createCache
@Nullable public BeanDefinition createCache(@Nonnull ParserContext parserContext)
Create the results cache. SeeCacheConfigParser.- Parameters:
parserContext- bean parser context- Returns:
- results cache
-
-