Package net.shibboleth.idp.saml.metadata
Class OrganizationUIInfo
- java.lang.Object
-
- net.shibboleth.idp.saml.metadata.OrganizationUIInfo
-
public class OrganizationUIInfo extends Object
Class to contain a processed form of theOrganizationsuitable for display purposes.
-
-
Field Summary
Fields Modifier and Type Field Description private Map<Locale,String>displayNamesThe Organization Display Names as a map from locale to actual value.private static org.slf4j.LoggerLOGlogger.private Predicate<LocalizedName>nullLanguageStringWarning check against a non localized String.private Predicate<LocalizedURI>nullLanguageURLWarning check against a non localized URL.private Map<Locale,String>organizationNamesThe Organization Names as a map from locale to actual value.private Map<Locale,String>urlsThe Organization URLs as a map from locale to actual value.
-
Constructor Summary
Constructors Constructor Description OrganizationUIInfo(Organization organization)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<Locale,String>getOrganizationDisplayNames()Return the Organization Display Names as a map from locale to actual value.Map<Locale,String>getOrganizationNames()Get the Organization Names as a map from locale to actual value.Map<Locale,String>getOrganizationUrls()Return the Organization URLs as a map from locale to actual value.
-
-
-
Field Detail
-
LOG
private static final org.slf4j.Logger LOG
logger.
-
organizationNames
@Nonnull @Unmodifiable private final Map<Locale,String> organizationNames
The Organization Names as a map from locale to actual value.
-
displayNames
@Nonnull @Unmodifiable private final Map<Locale,String> displayNames
The Organization Display Names as a map from locale to actual value.
-
urls
@Nonnull @Unmodifiable private final Map<Locale,String> urls
The Organization URLs as a map from locale to actual value.
-
nullLanguageString
private final Predicate<LocalizedName> nullLanguageString
Warning check against a non localized String.
-
nullLanguageURL
private final Predicate<LocalizedURI> nullLanguageURL
Warning check against a non localized URL.
-
-
Constructor Detail
-
OrganizationUIInfo
public OrganizationUIInfo(@Nonnull Organization organization)Constructor.- Parameters:
organization- The OpenSaml Organization to convert.
-
-
Method Detail
-
getOrganizationNames
@Nonnull @Unmodifiable public Map<Locale,String> getOrganizationNames()
Get the Organization Names as a map from locale to actual value.- Returns:
- the display names
-
getOrganizationDisplayNames
@Nonnull @Unmodifiable public Map<Locale,String> getOrganizationDisplayNames()
Return the Organization Display Names as a map from locale to actual value.- Returns:
- the descriptions names (if any)
-
getOrganizationUrls
@Nonnull @Unmodifiable public Map<Locale,String> getOrganizationUrls()
Return the Organization URLs as a map from locale to actual value.- Returns:
- the descriptions names (if any)
-
-