Class AttributeDisplayDescriptionFunction
- java.lang.Object
-
- net.shibboleth.idp.consent.logic.impl.AbstractAttributeDisplayFunction
-
- net.shibboleth.idp.consent.logic.impl.AttributeDisplayDescriptionFunction
-
- All Implemented Interfaces:
Function<IdPAttribute,String>
public class AttributeDisplayDescriptionFunction extends AbstractAttributeDisplayFunction
Function which returns the locale-aware display description of an attribute, defaulting to the attribute ID if the attribute has no display description.
-
-
Field Summary
Fields Modifier and Type Field Description private org.slf4j.LoggerlogLogger.
-
Constructor Summary
Constructors Constructor Description AttributeDisplayDescriptionFunction(javax.servlet.http.HttpServletRequest request, List<String> defaultLangauages, ReloadableService<AttributeTranscoderRegistry> transcoderService)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Map<Locale,String>getDisplayInfo(AttributeTranscoderRegistry registry, IdPAttribute attribute)Get the information to be displayed from the attribute.-
Methods inherited from class net.shibboleth.idp.consent.logic.impl.AbstractAttributeDisplayFunction
apply
-
-
-
-
Constructor Detail
-
AttributeDisplayDescriptionFunction
public AttributeDisplayDescriptionFunction(@Nonnull javax.servlet.http.HttpServletRequest request, @Nullable List<String> defaultLangauages, ReloadableService<AttributeTranscoderRegistry> transcoderService)Constructor.- Parameters:
request-HttpServletRequestused to get preferred languagesdefaultLangauages- list of fallback languages in order of decreasing preferencetranscoderService- the attribute transcoder service
-
-
Method Detail
-
getDisplayInfo
protected Map<Locale,String> getDisplayInfo(@Nonnull AttributeTranscoderRegistry registry, @Nonnull IdPAttribute attribute)
Get the information to be displayed from the attribute.- Specified by:
getDisplayInfoin classAbstractAttributeDisplayFunction- Parameters:
registry- theAttributeTranscoderRegistryto ask.attribute- the attribute to consider- Returns:
- the map of locale dependent information to be displayed
-
-