Class Globals


  • public class Globals
    extends java.lang.Object
    Global constants
    This class is dedicated to provide all other Simplicite classes with some very global constants that shouldn't be changed unless very specific requirement.
    If present, these global variables are taken from the system varaiables and the simplicite.properties file, otherwise hard-coded default values are set.
    • Field Detail

      • JAVA_VERSION

        public static final int JAVA_VERSION
        Java version as integer (e.g. 8 for Java version 1.8.x) or 0 if java version could not be found
      • JAVA_COMPILER_VERSION

        public static final java.lang.String JAVA_COMPILER_VERSION
        Java version as string (e.g. 1.8 for Java version 1.8.x) or null if java version could not be found
      • JAVA_SCRIPT_ENGINE_NAME

        public static final java.lang.String JAVA_SCRIPT_ENGINE_NAME
        Java Script Engine name
        See Also:
        Constant Field Values
      • LINE_SEPARATOR

        public static final java.lang.String LINE_SEPARATOR
        System line separator
      • PATH_SEPARATOR

        public static final java.lang.String PATH_SEPARATOR
        System path separator
      • SYSTEM_TMP_DIR

        public static final java.lang.String SYSTEM_TMP_DIR
        System temporary dir
      • DEFAULT_OBJECT_PACKAGE

        public static final java.lang.String DEFAULT_OBJECT_PACKAGE
        See Also:
        Constant Field Values
      • DEFAULT_OBJECT_IMPLEMENTATION

        public static final java.lang.String DEFAULT_OBJECT_IMPLEMENTATION
        See Also:
        Constant Field Values
      • DEFAULT_OBJECT_SCRIPTED_IMPLEMENTATION

        public static final java.lang.String DEFAULT_OBJECT_SCRIPTED_IMPLEMENTATION
        See Also:
        Constant Field Values
      • DEFAULT_OBJECT_SERVICE_IMPLEMENTATION

        public static final java.lang.String DEFAULT_OBJECT_SERVICE_IMPLEMENTATION
        See Also:
        Constant Field Values
      • DEFAULT_OBJECT_SERVICE_SIMPLICITE_IMPLEMENTATION

        public static final java.lang.String DEFAULT_OBJECT_SERVICE_SIMPLICITE_IMPLEMENTATION
        See Also:
        Constant Field Values
      • DEFAULT_OBJECT_SERVICE_LDAP_IMPLEMENTATION

        public static final java.lang.String DEFAULT_OBJECT_SERVICE_LDAP_IMPLEMENTATION
        See Also:
        Constant Field Values
      • DEFAULT_OBJECT_SERVICE_OPENDATASOFT_IMPLEMENTATION

        public static final java.lang.String DEFAULT_OBJECT_SERVICE_OPENDATASOFT_IMPLEMENTATION
        See Also:
        Constant Field Values
      • DEFAULT_OBJECT_SERVICE_SALESFORCE_IMPLEMENTATION

        public static final java.lang.String DEFAULT_OBJECT_SERVICE_SALESFORCE_IMPLEMENTATION
        See Also:
        Constant Field Values
      • DEFAULT_WORKFLOW_PACKAGE

        public static final java.lang.String DEFAULT_WORKFLOW_PACKAGE
        See Also:
        Constant Field Values
      • DEFAULT_WORKFLOW_IMPLEMENTATION

        public static final java.lang.String DEFAULT_WORKFLOW_IMPLEMENTATION
        See Also:
        Constant Field Values
      • DEFAULT_WORKFLOW_SCRIPTED_IMPLEMENTATION

        public static final java.lang.String DEFAULT_WORKFLOW_SCRIPTED_IMPLEMENTATION
        See Also:
        Constant Field Values
      • DEFAULT_EXTOBJECT_PACKAGE

        public static final java.lang.String DEFAULT_EXTOBJECT_PACKAGE
        See Also:
        Constant Field Values
      • DEFAULT_EXTOBJECT_IMPLEMENTATION

        public static final java.lang.String DEFAULT_EXTOBJECT_IMPLEMENTATION
        See Also:
        Constant Field Values
      • DEFAULT_EXTOBJECT_SCRIPTED_IMPLEMENTATION

        public static final java.lang.String DEFAULT_EXTOBJECT_SCRIPTED_IMPLEMENTATION
        See Also:
        Constant Field Values
      • DEFAULT_DISPOSITION_PACKAGE

        public static final java.lang.String DEFAULT_DISPOSITION_PACKAGE
        See Also:
        Constant Field Values
      • DEFAULT_DISPOSITION_IMPLEMENTATION

        public static final java.lang.String DEFAULT_DISPOSITION_IMPLEMENTATION
        See Also:
        Constant Field Values
      • DEFAULT_DISPOSITION_SCRIPTED_IMPLEMENTATION

        public static final java.lang.String DEFAULT_DISPOSITION_SCRIPTED_IMPLEMENTATION
        See Also:
        Constant Field Values
      • DEFAULT_ADAPTERS_PACKAGE

        public static final java.lang.String DEFAULT_ADAPTERS_PACKAGE
        See Also:
        Constant Field Values
      • DEFAULT_COMMONS_PACKAGE

        public static final java.lang.String DEFAULT_COMMONS_PACKAGE
        See Also:
        Constant Field Values
      • GRANTHOOKS_CLASSNAME

        public static final java.lang.String GRANTHOOKS_CLASSNAME
        See Also:
        Constant Field Values
      • STATIC_RESOURCES_PATH

        public static final java.lang.String STATIC_RESOURCES_PATH
        See Also:
        Constant Field Values
      • DEFAULT_DISPOSITION

        public static final java.lang.String DEFAULT_DISPOSITION
        Default disposition name
        See Also:
        Constant Field Values
      • DEFAULT_THEME

        public static final java.lang.String DEFAULT_THEME
        Default theme name
        See Also:
        Constant Field Values
      • DEFAULT_CSS_RESOURCE_CODE

        public static final java.lang.String DEFAULT_CSS_RESOURCE_CODE
        Default CSS resource code
        See Also:
        Constant Field Values
      • DEFAULT_JS_RESOURCE_CODE

        public static final java.lang.String DEFAULT_JS_RESOURCE_CODE
        Default JS resource code
        See Also:
        Constant Field Values
      • DEFAULT_HTML_RESOURCE_CODE

        public static final java.lang.String DEFAULT_HTML_RESOURCE_CODE
        Default HTML resource code
        See Also:
        Constant Field Values
      • NOT_FOUND

        public static final java.lang.String NOT_FOUND
        Not found constant
        See Also:
        Constant Field Values
      • SRC_DIR_DEFAULT

        public static final java.lang.String SRC_DIR_DEFAULT
        Source dir default (relative to data dir)
        See Also:
        Constant Field Values
      • BIN_DIR_DEFAULT

        public static final java.lang.String BIN_DIR_DEFAULT
        Binary dir default (relative to data dir)
        See Also:
        Constant Field Values
      • JAR_DIR_DEFAULT

        public static final java.lang.String JAR_DIR_DEFAULT
        JAR dir default (relative to data dir)
        See Also:
        Constant Field Values
      • MAVEN_DIR_DEFAULT

        public static final java.lang.String MAVEN_DIR_DEFAULT
        Maven dir default (relative to data dir)
        See Also:
        Constant Field Values
      • LOG_DIR_DEFAULT

        public static final java.lang.String LOG_DIR_DEFAULT
        Log dir default (relative to data dir)
        See Also:
        Constant Field Values
      • TMP_DIR_DEFAULT

        public static final java.lang.String TMP_DIR_DEFAULT
        Temporary dir default (relative to data dir)
        See Also:
        Constant Field Values
      • CLASSES_DIR_DEFAULT

        public static final java.lang.String CLASSES_DIR_DEFAULT
        Classes dir default (relative to data dir)
        See Also:
        Constant Field Values
      • JAVADOC_DIR_DEFAULT

        public static final java.lang.String JAVADOC_DIR_DEFAULT
        Platform Javadocs dir default (relative to data dir)
        See Also:
        Constant Field Values
      • LIBS_DIR_DEFAULT

        public static final java.lang.String LIBS_DIR_DEFAULT
        Platform libs dir default (relative to data dir)
        See Also:
        Constant Field Values
      • DOC_DIR_DEFAULT

        public static final java.lang.String DOC_DIR_DEFAULT
        Document dir default (relative to data dir)
        See Also:
        Constant Field Values
      • DOC_DIR_BLOB

        public static final java.lang.String DOC_DIR_BLOB
        Documents as BLOB constant
        See Also:
        Constant Field Values
      • DOC_DIR_MAX

        public static final int DOC_DIR_MAX
        Max number of documets per sub dir
        See Also:
        Constant Field Values
      • CACHE_DIR_DEFAULT

        public static final java.lang.String CACHE_DIR_DEFAULT
        Cache dir default (relative to DOC_DIR_DEFAULT)
        See Also:
        Constant Field Values
      • CONTENT_DIR_DEFAULT

        public static final java.lang.String CONTENT_DIR_DEFAULT
        Content dir default (relative to DOC_DIR_DEFAULT)
        See Also:
        Constant Field Values
      • EXTERNALDOCS_DIR_DEFAULT

        public static final java.lang.String EXTERNALDOCS_DIR_DEFAULT
        External docs dir default (relative to DOC_DIR_DEFAULT)
        See Also:
        Constant Field Values
      • IMPORT_DIR_DEFAULT

        public static final java.lang.String IMPORT_DIR_DEFAULT
        Import dir default (relative to DOC_DIR_DEFAULT)
        See Also:
        Constant Field Values
      • EXPORT_DIR_DEFAULT

        public static final java.lang.String EXPORT_DIR_DEFAULT
        Export dir default (relative to DOC_DIR_DEFAULT)
        See Also:
        Constant Field Values
      • INDEX_DIR_DEFAULT

        public static final java.lang.String INDEX_DIR_DEFAULT
        Index dir default (relative to DOC_DIR_DEFAULT)
        See Also:
        Constant Field Values
      • RECYCLEBIN_DIR_DEFAULT

        public static final java.lang.String RECYCLEBIN_DIR_DEFAULT
        Recycle bin dir default (relative to DOC_DIR_DEFAULT)
        See Also:
        Constant Field Values
      • MAX_UPLOAD_SIZE

        public static final int MAX_UPLOAD_SIZE
        Default max upload size (in Mb)
        See Also:
        Constant Field Values
      • MAX_JSON_LOG_SIZE

        public static final int MAX_JSON_LOG_SIZE
        Default max JSON log size
        See Also:
        Constant Field Values
      • USERTOKEN_TYPE_UI

        public static final java.lang.String USERTOKEN_TYPE_UI
        User token UI type
        See Also:
        Constant Field Values
      • USERTOKEN_TYPE_API

        public static final java.lang.String USERTOKEN_TYPE_API
        User token API type
        See Also:
        Constant Field Values
      • USERTOKEN_LENGTH

        public static final int USERTOKEN_LENGTH
        Default user token length
        See Also:
        Constant Field Values
      • SEARCH_KEYWORDS

        public static final java.lang.String[] SEARCH_KEYWORDS
        Search keywords
      • DOT_REPLACEMENT

        public static final java.lang.String DOT_REPLACEMENT
        Dot replacement in namings (DOM Id, JSON, XML, ...)
        See Also:
        Constant Field Values
      • LANG_FRENCH

        public static final java.lang.String LANG_FRENCH
        French language code
        See Also:
        Constant Field Values
      • LANG_ENGLISH

        public static final java.lang.String LANG_ENGLISH
        English language code
        See Also:
        Constant Field Values
      • LANG_SPANISH

        public static final java.lang.String LANG_SPANISH
        Spanish language code
        See Also:
        Constant Field Values
      • LANG_GERMAN

        public static final java.lang.String LANG_GERMAN
        German language code
        See Also:
        Constant Field Values
      • LANG_ITALIAN

        public static final java.lang.String LANG_ITALIAN
        Italian language code
        See Also:
        Constant Field Values
      • LANG_PORTUGESE

        public static final java.lang.String LANG_PORTUGESE
        Portugese language code
        See Also:
        Constant Field Values
      • LANG_DUTCH

        public static final java.lang.String LANG_DUTCH
        Dutch language code
        See Also:
        Constant Field Values
      • LANG_JAPANESE

        public static final java.lang.String LANG_JAPANESE
        Japanese language code
        See Also:
        Constant Field Values
      • LANG_KOREAN

        public static final java.lang.String LANG_KOREAN
        Korean language code
        See Also:
        Constant Field Values
      • LANG_CHINESE

        public static final java.lang.String LANG_CHINESE
        Chinese language code
        See Also:
        Constant Field Values
      • LANG_DEFAULT

        @Deprecated
        public static final java.lang.String LANG_DEFAULT
        Deprecated.
      • DUMMY_TEXT

        public static final java.lang.String DUMMY_TEXT
        Dummy (Lorem ipsum...) text
        See Also:
        Constant Field Values
      • MENU_STANDARD

        public static final java.lang.String MENU_STANDARD
        Standard menu
        See Also:
        Constant Field Values
      • MENU_ACCORDION

        public static final java.lang.String MENU_ACCORDION
        Accordion menu
        See Also:
        Constant Field Values
      • MENU_SIMPLE

        public static final java.lang.String MENU_SIMPLE
        Simple menu
        See Also:
        Constant Field Values
      • MENU_DROPDOWN

        public static final java.lang.String MENU_DROPDOWN
        Dropdown menu
        See Also:
        Constant Field Values
      • MENU_DOMAINNAMES

        public static final java.lang.String MENU_DOMAINNAMES
        Domains names only
        See Also:
        Constant Field Values
      • MENU_DOMAINS

        public static final java.lang.String MENU_DOMAINS
        Domains
        See Also:
        Constant Field Values
      • MENU_SINGLEDOMAIN

        public static final java.lang.String MENU_SINGLEDOMAIN
        Single domain
        See Also:
        Constant Field Values
      • PAGE_PUBLICMAIN

        public static final java.lang.String PAGE_PUBLICMAIN
        Public main page name
        See Also:
        Constant Field Values
      • PAGE_MAIN

        public static final java.lang.String PAGE_MAIN
        Main page name
        See Also:
        Constant Field Values
      • PAGE_LOGON

        public static final java.lang.String PAGE_LOGON
        Logon page name
        See Also:
        Constant Field Values
      • PAGE_PUBLICHOME

        public static final java.lang.String PAGE_PUBLICHOME
        Public home page name
        See Also:
        Constant Field Values
      • PAGE_HOME

        public static final java.lang.String PAGE_HOME
        Home page name
        See Also:
        Constant Field Values
      • BROWSER_BACKGROUND

        public static final java.lang.String BROWSER_BACKGROUND
        Default browser background color
        See Also:
        Constant Field Values
      • SQL_RESERVED_WORDS

        public static final java.util.List<java.lang.String> SQL_RESERVED_WORDS
        SQL reserved words
      • SQL_NAME_REGEXP

        public static final java.lang.String SQL_NAME_REGEXP
        SQL name regular expression (alphanum[.alphanum])
        See Also:
        Constant Field Values
      • HIST_SUFFIX

        public static final java.lang.String HIST_SUFFIX
        Historic object logical name suffix
        See Also:
        Constant Field Values
      • HIST_DB_SUFFIX

        public static final java.lang.String HIST_DB_SUFFIX
        Historic object physical name suffix
        See Also:
        Constant Field Values
      • HIST_LINK_ORDER

        public static final int HIST_LINK_ORDER
        Historic object link order
        See Also:
        Constant Field Values
      • SERVER_JBOSS

        @Deprecated
        public static final java.lang.String SERVER_JBOSS
        Deprecated.
        Legacy J2EE JBoss servers are not supported anymore
        See Also:
        Constant Field Values
      • SERVER_WILDFLY

        public static final java.lang.String SERVER_WILDFLY
        WildFly JEE server
        See Also:
        Constant Field Values
      • SERVER_TOMEE

        public static final java.lang.String SERVER_TOMEE
        TomEE JEE server
        See Also:
        Constant Field Values
      • SERVER_TOMCAT

        public static final java.lang.String SERVER_TOMCAT
        Tomcat web server
        See Also:
        Constant Field Values
      • SERVER_TYPE_J2EE

        @Deprecated
        public static final java.lang.String SERVER_TYPE_J2EE
        Deprecated.
        Legacy J2EE server type is not supported anymore
        See Also:
        Constant Field Values
      • SERVER_TYPE_JEE

        public static final java.lang.String SERVER_TYPE_JEE
        JEE server type
        See Also:
        Constant Field Values
      • SERVER_TYPE_WEB

        public static final java.lang.String SERVER_TYPE_WEB
        Web server type
        See Also:
        Constant Field Values
      • WEB_IMAGES_PATH

        public static final java.lang.String WEB_IMAGES_PATH
        Images path
        See Also:
        Constant Field Values
      • WEB_SCRIPTS_PATH

        public static final java.lang.String WEB_SCRIPTS_PATH
        Scripts path
        See Also:
        Constant Field Values
      • WEB_WEBCONTENT_PATH

        public static final java.lang.String WEB_WEBCONTENT_PATH
        Public web content path
        See Also:
        Constant Field Values
      • WEB_API_PATH

        public static final java.lang.String WEB_API_PATH
        API path
        See Also:
        Constant Field Values
      • WEB_GIT_PATH

        public static final java.lang.String WEB_GIT_PATH
        Git repositories path
        See Also:
        Constant Field Values
      • WEB_MAVEN_PATH

        public static final java.lang.String WEB_MAVEN_PATH
        Maven repository path
        See Also:
        Constant Field Values
      • DB_UNKNOWN

        public static final int DB_UNKNOWN
        Unknown database vendor code
        See Also:
        Constant Field Values
      • DB_POSTGRESQL

        public static final int DB_POSTGRESQL
        PostgreSQL vendor code
        See Also:
        Constant Field Values
      • DEFAULT_SYSTEM_ENCODING

        public static final java.lang.String DEFAULT_SYSTEM_ENCODING
        System encoding
      • EPHEMERAL_ENCRYPTION_KEY

        public static final java.lang.String EPHEMERAL_ENCRYPTION_KEY
        Ephemeral 128bit (16 char) encryption key (new at each application start)
      • DEFAULT_RESOURCES_URL

        public static final java.lang.String DEFAULT_RESOURCES_URL
        Resources URL
        See Also:
        Constant Field Values
      • EXCEL_HTML

        public static final java.lang.String EXCEL_HTML
        Excel HTML format
        See Also:
        Constant Field Values
      • EXCEL_BINARY

        public static final java.lang.String EXCEL_BINARY
        Excel binary format
        See Also:
        Constant Field Values
      • ENDPOINT_SYSTEM

        public static final int ENDPOINT_SYSTEM
        System end point
        See Also:
        Constant Field Values
      • ENDPOINT_UI_PUBLIC

        public static final int ENDPOINT_UI_PUBLIC
        UI public end point
        See Also:
        Constant Field Values
      • ENDPOINT_WS

        @Deprecated
        public static final int ENDPOINT_WS
        Deprecated.
        Web services gateway end point
        See Also:
        Constant Field Values
      • ENDPOINT_CRON

        public static final int ENDPOINT_CRON
        Cron pseudo end point
        See Also:
        Constant Field Values
      • AUTH_DEFAULT_URL

        public static final java.lang.String AUTH_DEFAULT_URL
        Default auth form action
        See Also:
        Constant Field Values
      • COOKIE_CLIENTID

        public static final java.lang.String COOKIE_CLIENTID
        Client unique ID cookie name
        See Also:
        Constant Field Values
      • SESSION_CLIENTID

        public static final java.lang.String SESSION_CLIENTID
        Client unique ID session attribute name
        See Also:
        Constant Field Values
      • PUBLIC_GRANT_ATTRIBUTE_NAME

        public static final java.lang.String PUBLIC_GRANT_ATTRIBUTE_NAME
        Public grant attribute name
        See Also:
        Constant Field Values
      • PUBLIC_PAGE_ATTRIBUTE_NAME

        public static final java.lang.String PUBLIC_PAGE_ATTRIBUTE_NAME
        Public page attribute name
        See Also:
        Constant Field Values
      • GRANT_ATTRIBUTE_NAME

        public static final java.lang.String GRANT_ATTRIBUTE_NAME
        UI grant attribute name
        See Also:
        Constant Field Values
      • PAGE_ATTRIBUTE_NAME

        public static final java.lang.String PAGE_ATTRIBUTE_NAME
        UI page attribute name
        See Also:
        Constant Field Values
      • NAV_ATTRIBUTE_NAME

        public static final java.lang.String NAV_ATTRIBUTE_NAME
        UI navigator attribute name
        See Also:
        Constant Field Values
      • INDEX_ATTRIBUTE_NAME

        public static final java.lang.String INDEX_ATTRIBUTE_NAME
        UI index attribute name
        See Also:
        Constant Field Values
      • TREEVIEW_ATTRIBUTE_NAME

        public static final java.lang.String TREEVIEW_ATTRIBUTE_NAME
        UI treeview attribute name
        See Also:
        Constant Field Values
      • IO_GRANT_ATTRIBUTE_NAME

        public static final java.lang.String IO_GRANT_ATTRIBUTE_NAME
        I/O grant attribute name
        See Also:
        Constant Field Values
      • GIT_GRANT_ATTRIBUTE_NAME

        public static final java.lang.String GIT_GRANT_ATTRIBUTE_NAME
        Git grant attribute name
        See Also:
        Constant Field Values
      • API_GRANTS_ATTRIBUTE_NAME

        public static final java.lang.String API_GRANTS_ATTRIBUTE_NAME
        API grants attribute name
        See Also:
        Constant Field Values
      • COOKIE_LEGACY

        public static final java.lang.String COOKIE_LEGACY
        Legacy cookie name
        See Also:
        Constant Field Values
      • COOKIE_USERTOKEN

        public static final java.lang.String COOKIE_USERTOKEN
        Auth token cookie name
        See Also:
        Constant Field Values
      • AUTH_METHOD_NONE

        public static final int AUTH_METHOD_NONE
        No authentication method
        See Also:
        Constant Field Values
      • AUTH_METHOD_DEFAULT

        public static final int AUTH_METHOD_DEFAULT
        Default (server managed: JAAS, Relam, ...) authentication method
        See Also:
        Constant Field Values
      • AUTH_METHOD_INTERNAL

        public static final int AUTH_METHOD_INTERNAL
        Internal OAuth2 authentication method
        See Also:
        Constant Field Values
      • AUTH_METHOD_OAUTH2

        public static final int AUTH_METHOD_OAUTH2
        External OAuth2 authentication method
        See Also:
        Constant Field Values
      • AUTH_METHOD_SAML

        public static final int AUTH_METHOD_SAML
        External SAML authentication method
        See Also:
        Constant Field Values
      • AUTH_METHOD_LDAP

        public static final int AUTH_METHOD_LDAP
        LDAP authentication method
        See Also:
        Constant Field Values
      • AUTH_METHOD_CROWD

        public static final int AUTH_METHOD_CROWD
        Crowd authentication method
        See Also:
        Constant Field Values
      • AUTH_METHOD_CUSTOM

        public static final int AUTH_METHOD_CUSTOM
        Custom authentication method
        See Also:
        Constant Field Values
      • AUTH_DEFAULT_ERROR

        public static final java.lang.String AUTH_DEFAULT_ERROR
        Default authentication error message
        See Also:
        Constant Field Values
      • AUTH_PROVIDER_DEFAULT

        public static final java.lang.String AUTH_PROVIDER_DEFAULT
        Default (server-managed: JAAS, Relam, ...) authentication provider name
        See Also:
        Constant Field Values
      • AUTH_PROVIDER_INTERNAL

        public static final java.lang.String AUTH_PROVIDER_INTERNAL
        Internal OAuth2 authentication provider name
        See Also:
        Constant Field Values
      • AUTH_PROVIDER_OAUTH2_GOOGLE

        public static final java.lang.String AUTH_PROVIDER_OAUTH2_GOOGLE
        Google external OAuth2 authentication provider name
        See Also:
        Constant Field Values
      • AUTH_PROVIDER_OAUTH2_MICROSOFT

        public static final java.lang.String AUTH_PROVIDER_OAUTH2_MICROSOFT
        Microsoft Live external OAuth2 authentication provider name
        See Also:
        Constant Field Values
      • AUTH_PROVIDER_OAUTH2_LINKEDIN

        public static final java.lang.String AUTH_PROVIDER_OAUTH2_LINKEDIN
        LinkedIn external OAuth2 authentication provider name
        See Also:
        Constant Field Values
      • AUTH_PROVIDER_OAUTH2_FRANCECONNECT

        public static final java.lang.String AUTH_PROVIDER_OAUTH2_FRANCECONNECT
        FranceConnect external OAuth2 authentication provider name
        See Also:
        Constant Field Values
      • AUTH_PROVIDER_SAML_GOOGLE

        public static final java.lang.String AUTH_PROVIDER_SAML_GOOGLE
        Google external SAML authentication provider name
        See Also:
        Constant Field Values
      • AUTH_PROVIDER_CROWD

        public static final java.lang.String AUTH_PROVIDER_CROWD
        Generic Crowd provider name
        See Also:
        Constant Field Values
      • AUTH_PROVIDER_LDAP

        public static final java.lang.String AUTH_PROVIDER_LDAP
        Generic LDAP provider name
        See Also:
        Constant Field Values
      • AUTH_PROVIDER_CUSTOM

        public static final java.lang.String AUTH_PROVIDER_CUSTOM
        Generic custom provider name
        See Also:
        Constant Field Values
      • SESSION_INFO

        public static final java.lang.String SESSION_INFO
        Session info name (session attribute and system parameter)
        See Also:
        Constant Field Values
      • SESSION_LOGIN

        public static final java.lang.String SESSION_LOGIN
        Login session attribute name
        See Also:
        Constant Field Values
      • SESSION_USER_TOKEN

        public static final java.lang.String SESSION_USER_TOKEN
        User token session attribute name
        See Also:
        Constant Field Values
      • SESSION_CONTEXT_URL

        public static final java.lang.String SESSION_CONTEXT_URL
        Context URL session attribute name
        See Also:
        Constant Field Values
      • SESSION_SERVER_URL

        public static final java.lang.String SESSION_SERVER_URL
        Server URL session attribute name
        See Also:
        Constant Field Values
      • SESSION_USER_AGENT

        public static final java.lang.String SESSION_USER_AGENT
        User agent session attribute name
        See Also:
        Constant Field Values
      • SESSION_LEGACY

        public static final java.lang.String SESSION_LEGACY
        Legacy session attribute name
        See Also:
        Constant Field Values
      • SESSION_MOBILE

        public static final java.lang.String SESSION_MOBILE
        Legacy/responsive UI session attribute name
        See Also:
        Constant Field Values
      • SESSION_SCOPE

        public static final java.lang.String SESSION_SCOPE
        Scope session attribute name
        See Also:
        Constant Field Values
      • SESSION_DEEPLINK

        public static final java.lang.String SESSION_DEEPLINK
        Deeplink session attribute name
        See Also:
        Constant Field Values
      • DEFAULT_LOGIN_SIZE

        public static final int DEFAULT_LOGIN_SIZE
        Default login field size
        See Also:
        Constant Field Values
      • DEFAULT_DEFAULT_PASSWORD

        public static final java.lang.String DEFAULT_DEFAULT_PASSWORD
        Default default password
        See Also:
        Constant Field Values
      • FORCE_CHANGE_PASSWORD

        public static final java.lang.String FORCE_CHANGE_PASSWORD
        Force password parameter name
        See Also:
        Constant Field Values
      • HASH_ALGORITHM_MD5

        public static final java.lang.String HASH_ALGORITHM_MD5
        MD5 hash algorithm
        See Also:
        Constant Field Values
      • HASH_ALGORITHM

        @Deprecated
        public static final java.lang.String HASH_ALGORITHM
        Deprecated.
        Use HASH_ALGORITHM_MD5 instead
        See Also:
        Constant Field Values
      • HASH_ALGORITHM_SHA1

        public static final java.lang.String HASH_ALGORITHM_SHA1
        SHA-1 hash algorithm
        See Also:
        Constant Field Values
      • HASH_ALGORITHM_SHA256

        public static final java.lang.String HASH_ALGORITHM_SHA256
        SHA-256 hash algorithm
        See Also:
        Constant Field Values
      • HASH_ALGORITHM_SHA512

        public static final java.lang.String HASH_ALGORITHM_SHA512
        SHA-256 hash algorithm
        See Also:
        Constant Field Values
      • HASH_ENCODING_HEX

        public static final java.lang.String HASH_ENCODING_HEX
        Hash hexadecimal encoding method
        See Also:
        Constant Field Values
      • HASH_ENCODING_BASE64

        public static final java.lang.String HASH_ENCODING_BASE64
        Hash base 64 encoding method
        See Also:
        Constant Field Values
      • DATA_DIR

        public static final java.lang.String DATA_DIR
        Data folder environment entry lookup name
        See Also:
        Constant Field Values
      • DEFAULT_DATASOURCE

        public static final java.lang.String DEFAULT_DATASOURCE
        Default datasource lookup name
        See Also:
        Constant Field Values
      • MAIL_SERVICE

        public static final java.lang.String MAIL_SERVICE
        Mail service lookup name
        See Also:
        Constant Field Values
      • VERSION_PARAM

        public static final java.lang.String VERSION_PARAM
        Version system parameter name
        See Also:
        Constant Field Values
      • PATCH_LEVEL_PARAM

        public static final java.lang.String PATCH_LEVEL_PARAM
        Version system parameter name
        See Also:
        Constant Field Values
      • MAIL_SERVICE_PARAM

        public static final java.lang.String MAIL_SERVICE_PARAM
        Mail service system parameter name
        See Also:
        Constant Field Values
      • SMS_SERVICE_PARAM

        public static final java.lang.String SMS_SERVICE_PARAM
        SMS service system parameter name
        See Also:
        Constant Field Values
      • EJB_CRONMANAGER

        public static final java.lang.String EJB_CRONMANAGER
        Cron manager EJB lookup name
        See Also:
        Constant Field Values
      • EJB_CRONWORKER

        public static final java.lang.String EJB_CRONWORKER
        Cron worker EJB lookup name
        See Also:
        Constant Field Values
      • EJB_GRANTMANAGER

        public static final java.lang.String EJB_GRANTMANAGER
        Grant manager EJB lookup name
        See Also:
        Constant Field Values
      • EJB_INTERFACE

        public static final java.lang.String EJB_INTERFACE
        Interface EJB lookup name
        See Also:
        Constant Field Values
      • EJB_OBJECTLOADER

        public static final java.lang.String EJB_OBJECTLOADER
        Object loader EJB lookup name
        See Also:
        Constant Field Values
      • EJB_OBJECTMANAGER

        public static final java.lang.String EJB_OBJECTMANAGER
        Object manager EJB lookup name
        See Also:
        Constant Field Values
      • EJB_PROCESSLOADER

        public static final java.lang.String EJB_PROCESSLOADER
        Process loader EJB lookup name
        See Also:
        Constant Field Values
      • EJB_PROCESSMANAGER

        public static final java.lang.String EJB_PROCESSMANAGER
        Process manager EJB lookup name
        See Also:
        Constant Field Values
      • EJB_PROCESSSCHEDULER

        public static final java.lang.String EJB_PROCESSSCHEDULER
        Process scheduler EJB lookup name
        See Also:
        Constant Field Values
      • BASE_NAMING_CONTEXT

        public static final java.lang.String BASE_NAMING_CONTEXT
        Base JNDI naming context
        See Also:
        Constant Field Values
      • DATA_DIR_LOOKUP

        public static final java.lang.String DATA_DIR_LOOKUP
        Data dir lookup name
        See Also:
        Constant Field Values
      • DEFAULT_DATASOURCE_LOOKUP

        public static final java.lang.String DEFAULT_DATASOURCE_LOOKUP
        Default datasource lookup name
        See Also:
        Constant Field Values
      • MAIL_SERVICE_LOOKUP

        public static final java.lang.String MAIL_SERVICE_LOOKUP
        Mail service lookup name
        See Also:
        Constant Field Values
    • Constructor Detail

      • Globals

        public Globals()
    • Method Detail

      • isSQLReservedWord

        public static final boolean isSQLReservedWord​(java.lang.String s)
        Check if string is a SQL reserved word
        Parameters:
        s - String to check
        Returns:
        true if the string is an SQL reserved word
      • isSuitableSQLName

        public static final boolean isSuitableSQLName​(java.lang.String s)
        Check if string is a suitable SQL name
        Parameters:
        s - String to check
        Returns:
        true if the string is a suitable SQL name
      • poiLibAvailable

        public static boolean poiLibAvailable()
        Are the Apache POI libs available?
      • docx4jLibAvailable

        public static boolean docx4jLibAvailable()
        Are the Docx4j libs available?
      • tikaLibAvailable

        public static boolean tikaLibAvailable()
        Are the Apache Tika libs available?
      • jgitLibAvailable

        public static boolean jgitLibAvailable()
        Are the jGit libs available?
      • googleapisLibAvailable

        public static boolean googleapisLibAvailable()
        Are the Google APIs libs available?
      • googleapisFirebaseLibAvailable

        public static boolean googleapisFirebaseLibAvailable()
        Are the Firebase libs available?
      • jcloudsLibAvailable

        public static boolean jcloudsLibAvailable()
        Are the JClouds libs available?
      • getDevDependencies

        public static java.util.List<java.lang.String[]> getDevDependencies()
        Get development dependencies (array of groupId:artifactId:version)
        Returns:
        List of string array (index 0 = groupId, index 1 = artifactId, index 2 = version)
      • getDefaultExcelFormat

        public static java.lang.String getDefaultExcelFormat()
        Get default Excel format depending on POI lib availability
      • getAuthTypeFromMethod

        public static java.lang.String getAuthTypeFromMethod​(int method)
        Get auth type from auth method
        Parameters:
        method - Auth method
      • getAuthMethodFromType

        public static int getAuthMethodFromType​(java.lang.String type)
        Get auth type from auth type
        Parameters:
        type - Auth type
      • useUserTokens

        public static final boolean useUserTokens​(java.lang.String type)
        Are persistent user tokens enabled?
        Parameters:
        type - Type (one of Globals.USERTOKEN_TYPE_*)
      • getAuthProviders

        public static final org.json.JSONArray getAuthProviders​(int method)
        Get auth providers definition for specified auth method
        Parameters:
        method - Auth method (one of Globals.AUTH_METHOD_*)
      • getAuthProviders

        public static final org.json.JSONArray getAuthProviders()
        Get all auth providers definition
      • getLocalAuthProvider

        public static final org.json.JSONObject getLocalAuthProvider()
        Local OAUTH2 provider ?
      • getAuthProvider

        public static final org.json.JSONObject getAuthProvider​(int method,
                                                                java.lang.String name)
        Get specified auth provider
        Parameters:
        method - Auth method (one of Globals.AUTH_METHOD_*)
        name - Provider name
      • useOAuth2

        public static final boolean useOAuth2()
        Is at least one OAuth2 authentication provider configured?
      • useSAML

        public static final boolean useSAML()
        Is at least one SAML authentication provider configured?
      • useCrowd

        public static final boolean useCrowd()
        Is at least one CROWD authentication provider configured?
      • useLDAP

        public static final boolean useLDAP()
        Is at least one LDAP authentication provider configured?
      • isLoaded

        public static boolean isLoaded()
        Is loaded?
      • isUnitTests

        public static final boolean isUnitTests()
        Is unit tests context?
      • getProperty

        public static java.lang.String getProperty​(java.lang.String key,
                                                   java.lang.String def)
        Get value of a property (that are stored either in application.properties or in com.simplicite.globals.properties)
        Parameters:
        key - Property key
        def - Default value
        Returns:
        Property value or default value if no application properties exists or if property does not exist
      • loadGlobals

        public static void loadGlobals​(java.lang.String cp,
                                       boolean ut)
        Load globals
        Parameters:
        cp - Context path
        ut - Unit tests context?
      • getContextPath

        public static java.lang.String getContextPath()
        Get application context path
      • getApplicationName

        public static java.lang.String getApplicationName()

        Get application name

      • setApplicationName

        public static void setApplicationName​(java.lang.String name)

        Set application URL

        Parameters:
        name - Name
      • getApplicationURL

        public static java.lang.String getApplicationURL()

        Get application URL

      • setApplicationURL

        public static void setApplicationURL​(java.lang.String url)

        Set application URL (can only be done once)

        Parameters:
        url - URL
      • getServerVendor

        public static java.lang.String getServerVendor()

        Application server vendor

      • getServerType

        public static java.lang.String getServerType()

        Application server type (J2EE (=JEE 1.4), JEE6, WEB)

      • getServerVersion

        public static java.lang.String getServerVersion()

        Application server version

      • isWebSocketServer

        public static boolean isWebSocketServer()

        Application server websocket support

      • getPlatformVendor

        public static java.lang.String getPlatformVendor()

        Platform vendor

      • getPlatformName

        public static java.lang.String getPlatformName()

        Platform name

      • getPlatformVersion

        public static java.lang.String getPlatformVersion()

        Platform version

      • getPlatformPatchLevel

        public static java.lang.String getPlatformPatchLevel()

        Platform patch level

      • fromPatchLevel

        public static int fromPatchLevel​(java.lang.String patchLevel,
                                         int def)
        Get patch level number from patch level string
        Parameters:
        patchLevel - Optional patch level string (null means current platform patch level)
        def - Default patch level number
      • toPatchLevel

        public static java.lang.String toPatchLevel​(int n)
        Get patch level string from patch level number
        Parameters:
        n - Patch level number
        Returns:
        Patch level string
      • getPlatformAutoSetup

        public static boolean getPlatformAutoSetup()

        Platform auto-setup ?

      • getPlatformAutoUpgrade

        public static boolean getPlatformAutoUpgrade()

        Platform auto-upgrade ?

      • getPlatformBuildDate

        public static java.lang.String getPlatformBuildDate()

        Platform build date

      • getPlatformBuildTime

        public static java.lang.String getPlatformBuildTime()

        Platform build time

      • getPlatformRevision

        public static java.lang.String getPlatformRevision()

        Platform revision

      • getPlatformResourcesURL

        public static java.lang.String getPlatformResourcesURL()

        Platform resources location

      • getPlatformJavadocURL

        public static java.lang.String getPlatformJavadocURL()

        Platform Javadoc base location

      • getPlatformJavadocSearchURL

        public static java.lang.String getPlatformJavadocSearchURL()

        Platform Javadoc base search location

      • getPlatformJSDocURL

        public static java.lang.String getPlatformJSDocURL()

        Platform JSDoc location

      • getPlatformEncoding

        public static java.lang.String getPlatformEncoding()

        Platform encoding

      • isUnicodePlatformEncoding

        public static boolean isUnicodePlatformEncoding()

        Is platform encoding a Unicode encoding

      • isRelease

        public static boolean isRelease()
        Is platform in release stage?
      • getMavenGroupId

        public static java.lang.String getMavenGroupId()
        Get Maven group ID
      • getMavenArtifactId

        public static java.lang.String getMavenArtifactId()
        Get Maven artifact ID
      • getMavenDescription

        public static java.lang.String getMavenDescription()
        Get Maven description
      • getMavenBuildDate

        public static java.util.Date getMavenBuildDate()
        Get Maven build date
      • getMavenBuildTimestamp

        public static java.lang.String getMavenBuildTimestamp​(boolean dot)
        Get Maven build timestamp
      • isMavenSnapshot

        public static boolean isMavenSnapshot()
        Is Maven artifact a snapshot version
      • getMavenArtifactVersion

        public static java.lang.String getMavenArtifactVersion()
        Get Maven artifact version
      • getMavenFilesVersion

        public static java.lang.String getMavenFilesVersion()
        Get Maven file names version
      • getSystemModuleName

        public static java.lang.String getSystemModuleName()

        System module name

      • getAdminGroup

        public static java.lang.String getAdminGroup()

        Administration group name

      • getGrantAdminGroup

        public static java.lang.String getGrantAdminGroup()

        Rights administration group name

      • getPublicGroup

        public static java.lang.String getPublicGroup()

        Public group name

      • getUserAdminGroup

        public static java.lang.String getUserAdminGroup()

        User administration group name

      • getUserPasswordGroup

        public static java.lang.String getUserPasswordGroup()

        User password management group name

      • getDesignerLogin

        public static java.lang.String getDesignerLogin()

        Designer login

      • getSystemLogin

        public static java.lang.String getSystemLogin()

        System login

      • getWebDesignerLogin

        public static java.lang.String getWebDesignerLogin()

        Web designer login

      • getPublicLogin

        public static java.lang.String getPublicLogin()

        Public login

      • getDefaultLanguage

        public static java.lang.String getDefaultLanguage()

        Default language

      • getDefaultTimezone

        public static java.lang.String getDefaultTimezone()

        Default timezone

      • getDefaultPassword

        public static java.lang.String getDefaultPassword()

        Default password used at user creation

      • getDefaultTemplateName

        public static java.lang.String getDefaultTemplateName()

        Default template name

      • getLoggerName

        public static java.lang.String getLoggerName()

        Logger name

      • getDatasourceFactory

        public static java.lang.String getDatasourceFactory()

        Data source factory class name

      • getGitBaseDir

        public static java.lang.String getGitBaseDir()

        Git base directory (null if not set or non writeable)

      • setInterfaceType

        public static void setInterfaceType​(Globals.InterfaceType it)
        Define global interface type
      • getInitialContext

        public static javax.naming.InitialContext getInitialContext()
                                                             throws javax.naming.NamingException

        Get the default initial context

        At first access a static default initial context is created loading the default jndi.properties file if present (must be present in case of a remote Java client)

        Throws:
        javax.naming.NamingException
      • getInitialContext

        public static javax.naming.InitialContext getInitialContext​(java.lang.String jndiPropertiesLocation)
                                                             throws javax.naming.NamingException

        Instanciate a static initial context loading the specified jndi.properties file if present)

        Parameters:
        jndiPropertiesLocation - Location of JNDI file to be loaded in a suitable form for getResourceAsStream (e.g. /com/simplicite/myjndi.properties)
        Throws:
        javax.naming.NamingException
      • lookup

        public static java.lang.Object lookup​(java.lang.String lookup)
                                       throws javax.naming.NamingException
        Global lookup
        Parameters:
        lookup - Lookup name
        Returns:
        Object if found
        Throws:
        javax.naming.NamingException
      • lookup

        public static java.lang.Object lookup​(java.lang.String jndiPropertiesLocation,
                                              java.lang.String lookup)
                                       throws javax.naming.NamingException
        Global lookup
        Parameters:
        jndiPropertiesLocation - Location of JNDI file to be loaded
        lookup - Lookup name
        Returns:
        Object if found
        Throws:
        javax.naming.NamingException
      • getDataDir

        public static java.lang.String getDataDir()
      • initLookups

        public static void initLookups()
        Initial lookups to load objects in the main container
      • clear

        public static void clear()
        Clear globals and force any further reloading