Package swiss.trustbroker.config.dto
Class GuiProperties
java.lang.Object
swiss.trustbroker.config.dto.GuiProperties
GUI related configurations.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionGuiProperties(String images, String translations, String themeAssets, String defaultLanguage, List<GuiButtons> buttons, List<GuiFeatures> features, List<Banner> banners, Integer maxBanners, CookieProperties themeCookie, CookieProperties languageCookie, CookieProperties announcementCookie, CookieProperties claimsProviderNoticeCookie, int versionedResourceMaxAgeDay, String[] versionedResourcePaths, int taggedResourceMaxAgeSec) Creates a newGuiPropertiesinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected booleanbooleanXTB can (via a plugin) support announcements to communicate with the federating user.Banners.Buttons enabled for the theme.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.Default language for the UI.Feature enabled for the theme.Resource path where images used in the ClaimsProviderDefinitions are stored.Attributes for the cookie that stores the user's selected language.Limit the number of banners shown on HRD.intBrowser caching max-age in seconds for resources that have are tagged with an ETAG (a hash or version number).Resource path where theme assets are stored.Attributes for the cookie that stores the user's theme (if there is a theme selector).Resource path where UI language support files in JSON format are stored.intBrowser caching max-age in days for resources that have resource version in the path (a hash or version number).String[]Paths of resources that have resource version in the path (a hash or version number).booleanhasFeature(GuiFeatures feature) inthashCode()voidsetAnnouncementCookie(CookieProperties announcementCookie) XTB can (via a plugin) support announcements to communicate with the federating user.voidsetBanners(List<Banner> banners) Banners.voidsetButtons(List<GuiButtons> buttons) Buttons enabled for the theme.voidsetClaimsProviderNoticeCookie(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.voidsetDefaultLanguage(String defaultLanguage) Default language for the UI.voidsetFeatures(List<GuiFeatures> features) Feature enabled for the theme.voidResource path where images used in the ClaimsProviderDefinitions are stored.voidsetLanguageCookie(CookieProperties languageCookie) Attributes for the cookie that stores the user's selected language.voidsetMaxBanners(Integer maxBanners) Limit the number of banners shown on HRD.voidsetTaggedResourceMaxAgeSec(int taggedResourceMaxAgeSec) Browser caching max-age in seconds for resources that have are tagged with an ETAG (a hash or version number).voidsetThemeAssets(String themeAssets) Resource path where theme assets are stored.voidsetThemeCookie(CookieProperties themeCookie) Attributes for the cookie that stores the user's theme (if there is a theme selector).voidsetTranslations(String translations) Resource path where UI language support files in JSON format are stored.voidsetVersionedResourceMaxAgeDay(int versionedResourceMaxAgeDay) Browser caching max-age in days for resources that have resource version in the path (a hash or version number).voidsetVersionedResourcePaths(String[] versionedResourcePaths) Paths of resources that have resource version in the path (a hash or version number).toString()
-
Constructor Details
-
GuiProperties
public GuiProperties() -
GuiProperties
public GuiProperties(String images, String translations, String themeAssets, String defaultLanguage, List<GuiButtons> buttons, List<GuiFeatures> features, List<Banner> banners, Integer maxBanners, CookieProperties themeCookie, CookieProperties languageCookie, CookieProperties announcementCookie, CookieProperties claimsProviderNoticeCookie, int versionedResourceMaxAgeDay, String[] versionedResourcePaths, int taggedResourceMaxAgeSec) Creates a newGuiPropertiesinstance.- Parameters:
images- Resource path where images used in the ClaimsProviderDefinitions are stored.translations- Resource path where UI language support files in JSON format are stored.themeAssets- Resource path where theme assets are stored.defaultLanguage- Default language for the UI.buttons- Buttons enabled for the theme.features- Feature enabled for the theme.banners- Banners.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.themeCookie- Attributes for the cookie that stores the user's theme (if there is a theme selector).languageCookie- Attributes for the cookie that stores the user's selected language.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.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.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.versionedResourcePaths- Paths of resources that have resource version in the path (a hash or version number).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.- Since:
- 1.9.0, 1.9.0, 1.14.0, 1.10.0, 1.10.0, 1.10.0
- See Also:
-
-
Method Details
-
getBanner
- Parameters:
name-- Returns:
- Banner with name if defined.
-
getGlobalBanners
- Returns:
- all global banners
-
hasFeature
- Returns:
- true if the feature is enabled.
-
builder
-
getImages
Resource path where images used in the ClaimsProviderDefinitions are stored.- See Also:
-
getTranslations
Resource path where UI language support files in JSON format are stored. -
getThemeAssets
Resource path where theme assets are stored. -
getDefaultLanguage
Default language for the UI. -
getButtons
Buttons enabled for the theme. -
getFeatures
Feature enabled for the theme. -
getBanners
Banners.- Since:
- 1.9.0
-
getMaxBanners
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.- Since:
- 1.9.0
- See Also:
-
getThemeCookie
Attributes for the cookie that stores the user's theme (if there is a theme selector). -
getLanguageCookie
Attributes for the cookie that stores the user's selected language. -
getAnnouncementCookie
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. -
getClaimsProviderNoticeCookie
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.- Since:
- 1.14.0
-
getVersionedResourceMaxAgeDay
public int getVersionedResourceMaxAgeDay()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.- Since:
- 1.10.0
-
getVersionedResourcePaths
Paths of resources that have resource version in the path (a hash or version number).- Since:
- 1.10.0
-
getTaggedResourceMaxAgeSec
public int getTaggedResourceMaxAgeSec()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.- Since:
- 1.10.0
-
setImages
Resource path where images used in the ClaimsProviderDefinitions are stored.- See Also:
-
setTranslations
Resource path where UI language support files in JSON format are stored. -
setThemeAssets
Resource path where theme assets are stored. -
setDefaultLanguage
Default language for the UI. -
setButtons
Buttons enabled for the theme. -
setFeatures
Feature enabled for the theme. -
setBanners
Banners.- Since:
- 1.9.0
-
setMaxBanners
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.- Since:
- 1.9.0
- See Also:
-
setThemeCookie
Attributes for the cookie that stores the user's theme (if there is a theme selector). -
setLanguageCookie
Attributes for the cookie that stores the user's selected language. -
setAnnouncementCookie
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. -
setClaimsProviderNoticeCookie
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.- Since:
- 1.14.0
-
setVersionedResourceMaxAgeDay
public void setVersionedResourceMaxAgeDay(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.- Since:
- 1.10.0
-
setVersionedResourcePaths
Paths of resources that have resource version in the path (a hash or version number).- Since:
- 1.10.0
-
setTaggedResourceMaxAgeSec
public void setTaggedResourceMaxAgeSec(int 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.- Since:
- 1.10.0
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-