Class ApplicationConfig
- java.lang.Object
-
- com.priint.pubserver.plannerengine.config.ApplicationConfig
-
- All Implemented Interfaces:
MergableConfig<ApplicationConfig>,java.io.Serializable
public class ApplicationConfig extends java.lang.Object implements MergableConfig<ApplicationConfig>, java.io.Serializable
This class is used in new UI and keeps application configuration- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.StringbackgroundImgBackground file pathjava.lang.StringdefaultLanguageUsed in AuthService login window, if language is not set in LocalStorage, default value "en"java.lang.StringfavIconfavicon file pathjava.lang.StringloginLogoLogin screen logo file pathjava.lang.StringlogoLogo file pathThemethemePalette colors
-
Constructor Summary
Constructors Constructor Description ApplicationConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetBackgroundImg()java.lang.StringgetDefaultLanguage()java.lang.StringgetFavIcon()java.lang.StringgetLoginLogo()java.lang.StringgetLogo()ThemegetTheme()java.util.List<Window>getWindowSettings()ApplicationConfigmergeWithCustom(ApplicationConfig customConfig)Merges this configuration with a second (custom) configuration.voidsetBackgroundImg(java.lang.String backgroundImg)voidsetDefaultLanguage(java.lang.String defaultLanguage)voidsetFavIcon(java.lang.String favIcon)voidsetLoginLogo(java.lang.String loginLogo)voidsetLogo(java.lang.String logo)voidsetTheme(Theme theme)voidsetWindowSettings(java.util.List<Window> windows)
-
-
-
Field Detail
-
logo
public java.lang.String logo
Logo file path
-
favIcon
public java.lang.String favIcon
favicon file path
-
backgroundImg
public java.lang.String backgroundImg
Background file path
-
theme
public Theme theme
Palette colors
-
loginLogo
public java.lang.String loginLogo
Login screen logo file path
-
defaultLanguage
public java.lang.String defaultLanguage
Used in AuthService login window, if language is not set in LocalStorage, default value "en"
-
-
Method Detail
-
getWindowSettings
public java.util.List<Window> getWindowSettings()
-
setWindowSettings
public void setWindowSettings(java.util.List<Window> windows)
-
getFavIcon
public java.lang.String getFavIcon()
-
setFavIcon
public void setFavIcon(java.lang.String favIcon)
-
getLogo
public java.lang.String getLogo()
-
setLogo
public void setLogo(java.lang.String logo)
-
getBackgroundImg
public java.lang.String getBackgroundImg()
-
setBackgroundImg
public void setBackgroundImg(java.lang.String backgroundImg)
-
getTheme
public Theme getTheme()
-
setTheme
public void setTheme(Theme theme)
-
getLoginLogo
public java.lang.String getLoginLogo()
-
setLoginLogo
public void setLoginLogo(java.lang.String loginLogo)
-
getDefaultLanguage
public java.lang.String getDefaultLanguage()
-
setDefaultLanguage
public void setDefaultLanguage(java.lang.String defaultLanguage)
-
mergeWithCustom
public ApplicationConfig mergeWithCustom(ApplicationConfig customConfig)
Description copied from interface:MergableConfigMerges this configuration with a second (custom) configuration. If settings are defined in the second configuration they will override the settings of the current one.- Specified by:
mergeWithCustomin interfaceMergableConfig<ApplicationConfig>- Returns:
- merged configuration
-
-