Class StringResultMappingStrategy
- java.lang.Object
-
- net.shibboleth.idp.attribute.resolver.dc.AbstractMappingStrategy<ResultSet>
-
- net.shibboleth.idp.attribute.resolver.dc.rdbms.StringResultMappingStrategy
-
- All Implemented Interfaces:
MappingStrategy<ResultSet>,ResultMappingStrategy
- Direct Known Subclasses:
StringResultMappingStrategy
public class StringResultMappingStrategy extends AbstractMappingStrategy<ResultSet> implements ResultMappingStrategy
A simpleResultMappingStrategythat assumes all columns in the result set should be mapped and that all values are strings.
-
-
Field Summary
Fields Modifier and Type Field Description private org.slf4j.LoggerlogClass logger.
-
Constructor Summary
Constructors Constructor Description StringResultMappingStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,IdPAttribute>map(ResultSet results)Maps the given results to a collection ofIdPAttributeindexed by the attribute's ID.-
Methods inherited from class net.shibboleth.idp.attribute.resolver.dc.AbstractMappingStrategy
getResultRenamingMap, isMultipleResultsAnError, isNoResultAnError, setMultipleResultsAnError, setNoResultAnError, setResultRenamingMap
-
-
-
-
Method Detail
-
map
@Nullable public Map<String,IdPAttribute> map(@Nonnull ResultSet results) throws ResolutionException
Maps the given results to a collection ofIdPAttributeindexed by the attribute's ID.- Specified by:
mapin interfaceMappingStrategy<ResultSet>- 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
-
-