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 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) V hodnote vykona makra (napr.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 constantgetHashtable(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 javax.servlet.ServletContextstatic StringGets the string attribute of the Constants classstatic Stringstatic StringgetStringExecuteMacro(String constName) Ziska hodnotu konstanty s vykonanim makra (napr.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(javax.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_MAGZILLA
- See Also:
-
MOD_MICROSITE
- See Also:
-
MOD_NTLM
- See Also:
-
MOD_PERFORMANCE
- See Also:
-
MOD_SEARCH
- See Also:
-
MOD_SECURITY
- See Also:
-
MOD_SMS
- See Also:
-
MOD_STAT
- See Also:
-
MOD_USER
- See Also:
-
SERVER_NAME_MACRO
- See Also:
-
MOD_CAPTCHA
- 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_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
Ziska hodnotu konstanty s vykonanim makra (napr. nahrada {INSTALL_NAME} za realnu hodnotu)- Parameters:
constName-- Returns:
-
executeMacro
V hodnote vykona makra (napr. nahrada {INSTALL_NAME} za realnu hodnotu). Je mozne pouzit: - {INSTALL_NAME} - {DOMAIN_NAME} - {DOMAIN_ALIAS} - {HTTP_PROTOCOL} - {HTTP_PORT} - {SERVER_NAME} - {ROOT_PATH} -
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(javax.servlet.ServletContext newServletContext) -
getServletContext
public static javax.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:
-