Class AttributeDisplayNameFunction
- java.lang.Object
-
- net.shibboleth.idp.consent.logic.impl.AbstractAttributeDisplayFunction
-
- net.shibboleth.idp.consent.logic.impl.AttributeDisplayNameFunction
-
public class AttributeDisplayNameFunction extends AbstractAttributeDisplayFunction
Function which returns the locale-aware display name of an attribute, defaulting to the attribute ID if the attribute has no display name.
-
-
Constructor Summary
Constructors Constructor Description AttributeDisplayNameFunction(javax.servlet.http.HttpServletRequest request, List<String> defaultLangauages)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Map<Locale,String>getDisplayInfo(net.shibboleth.idp.attribute.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
-
AttributeDisplayNameFunction
public AttributeDisplayNameFunction(@Nonnull javax.servlet.http.HttpServletRequest request, @Nullable List<String> defaultLangauages)Constructor.- Parameters:
request-HttpServletRequestused to get preferred languagesdefaultLangauages- list of fallback languages in order of decreasing preference
-
-
Method Detail
-
getDisplayInfo
@Nonnull protected Map<Locale,String> getDisplayInfo(@Nonnull net.shibboleth.idp.attribute.IdPAttribute attribute)
Get the information to be displayed from the attribute.- Specified by:
getDisplayInfoin classAbstractAttributeDisplayFunction- Parameters:
attribute- the attribute to consider- Returns:
- the map of locale dependent information to be displayed
-
-