Class RDBMSDataConnectorParser.V2Parser
java.lang.Object
net.shibboleth.idp.attribute.resolver.spring.dc.rdbms.impl.RDBMSDataConnectorParser.V2Parser
- Enclosing class:
- RDBMSDataConnectorParser
Utility class for parsing v2 schema configuration.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateCache
(ParserContext parserContext) Create the results cache.Create the data source bean definition.Create the result mapping strategy.Create the definition of the template driven search builder.Create the validator.createValidator
(String dataSource) Create the validator.Get the bean ID of an externally defined mapping strategy.Get the bean ID of an externally defined search builder.Get the bean ID of an externally defined validator.Get the connectionReadOnly attribute value.private String
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
.- Returns:
- validator
-
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.
-