Class SystemParameters


  • public class SystemParameters
    extends java.lang.Object
    System parameters
    • 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

        public static final java.lang.String SERVICES_TIMEOUT
        Services (API, I/O, ...) session timeout
        See Also:
        Constant Field Values
      • SERVICES_TIMEOUT_DEFAULT

        public static final int SERVICES_TIMEOUT_DEFAULT
        Services (API, I/O, ...) session timeout default value (in minutes)
        See Also:
        Constant Field Values
      • EASYMODE

        public static final java.lang.String EASYMODE
        Flag to activate Easy mode
        See Also:
        Constant Field Values
      • EASYMODE_PATCHES

        public static final java.lang.String EASYMODE_PATCHES
        Patch mode
        See Also:
        Constant Field Values
      • EASYMODE_DEFAULTAPPCODE

        public static final java.lang.String EASYMODE_DEFAULTAPPCODE
        Default application prefix
        See Also:
        Constant Field Values
      • EASYMODE_DEFAULTMODULENAME

        public static final java.lang.String EASYMODE_DEFAULTMODULENAME
        Default module name
        See Also:
        Constant Field Values
      • EASYMODE_DEFAULTGROUPNAME

        public static final java.lang.String EASYMODE_DEFAULTGROUPNAME
        Default group name
        See Also:
        Constant Field Values
      • EASYMODE_DEFAULTDOMAINNAME

        public static final java.lang.String EASYMODE_DEFAULTDOMAINNAME
        Default domain name
        See Also:
        Constant Field Values
      • EASYMODE_CLEARCACHE

        public static final java.lang.String EASYMODE_CLEARCACHE
        Auto clear cache
        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
      • 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
      • EXTRA_PREFS

        public static final java.lang.String EXTRA_PREFS
        User extra 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
      • EDITOR_PREFS

        public static final java.lang.String EDITOR_PREFS
        Legacy editor 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
      • MENU_TREEVIEW

        public static final java.lang.String MENU_TREEVIEW
        Treeviews added in menu
        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
      • UNDOREDO_USER

        public static final java.lang.String UNDOREDO_USER
        Parameter to manage user undo/redo
        See Also:
        Constant Field Values
      • UNDOREDO_USER_POOL

        public static final java.lang.String UNDOREDO_USER_POOL
        Parameter to manage user undo/redo pool
        See Also:
        Constant Field Values
      • UNDOREDO_PATCH

        public static final java.lang.String UNDOREDO_PATCH
        Parameter to manage Patch XML
        See Also:
        Constant Field Values
      • DELETELIST_MSG

        public static final java.lang.String DELETELIST_MSG
        Delete list messages in object parameters
        See Also:
        Constant Field Values
      • EDITLIST_MSG

        public static final java.lang.String EDITLIST_MSG
        Edit list messages in object parameters
        See Also:
        Constant Field Values
      • EDITLIST_DATA

        public static final java.lang.String EDITLIST_DATA
        Edit list data in object parameters
        See Also:
        Constant Field Values
      • EMBEDDEDOBJ_MSG

        public static final java.lang.String EMBEDDEDOBJ_MSG
        Embedded object messages in object parameters
        See Also:
        Constant Field Values
      • EMBEDDEDOBJ_DATA

        public static final java.lang.String EMBEDDEDOBJ_DATA
        Embedded object data in object parameters
        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
    • Method Detail

      • getUserSessionTimeout

        public static int getUserSessionTimeout()
        Get user (UI) session timeout (in seconds)
        Returns:
        User session timeout (in seconds)
      • getPublicUserSessionTimeout

        public static int getPublicUserSessionTimeout()
        Get public user (UI) session timeout (in seconds)
        Returns:
        Public user session timeout (in seconds)
      • getServicesSessionTimeout

        public static int getServicesSessionTimeout()
        Get services (API, I/O, ...) session timeout (in seconds)
        Returns:
        Services session timeout (in seconds)
      • getInstance

        public static SystemParameters getInstance()
        Get instance
        Returns:
        singleton instance
      • setContextPath

        @Deprecated
        public static void setContextPath​(java.lang.String p)
        Deprecated.
      • getContextPath

        @Deprecated
        public static java.lang.String getContextPath()
        Deprecated.
      • setContextURL

        @Deprecated
        public static void setContextURL​(java.lang.String u)
        Deprecated.
      • getContextURL

        @Deprecated
        public static java.lang.String getContextURL()
        Deprecated.
      • 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
        public static java.lang.String getBeanDir()
        Deprecated.
      • setBeanDir

        @Deprecated
        public static void setBeanDir​(java.lang.String dir)
        Deprecated.
      • getProjectDir

        @Deprecated
        public static java.lang.String getProjectDir()
        Deprecated.
        Use Platform.getProjectDir
      • setProjectDir

        @Deprecated
        public static void setProjectDir​(java.lang.String dir)
        Deprecated.
        Use Platform.setProjectDir
      • getDocDir

        @Deprecated
        public static java.lang.String getDocDir()
        Deprecated.
        Use Platform.getDocDir
      • setDocDir

        @Deprecated
        public static void setDocDir​(java.lang.String dir)
        Deprecated.
        Use Platform.setDocDir
      • getDocLocalDir

        @Deprecated
        public static java.lang.String getDocLocalDir()
        Deprecated.
        Use Platform.getDocLocalDir
      • setDocLocalDir

        @Deprecated
        public static void setDocLocalDir​(java.lang.String dir)
        Deprecated.
        Use Platform.setDocLocalDir
      • getDocDirMax

        @Deprecated
        public static long getDocDirMax()
        Deprecated.
        Use Platform.getDocDirMax
      • setDocDirMax

        @Deprecated
        public static void setDocDirMax​(long n)
        Deprecated.
        Use Platform.setDocDirMax
      • getTmpDir

        @Deprecated
        public static java.lang.String getTmpDir()
        Deprecated.
        Use Platform.getTmpDir
      • setTmpDir

        @Deprecated
        public static void setTmpDir​(java.lang.String dir)
        Deprecated.
        Use Platform.setTmpDir
      • getContentDir

        @Deprecated
        public static java.lang.String getContentDir()
        Deprecated.
        Use Platform.getContentDir
      • setContentDir

        @Deprecated
        public static void setContentDir​(java.lang.String dir)
        Deprecated.
        Use Platform.setContentDir
      • getExternalDocsDir

        @Deprecated
        public static java.lang.String getExternalDocsDir()
        Deprecated.
        Use Platform.getExternalDocsDir
      • setExternalDocsDir

        @Deprecated
        public static void setExternalDocsDir​(java.lang.String dir)
        Deprecated.
        Use Platform.setExternalDocsDir
      • getLogDir

        @Deprecated
        public static java.lang.String getLogDir()
        Deprecated.
        Use Platform.getLogDir
      • setLogDir

        @Deprecated
        public static void setLogDir​(java.lang.String dir)
        Deprecated.
        Use Platform.setLogDir
      • getRecycleBinDir

        @Deprecated
        public static java.lang.String getRecycleBinDir()
        Deprecated.
        Use Platform.getRecycleBinDir
      • setRecycleBinDir

        @Deprecated
        public static void setRecycleBinDir​(java.lang.String dir)
        Deprecated.
        Use Platform.setRecycleBinDir
      • getCacheDir

        @Deprecated
        public static java.lang.String getCacheDir()
        Deprecated.
        Use Platform.getCacheDir
      • setCacheDir

        @Deprecated
        public static void setCacheDir​(java.lang.String dir)
        Deprecated.
        Use Platform.setCacheDir
      • getImportDir

        @Deprecated
        public static java.lang.String getImportDir()
        Deprecated.
        Use Platform.getImportDir
      • setImportDir

        @Deprecated
        public static void setImportDir​(java.lang.String dir)
        Deprecated.
        Use Platform.setImportDir
      • getExportDir

        @Deprecated
        public static java.lang.String getExportDir()
        Deprecated.
        Use Platform.getExportDir
      • setExportDir

        @Deprecated
        public static void setExportDir​(java.lang.String dir)
        Deprecated.
        Use Platform.setExportDir
      • getIndexDir

        @Deprecated
        public static java.lang.String getIndexDir()
        Deprecated.
        Use Platform.getIndexDir
      • setIndexDir

        @Deprecated
        public static void setIndexDir​(java.lang.String dir)
        Deprecated.
        Use Platform.setIndexDir
      • getSrcDir

        @Deprecated
        public static java.lang.String getSrcDir()
        Deprecated.
        Use Platform.getSrcDir
      • setSrcDir

        @Deprecated
        public static void setSrcDir​(java.lang.String dir)
        Deprecated.
        Use Platform.setSrcDir
      • getBinDir

        @Deprecated
        public static java.lang.String getBinDir()
        Deprecated.
        Use Platform.getBinDir
      • setBinDir

        @Deprecated
        public static void setBinDir​(java.lang.String dir)
        Deprecated.
        Use Platform.setBinDir
      • getMavenDir

        @Deprecated
        public static java.lang.String getMavenDir()
        Deprecated.
        Use Platform.getMavenDir
      • setMavenDir

        @Deprecated
        public static void setMavenDir​(java.lang.String dir)
        Deprecated.
        Use Platform.setMavenDir
      • getClassesDir

        @Deprecated
        public static java.lang.String getClassesDir()
        Deprecated.
        Use Platform.getClassesDir
      • setClassesDir

        @Deprecated
        public static void setClassesDir​(java.lang.String dir)
        Deprecated.
        Use Platform.setClassesDir
      • getLibsDir

        @Deprecated
        public static java.lang.String getLibsDir()
        Deprecated.
        Use Platform.getLibsDir
      • setLibsDir

        @Deprecated
        public static void setLibsDir​(java.lang.String dir)
        Deprecated.
        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
        public static boolean isHtmlEditorEnable()
        Deprecated.
        Use GrantCore.isHtmlEditorEnable
      • setHtmlEditor

        @Deprecated
        public static void setHtmlEditor​(boolean b)
        Deprecated.
        Use GrantCore.setHtmlEditor
      • isCompletionEnable

        public static boolean isCompletionEnable()
        Use completion feature ?
      • setCompletion

        public static void setCompletion​(boolean b)
      • isIOInterfaceEnable

        public static boolean isIOInterfaceEnable()
        Use I/O interface feature ?
      • setIOInterface

        public static void setIOInterface​(boolean b)
      • isGITInterfaceEnable

        public static boolean isGITInterfaceEnable()
        Use GIT interface feature ?
      • setGITInterface

        public static void setGITInterface​(boolean b)
      • isAPIInterfaceEnable

        public static boolean isAPIInterfaceEnable()
        Use API interface feature ?
      • setAPIInterface

        public static void setAPIInterface​(boolean b)
      • getMaxUploadSize

        public static long getMaxUploadSize()
        Upload limit size (Mo)
      • setMaxUploadSize

        public static void setMaxUploadSize​(long s)
      • getHashPassword

        @Deprecated
        public static java.lang.String getHashPassword()
        Deprecated.
      • setHashPassword

        @Deprecated
        public static void setHashPassword​(java.lang.String p)
        Deprecated.
      • 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)
      • 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
      • setConvertWildcards

        public static void setConvertWildcards​(boolean b)
      • getSystemParamId

        public static java.lang.String getSystemParamId​(java.lang.String code)
        System parameter id
      • clearCache

        public static void clearCache()