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.
-
Constructor Summary
Constructors Constructor Description AttributeDisplayDescriptionFunction(javax.servlet.http.HttpServletRequest request, List<String> defaultLangauages)
Constructor. -
Method Summary
Modifier and Type Method Description protected Map<Locale,String>
getDisplayInfo(IdPAttribute attribute)
Get the information to be displayed from the attribute.Methods inherited from class net.shibboleth.idp.consent.logic.impl.AbstractAttributeDisplayFunction
apply
-
Constructor Details
-
AttributeDisplayDescriptionFunction
public AttributeDisplayDescriptionFunction(@Nonnull javax.servlet.http.HttpServletRequest request, @Nullable List<String> defaultLangauages)Constructor.- Parameters:
request
-HttpServletRequest
used to get preferred languagesdefaultLangauages
- list of fallback languages in order of decreasing preference
-
-
Method Details
-
getDisplayInfo
Get the information to be displayed from the attribute.- Specified by:
getDisplayInfo
in classAbstractAttributeDisplayFunction
- Parameters:
attribute
- the attribute to consider- Returns:
- the map of locale dependent information to be displayed
-