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 Details

    • configElement

      private final Element configElement
      Base XML element.
    • log

      private final org.slf4j.Logger log
      Class logger.
    • logPrefix

      @Nonnull @NotEmpty private final String logPrefix
      Parent parser's log prefix.
  • Constructor Details

    • V2Parser

      public V2Parser​(@Nonnull Element config, @Nonnull @NotEmpty String prefix)
      Creates a new V2Parser with the supplied RelationalDatabase element.
      Parameters:
      config - RelationalDatabase element
      prefix - the parent parser's log prefix.
  • Method Details

    • createManagedDataSource

      @Nonnull public BeanDefinition createManagedDataSource()
      Create the data source bean definition. See ManagedConnectionParser.
      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. See MappingStrategy.
      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. See Validator.
      Parameters:
      dataSource - to provide to the validator
      Returns:
      validator
    • createCache

      @Nullable public BeanDefinition createCache​(@Nonnull ParserContext parserContext)
      Create the results cache. See CacheConfigParser.
      Parameters:
      parserContext - bean parser context
      Returns:
      results cache
    • getLogPrefix

      @Nonnull @NotEmpty private String getLogPrefix()
      The parent parser's log prefix.
      Returns:
      the log prefix.