Package sk.iway.iwcm
Class Constants
java.lang.Object
sk.iway.iwcm.Constants
Konstanty aplikacie
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDescription of the Fieldstatic final StringDescription of the Fieldstatic final StringDescription of the Fieldstatic final String1 Description of the Fieldstatic final StringDescription of the Fieldstatic final intDescription of the Fieldstatic final intDescription of the Fieldstatic final intSystem bezi na ORACLE databazestatic final intPostgreSQL DB enginestatic intdefault hodnotastatic final Stringdefaultny encoding suborovstatic final intstatic final intstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringDescription of the Fieldstatic final Stringstatic final StringDescription of the Fieldstatic final StringDescription of the Fieldstatic final StringDescription of the Fieldstatic final StringDescription of the Fieldstatic final StringDescription of the Fieldstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic booleancontainsKey(String key) static booleandeleteConstant(String name) static StringexecuteMacro(String value) Expands the following macros in a configuration value: - {INSTALL_NAME} - {DOMAIN_NAME} - {DOMAIN_ALIAS} - {HTTP_PROTOCOL} - {HTTP_PORT} - {SERVER_NAME} - {ROOT_PATH} - {HEADER_ORIGIN} - {ENVIRONMENT_NAME} - {CLUSTER_NAME} (the current node's clusterMyNodeName)static List<ConfDetails>static String[]Returns coma separated value as Arraystatic booleangetBoolean(String constName) Gets the string attribute of the Constants classstatic StringgetConstType(String constName) Gets type of constant valuestatic StringgetDescription(String constName) Gets description of constantstatic StringDetects the environment from the current request's server name, independently of its domain.getHashtable(String name) Vrati hodnotu konstanty skonvertovanu do hashtabulky, format zapisu konf.static Stringstatic intGets the int attribute of the Constants classstatic intstatic Stringstatic longGets the int attribute of the Constants classstatic longstatic jakarta.servlet.ServletContextstatic StringGets the string attribute of the Constants classstatic Stringstatic StringgetStringExecuteMacro(String constName) Returns a configuration value with supported macros expanded.static booleanstatic Stringstatic voidsetAllValues(ConfDetails conf) Nastavi/prepise novu konfiguracnu hodnotu do listustatic voidsetBoolean(String constName, boolean VALUE) Sets the string attribute of the Constants classstatic voidsetBoolean(String name, boolean value, String modules, String description) static voidsetBoolean(String constName, String VALUE) static voidsetConstantsAliasSearch(boolean constantsAliasSearch) static voidsetInstallName(String installName) static voidSets the int attribute of the Constants classstatic voidstatic voidSets the long attribute of the Constants classstatic voidstatic voidsetServletContext(jakarta.servlet.ServletContext newServletContext) static voidSets the string attribute of the Constants classstatic voidNastavi string a ulozi do zoznamu dostupnych konfiguracnych premennych pre pouzitie v GUI
-
Field Details
-
NON_BREAKING_SPACE
- See Also:
-
MOD_BASKET
- See Also:
-
MOD_CONFIG
- See Also:
-
MOD_DBSTORAGE
- See Also:
-
MOD_EDITOR
- See Also:
-
MOD_GALLERY
- See Also:
-
MOD_MICROSITE
- See Also:
-
MOD_NTLM
- See Also:
-
MOD_PERFORMANCE
- See Also:
-
MOD_SEARCH
- See Also:
-
MOD_SECURITY
- See Also:
-
MOD_STAT
- See Also:
-
MOD_USER
- See Also:
-
SERVER_NAME_MACRO
- See Also:
-
MOD_CAPTCHA
- See Also:
-
MOD_PASSWORD
- See Also:
-
MOD_THUMB
- See Also:
-
MOD_GDPR
- See Also:
-
MOD_AUDIT
- See Also:
-
MOD_FILE_ARCHIV
- See Also:
-
MOD_DMAIL
- See Also:
-
MOD_RESERVATION
- See Also:
-
MOD_FORMMAIL
- See Also:
-
MOD_AI_ASSISTANTS
- See Also:
-
MOD_RAG
- See Also:
-
MOD_CONTEXT
- See Also:
-
MOD_DATABASE
- See Also:
-
MOD_FILE_INDEXING
- See Also:
-
MOD_IMAGE_EDITOR
- See Also:
-
MOD_LOCALIZATION
- See Also:
-
MOD_METADATA
- See Also:
-
MOD_NETWORK
- See Also:
-
MOD_PDF
- See Also:
-
MOD_PROPERTIES
- See Also:
-
MOD_REDIRECTS
- See Also:
-
MOD_CORS
- See Also:
-
MOD_CSRF
- See Also:
-
MOD_SECURITY_HEADERS
- See Also:
-
MOD_SPAM
- See Also:
-
MOD_SYNC
- See Also:
-
MOD_XSS
- See Also:
-
MOD_ABTEST
- See Also:
-
MOD_APP_WEATHER
- See Also:
-
MOD_BANNER
- See Also:
-
MOD_BAZAR
- See Also:
-
MOD_BLOG
- See Also:
-
MOD_CALENDAR
- See Also:
-
MOD_FORUM
- See Also:
-
MOD_INQUIRY
- See Also:
-
MOD_INSERT_SCRIPT
- See Also:
-
MOD_MAP
- See Also:
-
MOD_NEWS
- See Also:
-
MOD_QA
- See Also:
-
MOD_RELATED_PAGES
- See Also:
-
MOD_RESTAURANT_MENU
- See Also:
-
MOD_SEND_LINK
- See Also:
-
MOD_STRUCTURE_MIRRORING
- See Also:
-
MOD_MEDIA
- See Also:
-
MOD_SEO
- See Also:
-
MOD_TEMPLATES
- See Also:
-
MOD_TOOLTIP
- See Also:
-
MOD_TRANSLATIONS
- See Also:
-
MOD_WEBPAGES
- See Also:
-
MOD_FILES
- See Also:
-
MOD_ELFINDER
- See Also:
-
MOD_FILE_HISTORY
- See Also:
-
MOD_UPLOAD
- See Also:
-
MOD_VIDEO
- See Also:
-
MOD_OAUTH2
- See Also:
-
MOD_SYSTEM_ADMIN
- See Also:
-
MOD_SYSTEM_CLUSTER
- See Also:
-
MOD_SYSTEM_COMBINE
- See Also:
-
MOD_SYSTEM_EMAIL
- See Also:
-
MOD_SYSTEM_MONITORING
- See Also:
-
MOD_SYSTEM_MULTIDOMAIN
- See Also:
-
MOD_SYSTEM_PKEY_GENERATOR
- See Also:
-
MOD_OBSOLETE
- See Also:
-
A_DOC_DB
Description of the Field- See Also:
-
A_USER_GROUPS_DB
1 Description of the Field- See Also:
-
A_TEMP_DB
Description of the Field- See Also:
-
A_GROUPS_DB
Description of the Field- See Also:
-
DB_MSSQL
public static final int DB_MSSQLDescription of the Field- See Also:
-
DB_MYSQL
public static final int DB_MYSQLDescription of the Field- See Also:
-
DB_ORACLE
public static final int DB_ORACLESystem bezi na ORACLE databaze- See Also:
-
DB_PGSQL
public static final int DB_PGSQLPostgreSQL DB engine- See Also:
-
DB_TYPE
public static int DB_TYPEdefault hodnota -
USER_KEY
Description of the Field- See Also:
-
USER_KEY_IMPERSONATE
- See Also:
-
SESSION_GROUP_ID
Description of the Field- See Also:
-
BENZIN_DB
Description of the Field- See Also:
-
OBCE_DB
Description of the Field- See Also:
-
STAT_START_DATE
Description of the Field- See Also:
-
STAT_END_DATE
Description of the Field- See Also:
-
STAT_MAX_ROWS
Description of the Field- See Also:
-
FILE_ENCODING
defaultny encoding suborov- See Also:
-
LINK_TYPE_DOCID
public static final int LINK_TYPE_DOCID- See Also:
-
LINK_TYPE_HTML
public static final int LINK_TYPE_HTML- See Also:
-
-
Constructor Details
-
Constants
protected Constants()
-
-
Method Details
-
setString
Nastavi string a ulozi do zoznamu dostupnych konfiguracnych premennych pre pouzitie v GUI- Parameters:
name-value-modules-description-
-
setLong
-
setInt
-
setBoolean
-
mods
-
clearValues
public static void clearValues() -
getInt
Gets the int attribute of the Constants class- Parameters:
constName- Description of the Parameter- Returns:
- The int value
-
setInt
Sets the int attribute of the Constants class- Parameters:
constName- The new int valueVALUE- The new int value
-
getInt
-
getLong
Gets the int attribute of the Constants class- Parameters:
constName- Description of the Parameter- Returns:
- The int value
-
getLong
-
setLong
Sets the long attribute of the Constants class- Parameters:
constName- The new int valueVALUE- The new int value
-
getString
Gets the string attribute of the Constants class- Parameters:
constName- Description of the Parameter- Returns:
- The string value, in case of any error or when value is not defined returns empty string
-
getStringExecuteMacro
Returns a configuration value with supported macros expanded.- Parameters:
constName- configuration key- Returns:
- the expanded value, or an empty string for an undefined key
-
executeMacro
Expands the following macros in a configuration value: - {INSTALL_NAME} - {DOMAIN_NAME} - {DOMAIN_ALIAS} - {HTTP_PROTOCOL} - {HTTP_PORT} - {SERVER_NAME} - {ROOT_PATH} - {HEADER_ORIGIN} - {ENVIRONMENT_NAME} - {CLUSTER_NAME} (the current node's clusterMyNodeName)- Parameters:
value- configuration value, possibly containing macros- Returns:
- the expanded value; null and empty values are preserved
-
getEnvironmentName
Detects the environment from the current request's server name, independently of its domain. Matches complete hostname tokens separated by dots, hyphens or underscores, optionally followed by a node number. Precedence is PROD, UAT, CIT, INT, TEST, DEMO, LOCAL, DEV; pre-production names belong to acceptance. Unknown hosts and missing requests use DEV.- Returns:
- PROD, UAT, CIT, INT, TEST, DEMO, LOCAL or DEV
-
getString
-
getArray
Returns coma separated value as Array- Parameters:
name- - configuration name- Returns:
-
setString
Sets the string attribute of the Constants class- Parameters:
constName- The new string valueVALUE- The new string value
-
getBoolean
Gets the string attribute of the Constants class- Parameters:
constName- Description of the Parameter- Returns:
- The string value
-
setBoolean
Sets the string attribute of the Constants class- Parameters:
constName- The new string valueVALUE- The new string value
-
setBoolean
-
setServletContext
public static void setServletContext(jakarta.servlet.ServletContext newServletContext) -
getServletContext
public static jakarta.servlet.ServletContext getServletContext() -
deleteConstant
-
containsKey
-
getAllValues
-
getAllKeys
-
setAllValues
Nastavi/prepise novu konfiguracnu hodnotu do listu- Parameters:
conf-
-
setInstallName
-
getInstallName
-
getLogInstallName
-
isConstantsAliasSearch
public static boolean isConstantsAliasSearch() -
setConstantsAliasSearch
public static void setConstantsAliasSearch(boolean constantsAliasSearch) -
getDescription
Gets description of constant- Parameters:
constName- Name of the constant- Returns:
- The string value
-
getConstType
Gets type of constant value- Parameters:
constName- Name of the constant- Returns:
- The string value (integer, string, boolean)
-
getHashtable
Vrati hodnotu konstanty skonvertovanu do hashtabulky, format zapisu konf. premennej je kluc1|hodnota1 kluc2|hodnota2 kluc3|hodnota3- Parameters:
name-- Returns:
-