Package swiss.trustbroker.config.dto
Class GuiProperties.GuiPropertiesBuilder
java.lang.Object
swiss.trustbroker.config.dto.GuiProperties.GuiPropertiesBuilder
- Enclosing class:
GuiProperties
-
Method Summary
Modifier and TypeMethodDescriptionannouncementCookie(CookieProperties announcementCookie) XTB can (via a plugin) support announcements to communicate with the federating user.Banners.build()buttons(List<GuiButtons> buttons) Buttons enabled for the theme.claimsProviderNoticeCookie(CookieProperties claimsProviderNoticeCookie) XTB can (via a plugin) support a notice screen that can be configured, where an end user can set a cookie to not show the screen next time.defaultLanguage(String defaultLanguage) Default language for the UI.features(List<GuiFeatures> features) Feature enabled for the theme.Resource path where images used in the ClaimsProviderDefinitions are stored.languageCookie(CookieProperties languageCookie) Attributes for the cookie that stores the user's selected language.maxBanners(Integer maxBanners) Limit the number of banners shown on HRD.taggedResourceMaxAgeSec(int taggedResourceMaxAgeSec) Browser caching max-age in seconds for resources that have are tagged with an ETAG (a hash or version number).themeAssets(String themeAssets) Resource path where theme assets are stored.themeCookie(CookieProperties themeCookie) Attributes for the cookie that stores the user's theme (if there is a theme selector).toString()translations(String translations) Resource path where UI language support files in JSON format are stored.versionedResourceMaxAgeDay(int versionedResourceMaxAgeDay) Browser caching max-age in days for resources that have resource version in the path (a hash or version number).versionedResourcePaths(String[] versionedResourcePaths) Paths of resources that have resource version in the path (a hash or version number).
-
Method Details
-
images
Resource path where images used in the ClaimsProviderDefinitions are stored.- Returns:
this.- See Also:
-
translations
Resource path where UI language support files in JSON format are stored.- Returns:
this.
-
themeAssets
Resource path where theme assets are stored.- Returns:
this.
-
defaultLanguage
Default language for the UI.- Returns:
this.
-
buttons
Buttons enabled for the theme.- Returns:
this.
-
features
Feature enabled for the theme.- Returns:
this.
-
banners
Banners.- Returns:
this.- Since:
- 1.9.0
-
maxBanners
Limit the number of banners shown on HRD.
For usability reasons, the area consumed by banners should be limited, so the number should be very small.- Returns:
this.- Since:
- 1.9.0
- See Also:
-
themeCookie
Attributes for the cookie that stores the user's theme (if there is a theme selector).- Returns:
this.
-
languageCookie
Attributes for the cookie that stores the user's selected language.- Returns:
this.
-
announcementCookie
XTB can (via a plugin) support announcements to communicate with the federating user. These cookie preferences are used to customize it's client side behavior.- Returns:
this.
-
claimsProviderNoticeCookie
public GuiProperties.GuiPropertiesBuilder claimsProviderNoticeCookie(CookieProperties claimsProviderNoticeCookie) XTB can (via a plugin) support a notice screen that can be configured, where an end user can set a cookie to not show the screen next time. These cookie preferences are used to customize it's client side behavior.- Returns:
this.- Since:
- 1.14.0
-
versionedResourceMaxAgeDay
public GuiProperties.GuiPropertiesBuilder versionedResourceMaxAgeDay(int versionedResourceMaxAgeDay) Browser caching max-age in days for resources that have resource version in the path (a hash or version number).
These resources can be cached for a long period as any change will result in a new resource version.- Returns:
this.- Since:
- 1.10.0
-
versionedResourcePaths
Paths of resources that have resource version in the path (a hash or version number).- Returns:
this.- Since:
- 1.10.0
-
taggedResourceMaxAgeSec
Browser caching max-age in seconds for resources that have are tagged with an ETAG (a hash or version number).
These resources can be cached for some time after which the ETAG has to be checked.- Returns:
this.- Since:
- 1.10.0
-
build
-
toString
-