Class AttributeDisplayNameFunction
java.lang.Object
net.shibboleth.idp.consent.logic.impl.AbstractAttributeDisplayFunction
net.shibboleth.idp.consent.logic.impl.AttributeDisplayNameFunction
- All Implemented Interfaces:
Function<IdPAttribute,String>
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
ConstructorsConstructorDescriptionAttributeDisplayNameFunction(HttpServletRequest request, List<String> defaultLangauages, ReloadableService<AttributeTranscoderRegistry> transcoderService) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetDisplayInfo(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 Details
-
Method Details
-
getDisplayInfo
@Nonnull @Unmodifiable @NotLive 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
-