Note |
---|
This feature requires V4.1 and later. |
...
Code Block | ||
---|---|---|
| ||
<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:
The StorageService instance is injected via the
storageServiceRef
attribute.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.The processing of the response can be specified with an externally defined bean via the
mappingStrategyRef
attribute (as a replacement for the<RecordMapping>
element).The caching of results can be specified as an externally defined bean via the
<ResultCacheBean>
element (as a replacement for the<ResultCache>
element).Rarely, a non-default Velocity engine can be injected via the
templateEngine
attribute.
...