Class SimpleStorageMappingStrategy
- java.lang.Object
-
- net.shibboleth.idp.attribute.resolver.dc.storage.impl.SimpleStorageMappingStrategy
-
- All Implemented Interfaces:
MappingStrategy<StorageRecord<?>>,StorageMappingStrategy
public class SimpleStorageMappingStrategy extends Object implements StorageMappingStrategy
MappingStrategyfor pulling data out ofStorageRecord.- Since:
- 4.1.0
-
-
Field Summary
Fields Modifier and Type Field Description private StringattributeIdID of the attribute to create.
-
Constructor Summary
Constructors Constructor Description SimpleStorageMappingStrategy(String id)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,IdPAttribute>map(StorageRecord<?> results)Maps the given results to a collection ofIdPAttributeindexed by the attribute's ID.
-
-
-
Method Detail
-
map
@Nonnull @NonnullElements public Map<String,IdPAttribute> map(@Nonnull StorageRecord<?> results) throws ResolutionException
Maps the given results to a collection ofIdPAttributeindexed by the attribute's ID.- Specified by:
mapin 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
-
-