Class SimpleStorageMappingStrategy
java.lang.Object
net.shibboleth.idp.attribute.resolver.dc.storage.impl.SimpleStorageMappingStrategy
- All Implemented Interfaces:
MappingStrategy<StorageRecord<?>>
,StorageMappingStrategy
MappingStrategy
for pulling data out of StorageRecord
.- Since:
- 4.1.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmap
(StorageRecord<?> results) Maps the given results to a collection ofIdPAttribute
indexed by the attribute's ID.
-
Field Details
-
attributeId
ID of the attribute to create.
-
-
Constructor Details
-
SimpleStorageMappingStrategy
Constructor.- Parameters:
id
- attribute ID to create
-
-
Method Details
-
map
@Nonnull @NonnullElements public Map<String,IdPAttribute> map(@Nonnull StorageRecord<?> results) throws ResolutionException Maps the given results to a collection ofIdPAttribute
indexed by the attribute's ID.- Specified by:
map
in interfaceMappingStrategy<StorageRecord<?>>
- Parameters:
results
- to map- Returns:
- the mapped attributes or null if none exist
- Throws:
ResolutionException
- thrown if there is a problem reading data or mapping it
-