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 Element
configElement
Base XML element.private org.slf4j.Logger
log
Class logger.private String
logPrefix
Parent parser's log prefix. -
Constructor Summary
-
Method Summary
Modifier and Type Method Description BeanDefinition
createCache(ParserContext parserContext)
Create the results cache.BeanDefinition
createManagedDataSource()
Create the data source bean definition.BeanDefinition
createMappingStrategy()
Create the result mapping strategy.BeanDefinition
createTemplateBuilder()
Create the definition of the template driven search builder.BeanDefinition
createValidator(Object dataSource)
Create the validator.String
getBeanMappingStrategyID()
Get the bean ID of an externally defined mapping strategy.String
getBeanSearchBuilderID()
Get the bean ID of an externally defined search builder.String
getBeanValidatorID()
Get the bean ID of an externally defined validator.String
getConnectionReadOnly()
Get the connectionReadOnly attribute value.private String
getLogPrefix()
The parent parser's log prefix.
-
Field Details
-
configElement
Base XML element. -
log
private final org.slf4j.Logger logClass logger. -
logPrefix
Parent parser's log prefix.
-
-
Constructor Details
-
V2Parser
Creates a new V2Parser with the supplied RelationalDatabase element.- Parameters:
config
- RelationalDatabase elementprefix
- the parent parser's log prefix.
-
-
Method Details
-
createManagedDataSource
Create the data source bean definition. SeeManagedConnectionParser
.- Returns:
- data source bean definition
-
getConnectionReadOnly
Get the connectionReadOnly attribute value.- Returns:
- whether connections should be read only
-
getBeanSearchBuilderID
Get the bean ID of an externally defined search builder.- Returns:
- search builder bean ID
-
createTemplateBuilder
Create the definition of the template driven search builder.- Returns:
- the bean definition for the template search builder.
-
getBeanMappingStrategyID
Get the bean ID of an externally defined mapping strategy.- Returns:
- mapping strategy bean ID
-
createMappingStrategy
Create the result mapping strategy. SeeMappingStrategy
.- Returns:
- mapping strategy
-
getBeanValidatorID
Get the bean ID of an externally defined validator.- Returns:
- validator bean ID
-
createValidator
Create the validator. SeeValidator
.- Parameters:
dataSource
- to provide to the validator- Returns:
- validator
-
createCache
Create the results cache. SeeCacheConfigParser
.- Parameters:
parserContext
- bean parser context- Returns:
- results cache
-
getLogPrefix
The parent parser's log prefix.- Returns:
- the log prefix.
-