Package com.simplicite.util
Class SystemParameters
- java.lang.Object
-
- com.simplicite.util.SystemParameters
-
public class SystemParameters extends java.lang.Object
System parameters
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ACTION_PREFS
User action preferencesstatic java.lang.String
BOOKMARKS
Bookmarksstatic java.lang.String
COMPACT
Compact modestatic java.lang.String
CRON_LOCK
Cron lockstatic java.lang.String
CRON_RELOAD
Cron last reloadstatic java.lang.String
DEFAULT_MODULE
Store currently used module namestatic java.lang.String
DIFF_REMOTE
Remote URL for module diffstatic java.lang.String
EASYMODE
Deprecated.Not used anymorestatic java.lang.String
EASYMODE_CLEARCACHE
Deprecated.Not used anymorestatic java.lang.String
EASYMODE_DEFAULTAPPCODE
Deprecated.Not used anymorestatic java.lang.String
EASYMODE_DEFAULTDOMAINNAME
Deprecated.Not used anymorestatic java.lang.String
EASYMODE_DEFAULTGROUPNAME
Deprecated.Not used anymorestatic java.lang.String
EASYMODE_DEFAULTMODULENAME
Deprecated.Not used anymorestatic java.lang.String
EXPORT_MAX_ROWS
Export max rowsstatic java.lang.String
FIREBASE_TOKENS
Firebase device tokens of userstatic java.lang.String
HISTORY
Historystatic java.lang.String
HTTP_HEADERS
HTTP headersstatic java.lang.String
LAST_CLEAR_CACHE
Clear cache date timestatic java.lang.String
LIST_PREFS
User list preferencesstatic java.lang.String
LOG_SQL_SYSTEM
System SQL loggingstatic java.lang.String
LOG_SQL_USER
User SQL loggingstatic java.lang.String
MENU_TREEVIEW
Treeviews added in menustatic java.lang.String
MODULE_EXPLODED_EXPORT
Exploded mode for module exports?static java.lang.String
MODULE_EXPORT_WITH_ARTIFACTS
Exploded mode for module exports?static java.lang.String
MODULE_FILTER
User module filteringstatic java.lang.String
MODULE_FILTER_ALL
User module filtering, value for allstatic java.lang.String
PRUNE_JOBS_DEPTH
Prune jobs depth parameter namestatic java.lang.String
PRUNE_LOGS_DEPTH
Prune logs depth parameter namestatic java.lang.String
PRUNE_SUPERV_DEPTH
Prune supervisions depth parameter namestatic java.lang.String
PUBLIC_SESSION_TIMEOUT
Public user (UI) session timeoutstatic int
PUBLIC_SESSION_TIMEOUT_DEFAULT
User (UI) session timeout default value (in minutes)static java.lang.String
SCOPE_PREFS
User scope preferencesstatic java.lang.String
SEARCH_PREFS
User list preferencesstatic java.lang.String
SERVICES_TIMEOUT
Deprecated, for removal: This API element is subject to removal in a future version.static int
SERVICES_TIMEOUT_DEFAULT
Deprecated, for removal: This API element is subject to removal in a future version.static java.lang.String
SESSION_TIMEOUT
User (UI) session timeoutstatic int
SESSION_TIMEOUT_DEFAULT
User (UI) session timeout default value (in minutes)static java.lang.String
SHORTCUT_PREFS
Shortcut preferencesstatic java.lang.String
TREEVIEW_PREFS
User treeview preferencesstatic java.lang.String
UI_EDITOR_PREFS
Responsive editor preferencesstatic java.lang.String
URI_MAPPINGS
URI mappingsstatic java.lang.String
USE_OBJECT_PREFS
Activate object preferencestatic java.lang.String
USE_UNDO_REDO
System parameter to enable global Undo/Redostatic java.lang.String
USER_CLEAR_CACHE
Clear user cache date timestatic java.lang.String
USERTOKENS_CACHE_SIZE
User tokens cache size system parameter namestatic int
USERTOKENS_CACHE_SIZE_DEFAULT
User tokens cache sizestatic java.lang.String
USERTOKENS_DURATION
User tokens duration system parameter namestatic int
USERTOKENS_DURATION_DEFAULT
User tokens duration default value (in hours)static java.lang.String
USERTOKENS_ISSUER
User tokens issuer system parameter namestatic java.lang.String
USERTOKENS_MODE
User tokens mode system parameter namestatic java.lang.String
USERTOKENS_REUSE
User tokens reuse system parameter namestatic java.lang.String
USERTOKENS_SIGNATURE_ALGORITHM
User tokens signature algorithm system parameter namestatic java.lang.String
USERTOKENS_SIGNATURE_SECRET
User tokens signature secret system parameter namestatic java.lang.String
ZOOM
Zoom factor
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static void
clearAPIInterface()
Clear cached value of theUSE_API
system parameterstatic void
clearCache()
Clear system parameters cachestatic java.lang.String
getBeanDir()
Deprecated, for removal: This API element is subject to removal in a future version.static java.lang.String
getBinDir()
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.getBinDirstatic java.lang.String
getCacheDir()
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.getCacheDirstatic java.lang.String
getClassesDir()
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.getClassesDirstatic java.lang.String
getContentDir()
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.getContentDirstatic java.lang.String
getContextPath()
Deprecated, for removal: This API element is subject to removal in a future version.Do not use, does nothingstatic java.lang.String
getContextURL()
Deprecated, for removal: This API element is subject to removal in a future version.Do not use, does notyhingstatic java.lang.String
getDocDir()
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.getDocDirstatic long
getDocDirMax()
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.getDocDirMaxstatic java.lang.String
getDocLocalDir()
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.getDocLocalDirstatic java.lang.String
getExportDir()
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.getExportDirstatic java.lang.String
getExternalDocsDir()
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.getExternalDocsDirstatic java.lang.String
getHashAlgorithm()
Get password hash algorithmstatic java.lang.String
getHashEncoding()
Get password hash encodingstatic java.lang.String
getHashPassword()
Deprecated, for removal: This API element is subject to removal in a future version.Usestatic java.lang.String
getImportDir()
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.getImportDirstatic java.lang.String
getIndexDir()
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.getIndexDirstatic SystemParameters
getInstance()
Get instancestatic java.lang.String
getLibsDir()
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.getLibsDirstatic java.lang.String
getLogDir()
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.getLogDirstatic java.lang.String
getMavenDir()
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.getMavenDirstatic long
getMaxUploadSize()
Get the upload size limit (in Mb)static int
getPanelCharMax()
Panels (tabs) max width in charstatic java.lang.String
getProjectDir()
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.getProjectDirstatic int
getPublicUserSessionTimeout()
Get public user (UI) session timeout (in seconds)static int
getRailway()
Get navigator bar sizestatic java.lang.String
getRecycleBinDir()
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.getRecycleBinDirstatic int
getServicesSessionTimeout()
Deprecated, for removal: This API element is subject to removal in a future version.static java.lang.String
getSrcDir()
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.getSrcDirstatic java.lang.String
getSubPackage()
get subpackage specific classstatic java.lang.String
getSystemParamId(java.lang.String code)
System parameter idstatic java.lang.String
getSystemParamId(java.lang.String code, boolean create)
System parameter idstatic java.lang.String
getTmpDir()
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.getTmpDirstatic int
getUserSessionTimeout()
Get user (UI) default session timeout (in seconds)static int
getUserSessionTimeout(Grant g)
Get specified user (UI) session timeout (in seconds)static int
getUserTokensCacheSize()
Get user tokens cache sizestatic int
getUserTokensDuration()
Get user tokens duration (in seconds)static int
getUserTokensDuration(java.lang.String login)
Get user tokens duration (in seconds) for specified loginstatic java.lang.String
getUserTokensIssuer()
Get user tokens issuerstatic java.lang.String
getUserTokensMode()
Get user tokens mode (simple or JWT)static java.lang.String
getUserTokensSignatureAlgorithm()
Get user tokens signature algorithm (for the internal provider)static java.lang.String
getUserTokensSignatureSecret()
Get user tokens signature secret (for the internal provider)static java.lang.String
getWindowTitle()
Set application titlestatic boolean
isAboutEnable()
Is about dialog visible ?static boolean
isAPIInterfaceEnable()
Is the API endpoint enabled? (uses the cached value of theUSE_API
system parameter read once from the database)static boolean
isAPITesterEnable()
Is the API tester enabled? (uses the database value ofUSE_API_TESTER
system parameter).static boolean
isCompletionEnable()
Is the completion feature enabled?static boolean
isConvertWildcards()
Convert wildcards enabled?static boolean
isGITInterfaceEnable()
Is the Git endpoint enabled? (uses the database value ofUSE_GIT
system parameter)
Note that this also requires that the JGit libs ara available an that the Git base directory is setstatic boolean
isHashUseSalt()
Get wether password hash use saltstatic boolean
isHtmlEditorEnable()
Deprecated, for removal: This API element is subject to removal in a future version.Use GrantCore.isHtmlEditorEnablestatic boolean
isIOInterfaceEnable()
Is the I/O endpoint enabled? (uses the database value ofUSE_IO
system parameter)static boolean
isIOTesterEnable()
Is the I/O tester page enabled? (uses the database value ofUSE_IO_TESTER
system parameter)static boolean
isJWTUserTokenMode()
Is JWT user tokens mode enabled?static boolean
isPanelFilterEnable()
Display filters on panelsstatic boolean
isSimpleUserTokenMode()
Is simple user tokens mode enabled?static boolean
isUserTokensReuseEnabled()
Is user tokens reuse enabled?static boolean
isUserTokensReuseEnabled(java.lang.String login)
Is user tokens reuse enabled?static boolean
logActivity()
Log user's activities ? SYSTEM:LOG_ACTIVITYstatic boolean
logActivityDB()
Export Redo logs into m_redolog ?static int
logActivityDelay()
Prune delay in hours for Redo logsstatic boolean
logActivityFile()
Export Redo logs into file (thru log4j) ?static boolean
logDebug()
Log debug ? SYSTEM:LOG_DEBUG=yesstatic boolean
logDocument()
Log document ? SYSTEM:LOG_DOCUMENT=yesstatic boolean
logError()
Log error ? SYSTEM:LOG_ERROR=yesstatic boolean
logFatal()
Log fatal ? SYSTEM:LOG_FATAL=yesstatic boolean
logInfo()
Log info ? SYSTEM:LOG_INFO=yesstatic boolean
logObject()
Log object ? SYSTEM:LOG_OBJECT=yesstatic boolean
logSession()
Log user's sessions ? SYSTEM:LOG_SESSIONstatic boolean
logSessionDB()
Export session into m_session?static int
logSessionDelay()
Prune delay in hours for m_sessionstatic boolean
logSessionFile()
Export sessions logon/logot into file (thru log4j) ?static boolean
logWarning()
Log warn ? SYSTEM:LOG_WARN=yesstatic java.lang.String[]
parseHashSettings(java.lang.String hashSettings)
Parse hash password settingsstatic void
setAbout(boolean b)
Set about dialog visiblestatic void
setAPIInterface(boolean b)
Enable/disable the API endpoint (sets the database value ofUSE_API
system parameter and updates the cached value accordingly)static void
setAPITester(boolean b)
Enable/disable the API tester (sets the database value ofUSE_API_TESTER
system parameter and updates the cached value accordingly).static void
setBeanDir(java.lang.String dir)
Deprecated, for removal: This API element is subject to removal in a future version.static void
setBinDir(java.lang.String dir)
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.setBinDirstatic void
setCacheDir(java.lang.String dir)
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.setCacheDirstatic void
setClassesDir(java.lang.String dir)
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.setClassesDirstatic void
setCompletion(boolean b)
Enable/disable the completion featurestatic void
setContentDir(java.lang.String dir)
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.setContentDirstatic void
setContextPath(java.lang.String p)
Deprecated, for removal: This API element is subject to removal in a future version.Do not use, does nothingstatic void
setContextURL(java.lang.String u)
Deprecated, for removal: This API element is subject to removal in a future version.Do not use, does nothingstatic void
setConvertWildcards(boolean b)
Enable convert wildcardsstatic void
setDocDir(java.lang.String dir)
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.setDocDirstatic void
setDocDirMax(long n)
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.setDocDirMaxstatic void
setDocLocalDir(java.lang.String dir)
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.setDocLocalDirstatic void
setExportDir(java.lang.String dir)
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.setExportDirstatic void
setExternalDocsDir(java.lang.String dir)
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.setExternalDocsDirstatic void
setGITInterface(boolean b)
Enable/disable the Git endpoint (uses the database value ofUSE_GIT
system parameter)static void
setHashAlgorithm(java.lang.String algorithm)
Set password hash algorithmstatic void
setHashEncoding(java.lang.String encoding)
Set password hash encodingstatic void
setHashPassword(java.lang.String p)
Deprecated, for removal: This API element is subject to removal in a future version.Use setHashEncodingstatic void
setHashUseSalt(boolean use)
Set wether password hash use saltstatic void
setHtmlEditor(boolean b)
Deprecated, for removal: This API element is subject to removal in a future version.Use GrantCore.setHtmlEditorstatic void
setImportDir(java.lang.String dir)
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.setImportDirstatic void
setIndexDir(java.lang.String dir)
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.setIndexDirstatic void
setIOInterface(boolean b)
Enable/disable the I/O endpoint (uses the database value ofUSE_IO
system parameter)static void
setIOTester(boolean b)
Enable/disable the I/O tester page (uses the database value ofUSE_IO
system parameter)static void
setLibsDir(java.lang.String dir)
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.setLibsDirstatic void
setLogActivity(org.json.JSONObject cfg)
Parse the LOG_ACTIVITY parameterstatic void
setLogActivityDB(boolean b)
static void
setLogActivityDelay(int hours)
static void
setLogActivityFile(boolean b)
static void
setLogDebug(boolean b)
static void
setLogDir(java.lang.String dir)
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.setLogDirstatic void
setLogDocument(boolean b)
static void
setLogError(boolean b)
static void
setLogFatal(boolean b)
static void
setLogInfo(boolean b)
static void
setLogObject(boolean b)
static void
setLogSession(org.json.JSONObject cfg)
Parse the LOG_SESSION parameterstatic void
setLogSessionDB(boolean b)
Export session into m_sessionstatic void
setLogSessionDelay(int hours)
static void
setLogSessionFile(boolean b)
static void
setLogWarning(boolean b)
static void
setMavenDir(java.lang.String dir)
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.setMavenDirstatic void
setMaxUploadSize(long s)
Set the upload size limit (in Mb)static void
setPanelCharMax(int n)
static void
setPanelFilter(boolean b)
static void
setProjectDir(java.lang.String dir)
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.setProjectDirstatic void
setRailway(int p)
Set navigator bar sizestatic void
setRecycleBinDir(java.lang.String dir)
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.setRecycleBinDirstatic void
setShowNavigator(boolean p)
Set show navigator barstatic void
setSrcDir(java.lang.String dir)
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.setSrcDirstatic void
setSubPackage(java.lang.String sp)
Set subpackage specific classstatic void
setTmpDir(java.lang.String dir)
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.setTmpDirstatic void
setUserSystemParam(java.lang.String login, java.lang.String param, java.lang.String value)
Upsert a user's system parameterstatic void
setWindowTitle(java.lang.String t)
Get application titlestatic boolean
showNavigator()
Show navigator bar ?
-
-
-
Field Detail
-
SESSION_TIMEOUT
public static final java.lang.String SESSION_TIMEOUT
User (UI) session timeout- See Also:
- Constant Field Values
-
SESSION_TIMEOUT_DEFAULT
public static final int SESSION_TIMEOUT_DEFAULT
User (UI) session timeout default value (in minutes)- See Also:
- Constant Field Values
-
PUBLIC_SESSION_TIMEOUT
public static final java.lang.String PUBLIC_SESSION_TIMEOUT
Public user (UI) session timeout- See Also:
- Constant Field Values
-
PUBLIC_SESSION_TIMEOUT_DEFAULT
public static final int PUBLIC_SESSION_TIMEOUT_DEFAULT
User (UI) session timeout default value (in minutes)- See Also:
- Constant Field Values
-
SERVICES_TIMEOUT
@Deprecated(forRemoval=true, since="5") public static final java.lang.String SERVICES_TIMEOUT
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Constant Field Values
-
SERVICES_TIMEOUT_DEFAULT
@Deprecated(forRemoval=true, since="5") public static final int SERVICES_TIMEOUT_DEFAULT
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Constant Field Values
-
USERTOKENS_MODE
public static final java.lang.String USERTOKENS_MODE
User tokens mode system parameter name- See Also:
- Constant Field Values
-
USERTOKENS_DURATION
public static final java.lang.String USERTOKENS_DURATION
User tokens duration system parameter name- See Also:
- Constant Field Values
-
USERTOKENS_DURATION_DEFAULT
public static final int USERTOKENS_DURATION_DEFAULT
User tokens duration default value (in hours)- See Also:
- Constant Field Values
-
USERTOKENS_REUSE
public static final java.lang.String USERTOKENS_REUSE
User tokens reuse system parameter name- See Also:
- Constant Field Values
-
USERTOKENS_CACHE_SIZE
public static final java.lang.String USERTOKENS_CACHE_SIZE
User tokens cache size system parameter name- See Also:
- Constant Field Values
-
USERTOKENS_CACHE_SIZE_DEFAULT
public static final int USERTOKENS_CACHE_SIZE_DEFAULT
User tokens cache size- See Also:
- Constant Field Values
-
USERTOKENS_ISSUER
public static final java.lang.String USERTOKENS_ISSUER
User tokens issuer system parameter name- See Also:
- Constant Field Values
-
USERTOKENS_SIGNATURE_SECRET
public static final java.lang.String USERTOKENS_SIGNATURE_SECRET
User tokens signature secret system parameter name- See Also:
- Constant Field Values
-
USERTOKENS_SIGNATURE_ALGORITHM
public static final java.lang.String USERTOKENS_SIGNATURE_ALGORITHM
User tokens signature algorithm system parameter name- See Also:
- Constant Field Values
-
EASYMODE
@Deprecated(forRemoval=false, since="5") public static final java.lang.String EASYMODE
Deprecated.Not used anymore- See Also:
- Constant Field Values
-
EASYMODE_DEFAULTAPPCODE
@Deprecated(forRemoval=false, since="5") public static final java.lang.String EASYMODE_DEFAULTAPPCODE
Deprecated.Not used anymore- See Also:
- Constant Field Values
-
EASYMODE_DEFAULTMODULENAME
@Deprecated(forRemoval=false, since="5") public static final java.lang.String EASYMODE_DEFAULTMODULENAME
Deprecated.Not used anymore- See Also:
- Constant Field Values
-
EASYMODE_DEFAULTGROUPNAME
@Deprecated(forRemoval=false, since="5") public static final java.lang.String EASYMODE_DEFAULTGROUPNAME
Deprecated.Not used anymore- See Also:
- Constant Field Values
-
EASYMODE_DEFAULTDOMAINNAME
@Deprecated(forRemoval=false, since="5") public static final java.lang.String EASYMODE_DEFAULTDOMAINNAME
Deprecated.Not used anymore- See Also:
- Constant Field Values
-
EASYMODE_CLEARCACHE
@Deprecated(forRemoval=false, since="5") public static final java.lang.String EASYMODE_CLEARCACHE
Deprecated.Not used anymore- See Also:
- Constant Field Values
-
DEFAULT_MODULE
public static final java.lang.String DEFAULT_MODULE
Store currently used module name- See Also:
- Constant Field Values
-
MODULE_FILTER
public static final java.lang.String MODULE_FILTER
User module filtering- See Also:
- Constant Field Values
-
MODULE_FILTER_ALL
public static final java.lang.String MODULE_FILTER_ALL
User module filtering, value for all- See Also:
- Constant Field Values
-
LOG_SQL_SYSTEM
public static final java.lang.String LOG_SQL_SYSTEM
System SQL logging- See Also:
- Constant Field Values
-
LOG_SQL_USER
public static final java.lang.String LOG_SQL_USER
User SQL logging- See Also:
- Constant Field Values
-
MODULE_EXPLODED_EXPORT
public static final java.lang.String MODULE_EXPLODED_EXPORT
Exploded mode for module exports?- See Also:
- Constant Field Values
-
MODULE_EXPORT_WITH_ARTIFACTS
public static final java.lang.String MODULE_EXPORT_WITH_ARTIFACTS
Exploded mode for module exports?- See Also:
- Constant Field Values
-
DIFF_REMOTE
public static final java.lang.String DIFF_REMOTE
Remote URL for module diff- See Also:
- Constant Field Values
-
URI_MAPPINGS
public static final java.lang.String URI_MAPPINGS
URI mappings- See Also:
- Constant Field Values
-
HTTP_HEADERS
public static final java.lang.String HTTP_HEADERS
HTTP headers- See Also:
- Constant Field Values
-
USE_OBJECT_PREFS
public static final java.lang.String USE_OBJECT_PREFS
Activate object preference- See Also:
- Constant Field Values
-
LIST_PREFS
public static final java.lang.String LIST_PREFS
User list preferences- See Also:
- Constant Field Values
-
SEARCH_PREFS
public static final java.lang.String SEARCH_PREFS
User list preferences- See Also:
- Constant Field Values
-
ACTION_PREFS
public static final java.lang.String ACTION_PREFS
User action preferences- See Also:
- Constant Field Values
-
SCOPE_PREFS
public static final java.lang.String SCOPE_PREFS
User scope preferences- See Also:
- Constant Field Values
-
TREEVIEW_PREFS
public static final java.lang.String TREEVIEW_PREFS
User treeview preferences- See Also:
- Constant Field Values
-
UI_EDITOR_PREFS
public static final java.lang.String UI_EDITOR_PREFS
Responsive editor preferences- See Also:
- Constant Field Values
-
SHORTCUT_PREFS
public static final java.lang.String SHORTCUT_PREFS
Shortcut preferences- See Also:
- Constant Field Values
-
HISTORY
public static final java.lang.String HISTORY
History- See Also:
- Constant Field Values
-
ZOOM
public static final java.lang.String ZOOM
Zoom factor- See Also:
- Constant Field Values
-
COMPACT
public static final java.lang.String COMPACT
Compact mode- See Also:
- Constant Field Values
-
BOOKMARKS
public static final java.lang.String BOOKMARKS
Bookmarks- See Also:
- Constant Field Values
-
MENU_TREEVIEW
public static final java.lang.String MENU_TREEVIEW
Treeviews added in menu- See Also:
- Constant Field Values
-
PRUNE_LOGS_DEPTH
public static final java.lang.String PRUNE_LOGS_DEPTH
Prune logs depth parameter name- See Also:
- Constant Field Values
-
PRUNE_JOBS_DEPTH
public static final java.lang.String PRUNE_JOBS_DEPTH
Prune jobs depth parameter name- See Also:
- Constant Field Values
-
PRUNE_SUPERV_DEPTH
public static final java.lang.String PRUNE_SUPERV_DEPTH
Prune supervisions depth parameter name- See Also:
- Constant Field Values
-
USE_UNDO_REDO
public static final java.lang.String USE_UNDO_REDO
System parameter to enable global Undo/Redo- See Also:
- Constant Field Values
-
CRON_LOCK
public static final java.lang.String CRON_LOCK
Cron lock- See Also:
- Constant Field Values
-
CRON_RELOAD
public static final java.lang.String CRON_RELOAD
Cron last reload- See Also:
- Constant Field Values
-
LAST_CLEAR_CACHE
public static final java.lang.String LAST_CLEAR_CACHE
Clear cache date time- See Also:
- Constant Field Values
-
USER_CLEAR_CACHE
public static final java.lang.String USER_CLEAR_CACHE
Clear user cache date time- See Also:
- Constant Field Values
-
FIREBASE_TOKENS
public static final java.lang.String FIREBASE_TOKENS
Firebase device tokens of user- See Also:
- Constant Field Values
-
EXPORT_MAX_ROWS
public static final java.lang.String EXPORT_MAX_ROWS
Export max rows- See Also:
- Constant Field Values
-
-
Method Detail
-
getUserSessionTimeout
public static int getUserSessionTimeout(Grant g)
Get specified user (UI) session timeout (in seconds)- Parameters:
g
- Grant- Returns:
- User session timeout (in seconds)
-
getUserSessionTimeout
public static int getUserSessionTimeout()
Get user (UI) default session timeout (in seconds)- Returns:
- User session default timeout (in seconds)
-
getPublicUserSessionTimeout
public static int getPublicUserSessionTimeout()
Get public user (UI) session timeout (in seconds)- Returns:
- Public user session timeout (in seconds)
-
getServicesSessionTimeout
@Deprecated(forRemoval=true, since="5") public static int getServicesSessionTimeout()
Deprecated, for removal: This API element is subject to removal in a future version.
-
getUserTokensMode
public static java.lang.String getUserTokensMode()
Get user tokens mode (simple or JWT)- Returns:
- User tokens type (one of
USERTOKEN_MODE_*
)
-
isSimpleUserTokenMode
public static boolean isSimpleUserTokenMode()
Is simple user tokens mode enabled?- Returns:
- True if simple mode is enabled
-
isJWTUserTokenMode
public static boolean isJWTUserTokenMode()
Is JWT user tokens mode enabled?- Returns:
- True if JWT mode is enabled
-
getUserTokensDuration
public static int getUserTokensDuration()
Get user tokens duration (in seconds)- Returns:
- User tokens duration (in seconds)
-
getUserTokensDuration
public static int getUserTokensDuration(java.lang.String login)
Get user tokens duration (in seconds) for specified login- Parameters:
login
- Optional login, if null the main system parameter value is used- Returns:
- User tokens duration (in seconds)
-
isUserTokensReuseEnabled
public static boolean isUserTokensReuseEnabled()
Is user tokens reuse enabled?- Returns:
- True is user tokens is enabled
-
isUserTokensReuseEnabled
public static boolean isUserTokensReuseEnabled(java.lang.String login)
Is user tokens reuse enabled?- Parameters:
login
- Optional login, if null the main system parameter value is used- Returns:
- True is user tokens is enabled
-
getUserTokensCacheSize
public static int getUserTokensCacheSize()
Get user tokens cache size- Returns:
- User tokens cache size
-
getUserTokensIssuer
public static java.lang.String getUserTokensIssuer()
Get user tokens issuer- Returns:
- User tokens issuer
-
getUserTokensSignatureSecret
public static java.lang.String getUserTokensSignatureSecret()
Get user tokens signature secret (for the internal provider)- Returns:
- User tokens signature secret
-
getUserTokensSignatureAlgorithm
public static java.lang.String getUserTokensSignatureAlgorithm()
Get user tokens signature algorithm (for the internal provider)- Returns:
- User tokens signature secret
-
getInstance
public static SystemParameters getInstance()
Get instance- Returns:
- singleton instance
-
setContextPath
@Deprecated(forRemoval=true, since="5") public static void setContextPath(java.lang.String p)
Deprecated, for removal: This API element is subject to removal in a future version.Do not use, does nothing
-
getContextPath
@Deprecated(forRemoval=true, since="5") public static java.lang.String getContextPath()
Deprecated, for removal: This API element is subject to removal in a future version.Do not use, does nothing
-
setContextURL
@Deprecated(forRemoval=true, since="5") public static void setContextURL(java.lang.String u)
Deprecated, for removal: This API element is subject to removal in a future version.Do not use, does nothing
-
getContextURL
@Deprecated(forRemoval=true, since="5") public static java.lang.String getContextURL()
Deprecated, for removal: This API element is subject to removal in a future version.Do not use, does notyhing
-
getRailway
public static int getRailway()
Get navigator bar size
-
setRailway
public static void setRailway(int p)
Set navigator bar size
-
showNavigator
public static boolean showNavigator()
Show navigator bar ?
-
setShowNavigator
public static void setShowNavigator(boolean p)
Set show navigator bar
-
getBeanDir
@Deprecated(forRemoval=true, since="4.0") public static java.lang.String getBeanDir()
Deprecated, for removal: This API element is subject to removal in a future version.
-
setBeanDir
@Deprecated(forRemoval=true, since="4.0") public static void setBeanDir(java.lang.String dir)
Deprecated, for removal: This API element is subject to removal in a future version.
-
getProjectDir
@Deprecated(forRemoval=true, since="4.0") public static java.lang.String getProjectDir()
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.getProjectDir
-
setProjectDir
@Deprecated(forRemoval=true, since="4.0") public static void setProjectDir(java.lang.String dir)
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.setProjectDir
-
getDocDir
@Deprecated(forRemoval=true, since="4.0") public static java.lang.String getDocDir()
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.getDocDir
-
setDocDir
@Deprecated(forRemoval=true, since="4.0") public static void setDocDir(java.lang.String dir)
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.setDocDir
-
getDocLocalDir
@Deprecated(forRemoval=true, since="4.0") public static java.lang.String getDocLocalDir()
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.getDocLocalDir
-
setDocLocalDir
@Deprecated(forRemoval=true, since="4.0") public static void setDocLocalDir(java.lang.String dir)
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.setDocLocalDir
-
getDocDirMax
@Deprecated(forRemoval=true, since="4.0") public static long getDocDirMax()
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.getDocDirMax
-
setDocDirMax
@Deprecated(forRemoval=true, since="4.0") public static void setDocDirMax(long n)
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.setDocDirMax
-
getTmpDir
@Deprecated(forRemoval=true, since="4.0") public static java.lang.String getTmpDir()
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.getTmpDir
-
setTmpDir
@Deprecated(forRemoval=true, since="4.0") public static void setTmpDir(java.lang.String dir)
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.setTmpDir
-
getContentDir
@Deprecated(forRemoval=true, since="4.0") public static java.lang.String getContentDir()
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.getContentDir
-
setContentDir
@Deprecated(forRemoval=true, since="4.0") public static void setContentDir(java.lang.String dir)
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.setContentDir
-
getExternalDocsDir
@Deprecated(forRemoval=true, since="4.0") public static java.lang.String getExternalDocsDir()
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.getExternalDocsDir
-
setExternalDocsDir
@Deprecated(forRemoval=true, since="4.0") public static void setExternalDocsDir(java.lang.String dir)
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.setExternalDocsDir
-
getLogDir
@Deprecated(forRemoval=true, since="4.0") public static java.lang.String getLogDir()
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.getLogDir
-
setLogDir
@Deprecated(forRemoval=true, since="4.0") public static void setLogDir(java.lang.String dir)
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.setLogDir
-
getRecycleBinDir
@Deprecated(forRemoval=true, since="4.0") public static java.lang.String getRecycleBinDir()
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.getRecycleBinDir
-
setRecycleBinDir
@Deprecated(forRemoval=true, since="4.0") public static void setRecycleBinDir(java.lang.String dir)
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.setRecycleBinDir
-
getCacheDir
@Deprecated(forRemoval=true, since="4.0") public static java.lang.String getCacheDir()
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.getCacheDir
-
setCacheDir
@Deprecated(forRemoval=true, since="4.0") public static void setCacheDir(java.lang.String dir)
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.setCacheDir
-
getImportDir
@Deprecated(forRemoval=true, since="4.0") public static java.lang.String getImportDir()
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.getImportDir
-
setImportDir
@Deprecated(forRemoval=true, since="4.0") public static void setImportDir(java.lang.String dir)
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.setImportDir
-
getExportDir
@Deprecated(forRemoval=true, since="4.0") public static java.lang.String getExportDir()
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.getExportDir
-
setExportDir
@Deprecated(forRemoval=true, since="4.0") public static void setExportDir(java.lang.String dir)
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.setExportDir
-
getIndexDir
@Deprecated(forRemoval=true, since="4.0") public static java.lang.String getIndexDir()
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.getIndexDir
-
setIndexDir
@Deprecated(forRemoval=true, since="4.0") public static void setIndexDir(java.lang.String dir)
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.setIndexDir
-
getSrcDir
@Deprecated(forRemoval=true, since="4.0") public static java.lang.String getSrcDir()
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.getSrcDir
-
setSrcDir
@Deprecated(forRemoval=true, since="4.0") public static void setSrcDir(java.lang.String dir)
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.setSrcDir
-
getBinDir
@Deprecated(forRemoval=true, since="4.0") public static java.lang.String getBinDir()
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.getBinDir
-
setBinDir
@Deprecated(forRemoval=true, since="4.0") public static void setBinDir(java.lang.String dir)
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.setBinDir
-
getMavenDir
@Deprecated(forRemoval=true, since="4.0") public static java.lang.String getMavenDir()
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.getMavenDir
-
setMavenDir
@Deprecated(forRemoval=true, since="4.0") public static void setMavenDir(java.lang.String dir)
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.setMavenDir
-
getClassesDir
@Deprecated(forRemoval=true, since="4.0") public static java.lang.String getClassesDir()
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.getClassesDir
-
setClassesDir
@Deprecated(forRemoval=true, since="4.0") public static void setClassesDir(java.lang.String dir)
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.setClassesDir
-
getLibsDir
@Deprecated(forRemoval=true, since="4.0") public static java.lang.String getLibsDir()
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.getLibsDir
-
setLibsDir
@Deprecated(forRemoval=true, since="4.0") public static void setLibsDir(java.lang.String dir)
Deprecated, for removal: This API element is subject to removal in a future version.Use Platform.setLibsDir
-
getSubPackage
public static java.lang.String getSubPackage()
get subpackage specific class
-
setSubPackage
public static void setSubPackage(java.lang.String sp)
Set subpackage specific class
-
isAboutEnable
public static boolean isAboutEnable()
Is about dialog visible ?
-
setAbout
public static void setAbout(boolean b)
Set about dialog visible
-
setWindowTitle
public static void setWindowTitle(java.lang.String t)
Get application title
-
getWindowTitle
public static java.lang.String getWindowTitle()
Set application title
-
isPanelFilterEnable
public static boolean isPanelFilterEnable()
Display filters on panels
-
setPanelFilter
public static void setPanelFilter(boolean b)
-
getPanelCharMax
public static int getPanelCharMax()
Panels (tabs) max width in char
-
setPanelCharMax
public static void setPanelCharMax(int n)
-
isHtmlEditorEnable
@Deprecated(forRemoval=true, since="5") public static boolean isHtmlEditorEnable()
Deprecated, for removal: This API element is subject to removal in a future version.Use GrantCore.isHtmlEditorEnable
-
setHtmlEditor
@Deprecated(forRemoval=true, since="5") public static void setHtmlEditor(boolean b)
Deprecated, for removal: This API element is subject to removal in a future version.Use GrantCore.setHtmlEditor
-
isCompletionEnable
public static boolean isCompletionEnable()
Is the completion feature enabled?- Returns:
- true if enabled
-
setCompletion
public static void setCompletion(boolean b)
Enable/disable the completion feature- Parameters:
b
- Enabled?
-
isIOInterfaceEnable
public static boolean isIOInterfaceEnable()
Is the I/O endpoint enabled? (uses the database value ofUSE_IO
system parameter)- Returns:
- true if the I/O endpoint is enabled
-
setIOInterface
public static void setIOInterface(boolean b)
Enable/disable the I/O endpoint (uses the database value ofUSE_IO
system parameter)- Parameters:
b
- Enabled?
-
isIOTesterEnable
public static boolean isIOTesterEnable()
Is the I/O tester page enabled? (uses the database value ofUSE_IO_TESTER
system parameter)- Returns:
- true if the I/O tester page is enabled
-
setIOTester
public static void setIOTester(boolean b)
Enable/disable the I/O tester page (uses the database value ofUSE_IO
system parameter)- Parameters:
b
- Enabled?
-
isGITInterfaceEnable
public static boolean isGITInterfaceEnable()
Is the Git endpoint enabled? (uses the database value ofUSE_GIT
system parameter)
Note that this also requires that the JGit libs ara available an that the Git base directory is set- Returns:
- true if the Git endpoint is enabled
-
setGITInterface
public static void setGITInterface(boolean b)
Enable/disable the Git endpoint (uses the database value ofUSE_GIT
system parameter)- Parameters:
b
- Enabled?
-
isAPIInterfaceEnable
public static boolean isAPIInterfaceEnable()
Is the API endpoint enabled? (uses the cached value of theUSE_API
system parameter read once from the database)- Returns:
- true if the API endpoint is enabled
-
clearAPIInterface
public static void clearAPIInterface()
Clear cached value of theUSE_API
system parameter
-
setAPIInterface
public static void setAPIInterface(boolean b)
Enable/disable the API endpoint (sets the database value ofUSE_API
system parameter and updates the cached value accordingly)- Parameters:
b
- Enabled?
-
isAPITesterEnable
public static boolean isAPITesterEnable()
Is the API tester enabled? (uses the database value ofUSE_API_TESTER
system parameter). Note that the API endoint list be enabled.- Returns:
- true if the API tester is enabled
-
setAPITester
public static void setAPITester(boolean b)
Enable/disable the API tester (sets the database value ofUSE_API_TESTER
system parameter and updates the cached value accordingly).- Parameters:
b
- Enabled?
-
getMaxUploadSize
public static long getMaxUploadSize()
Get the upload size limit (in Mb)- Returns:
- Upload size limit
-
setMaxUploadSize
public static void setMaxUploadSize(long s)
Set the upload size limit (in Mb)- Parameters:
s
- Size
-
getHashPassword
@Deprecated(forRemoval=true, since="5") public static java.lang.String getHashPassword()
Deprecated, for removal: This API element is subject to removal in a future version.Use
-
setHashPassword
@Deprecated(forRemoval=true, since="5") public static void setHashPassword(java.lang.String p)
Deprecated, for removal: This API element is subject to removal in a future version.Use setHashEncoding
-
parseHashSettings
public static java.lang.String[] parseHashSettings(java.lang.String hashSettings)
Parse hash password settings- Parameters:
hashSettings
- Hash password settings- Returns:
- Parsed hash password settings
-
getHashAlgorithm
public static java.lang.String getHashAlgorithm()
Get password hash algorithm- Returns:
- Password hash algorithm
-
setHashAlgorithm
public static void setHashAlgorithm(java.lang.String algorithm)
Set password hash algorithm- Parameters:
algorithm
- Password hash algorithm
-
getHashEncoding
public static java.lang.String getHashEncoding()
Get password hash encoding- Returns:
- Pasword hash encoding
-
setHashEncoding
public static void setHashEncoding(java.lang.String encoding)
Set password hash encoding- Parameters:
encoding
- Password hash encoding
-
isHashUseSalt
public static boolean isHashUseSalt()
Get wether password hash use salt- Returns:
- use Use salt?
-
setHashUseSalt
public static void setHashUseSalt(boolean use)
Set wether password hash use salt- Parameters:
use
- Use salt?
-
logDebug
public static boolean logDebug()
Log debug ? SYSTEM:LOG_DEBUG=yes
-
setLogDebug
public static void setLogDebug(boolean b)
-
logInfo
public static boolean logInfo()
Log info ? SYSTEM:LOG_INFO=yes
-
setLogInfo
public static void setLogInfo(boolean b)
-
logWarning
public static boolean logWarning()
Log warn ? SYSTEM:LOG_WARN=yes
-
setLogWarning
public static void setLogWarning(boolean b)
-
logError
public static boolean logError()
Log error ? SYSTEM:LOG_ERROR=yes
-
setLogError
public static void setLogError(boolean b)
-
logFatal
public static boolean logFatal()
Log fatal ? SYSTEM:LOG_FATAL=yes
-
setLogFatal
public static void setLogFatal(boolean b)
-
logObject
public static boolean logObject()
Log object ? SYSTEM:LOG_OBJECT=yes
-
setLogObject
public static void setLogObject(boolean b)
-
logDocument
public static boolean logDocument()
Log document ? SYSTEM:LOG_DOCUMENT=yes
-
setLogDocument
public static void setLogDocument(boolean b)
-
setLogActivity
public static void setLogActivity(org.json.JSONObject cfg)
Parse the LOG_ACTIVITY parameter- Parameters:
cfg
- JSON configuration{ database:bool, logger:bool, prune:int, unit:"hour|day|month|year" }
-
logActivity
public static boolean logActivity()
Log user's activities ? SYSTEM:LOG_ACTIVITY
-
logActivityDB
public static boolean logActivityDB()
Export Redo logs into m_redolog ?
-
setLogActivityDB
public static void setLogActivityDB(boolean b)
-
logActivityFile
public static boolean logActivityFile()
Export Redo logs into file (thru log4j) ?
-
setLogActivityFile
public static void setLogActivityFile(boolean b)
-
logActivityDelay
public static int logActivityDelay()
Prune delay in hours for Redo logs
-
setLogActivityDelay
public static void setLogActivityDelay(int hours)
-
setLogSession
public static void setLogSession(org.json.JSONObject cfg)
Parse the LOG_SESSION parameter- Parameters:
cfg
- JSON configuration{ database:bool, logger:bool, prune:int, unit:"hour|day|month|year" }
-
logSession
public static boolean logSession()
Log user's sessions ? SYSTEM:LOG_SESSION
-
logSessionDB
public static boolean logSessionDB()
Export session into m_session?
-
setLogSessionDB
public static void setLogSessionDB(boolean b)
Export session into m_session- Parameters:
b
- Export session into m_session?
-
logSessionFile
public static boolean logSessionFile()
Export sessions logon/logot into file (thru log4j) ?
-
setLogSessionFile
public static void setLogSessionFile(boolean b)
-
logSessionDelay
public static int logSessionDelay()
Prune delay in hours for m_session
-
setLogSessionDelay
public static void setLogSessionDelay(int hours)
-
isConvertWildcards
public static boolean isConvertWildcards()
Convert wildcards enabled?- Returns:
- True if convert wildcards is enabled
-
setConvertWildcards
public static void setConvertWildcards(boolean b)
Enable convert wildcards- Parameters:
b
- Enable?
-
getSystemParamId
public static java.lang.String getSystemParamId(java.lang.String code)
System parameter id- Parameters:
code
- Parameter code- Returns:
- Id of parameter
-
getSystemParamId
public static java.lang.String getSystemParamId(java.lang.String code, boolean create)
System parameter id- Parameters:
code
- Parameter codecreate
- create if not exists?- Returns:
- Id of parameter
-
setUserSystemParam
public static void setUserSystemParam(java.lang.String login, java.lang.String param, java.lang.String value)
Upsert a user's system parameter- Parameters:
login
- User loginparam
- Parameter namevalue
- Parameter value,null
deletes the user's system parameter
-
clearCache
public static void clearCache()
Clear system parameters cache
-
-