@ConfigurationProperties(prefix="jmix.ui")
@ConstructorBinding
public class UiProperties
extends java.lang.Object
Constructor and Description |
---|
UiProperties(boolean testMode,
boolean performanceTestMode,
boolean productionMode,
java.lang.String appWindowMode,
boolean compositeMenu,
boolean allowAnonymousAccess,
int jmxConsoleMBeanOperationTimeoutSec,
int httpSessionExpirationTimeoutSec,
UrlHandlingMode urlHandlingMode,
java.util.List<java.lang.String> linkHandlerActions,
java.util.List<java.lang.String> viewFileExtensions,
int saveExportedByteArrayDataThresholdBytes,
long webJarResourcesCacheTime,
long backgroundTaskTimeoutCheckInterval,
java.lang.Integer defaultMaxFetchSize,
java.util.Map<java.lang.String,java.lang.Integer> entityMaxFetchSize,
java.lang.Integer defaultPageSize,
java.util.Map<java.lang.String,java.lang.Integer> entityPageSize,
int maxTabCount,
boolean showBreadCrumbs,
boolean defaultScreenCanBeClosed,
java.lang.String defaultScreenId,
java.lang.String loginScreenId,
java.lang.String mainScreenId,
java.lang.String initialScreenId,
boolean localeSelectVisible,
boolean forceRefreshAuthenticatedTabs,
int mainTabCaptionLength) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAppWindowMode() |
long |
getBackgroundTaskTimeoutCheckInterval()
Interval for checking timeout of a BackgroundTask.
|
int |
getDefaultMaxFetchSize() |
int |
getDefaultPageSize() |
java.lang.String |
getDefaultScreenId()
Defines which screen should be opened after login.
|
int |
getEntityMaxFetchSize(java.lang.String entityName) |
int |
getEntityPageSize(java.lang.String entityName) |
int |
getHttpSessionExpirationTimeoutSec()
HTTP session expiration timeout in seconds.
Should be equal or less than user session timeout. |
java.lang.String |
getInitialScreenId()
Defines the screen that will be open for non-authenticated user when an application opened.
|
int |
getJmxConsoleMBeanOperationTimeoutSec() |
java.util.List<java.lang.String> |
getLinkHandlerActions() |
java.lang.String |
getLoginScreenId()
Defines the screen that will be used as Login screen.
|
java.lang.String |
getMainScreenId()
Defines the screen that will be used as Main screen.
|
int |
getMainTabCaptionLength()
Maximum number of symbols in main tabs captions.
|
int |
getMaxTabCount()
Maximum number of opened tabs.
|
int |
getSaveExportedByteArrayDataThresholdBytes() |
UrlHandlingMode |
getUrlHandlingMode() |
java.util.List<java.lang.String> |
getViewFileExtensions() |
long |
getWebJarResourcesCacheTime()
Enables to configure whether WebJar resources should be cached or not.
|
boolean |
isAllowAnonymousAccess() |
boolean |
isCompositeMenu() |
boolean |
isDefaultScreenCanBeClosed()
Defines whether default screen can be closed or not when TABBED work area mode is used.
|
boolean |
isForceRefreshAuthenticatedTabs() |
boolean |
isLocaleSelectVisible()
Whether the locale select field is shown on login screen.
|
boolean |
isPerformanceTestMode() |
boolean |
isProductionMode() |
boolean |
isShowBreadCrumbs() |
boolean |
isTestMode() |
public UiProperties(boolean testMode, boolean performanceTestMode, @DefaultValue(value="true") boolean productionMode, @DefaultValue(value="TABBED") java.lang.String appWindowMode, @DefaultValue(value="true") boolean compositeMenu, @DefaultValue(value="false") boolean allowAnonymousAccess, @DefaultValue(value="600") int jmxConsoleMBeanOperationTimeoutSec, @DefaultValue(value="1800") int httpSessionExpirationTimeoutSec, @DefaultValue(value="URL_ROUTES") UrlHandlingMode urlHandlingMode, @DefaultValue(value={"open","o"}) java.util.List<java.lang.String> linkHandlerActions, @DefaultValue(value={"htm","html","jpg","png","jpeg","pdf"}) java.util.List<java.lang.String> viewFileExtensions, @DefaultValue(value="102400") int saveExportedByteArrayDataThresholdBytes, @DefaultValue(value="31536000") long webJarResourcesCacheTime, @DefaultValue(value="5000") long backgroundTaskTimeoutCheckInterval, @DefaultValue(value="10000") java.lang.Integer defaultMaxFetchSize, @Nullable java.util.Map<java.lang.String,java.lang.Integer> entityMaxFetchSize, @DefaultValue(value="50") java.lang.Integer defaultPageSize, @Nullable java.util.Map<java.lang.String,java.lang.Integer> entityPageSize, @DefaultValue(value="20") int maxTabCount, @DefaultValue(value="true") boolean showBreadCrumbs, @DefaultValue(value="true") boolean defaultScreenCanBeClosed, java.lang.String defaultScreenId, @DefaultValue(value="login") java.lang.String loginScreenId, @DefaultValue(value="main") java.lang.String mainScreenId, java.lang.String initialScreenId, @DefaultValue(value="true") boolean localeSelectVisible, @DefaultValue(value="false") boolean forceRefreshAuthenticatedTabs, @DefaultValue(value="25") int mainTabCaptionLength)
public boolean isTestMode()
public boolean isPerformanceTestMode()
public java.lang.String getAppWindowMode()
public int getHttpSessionExpirationTimeoutSec()
public UrlHandlingMode getUrlHandlingMode()
public java.util.List<java.lang.String> getLinkHandlerActions()
public boolean isAllowAnonymousAccess()
public boolean isCompositeMenu()
public java.util.List<java.lang.String> getViewFileExtensions()
public int getSaveExportedByteArrayDataThresholdBytes()
public long getWebJarResourcesCacheTime()
Zero cache time disables caching at all.
public boolean isProductionMode()
public int getJmxConsoleMBeanOperationTimeoutSec()
public long getBackgroundTaskTimeoutCheckInterval()
public int getDefaultMaxFetchSize()
public int getEntityMaxFetchSize(java.lang.String entityName)
public int getDefaultPageSize()
public int getEntityPageSize(java.lang.String entityName)
public int getMaxTabCount()
public boolean isShowBreadCrumbs()
public boolean isDefaultScreenCanBeClosed()
public java.lang.String getDefaultScreenId()
public java.lang.String getLoginScreenId()
public java.lang.String getMainScreenId()
public java.lang.String getInitialScreenId()
public boolean isForceRefreshAuthenticatedTabs()
public int getMainTabCaptionLength()
public boolean isLocaleSelectVisible()