Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Note

This feature requires V4.1 and later.

...

Code Block
languagexml
 <DataConnector id="storageConnector" xsi:type="StorageService"
		storageServiceRef="shibboleth.StorageService"
		generatedAttributeIdgeneratedAttributeID="storageRecord">
	<ContextTemplate>org.example</ContextTemplate>
	<KeyTemplate>$resolutionContext.principal</KeyTemplate>
	<ResultCache expireAfterWrite="PT5M"/>
</DataConnector>

...

The connector may be supplied with beans of the following types:

In addition native bean IDs can be injected as follows:

  1. The StorageService instance is injected via the storageServiceRef attribute.

  2. The builder for the query can be specified as an externally defined bean via the executableSearchBuilderRef attribute (as a replacement for the <ContextTemplate> element and related elements). This allows for complete generality of the query-building process.

  3. The processing of the response can be specified with an externally defined bean via the mappingStrategyRef attribute (as a replacement for the <RecordMapping> element).

  4. The caching of results can be specified as an externally defined bean via the <ResultCacheBean> element (as a replacement for the <ResultCache> element).

  5. Rarely, a non-default Velocity engine can be injected via the templateEngine attribute.

...