Package de.elo.ix.client.webapp.impl
Class AppConfigImpl
java.lang.Object
de.elo.ix.client.webapp.impl.AppConfigImpl
- All Implemented Interfaces:
AppConfig
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected File
protected de.elo.utils.PropertiesEx
protected AppPropertyNames
-
Constructor Summary
ConstructorsConstructorDescriptionAppConfigImpl
(AppPropertyNames propNames, de.elo.utils.PropertiesEx configProps, File configDir) -
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteUserProfile
(IXConnection ix, String keyFilter) Delete the profile options that match the given key filter.Encrypt or decrypt a string.Get the property names of standard properties.Get the configuration directory.Returns the report level of the root logger.de.elo.utils.PropertiesEx
Get the configuration properties.de.elo.utils.PropertiesEx
readUserProfile
(IXConnection ix, String keyFilter) Read the profile options that match the given key filter.readUserProfileValue
(IXConnection ix, String key) Reads one value from the profile options.void
void
setLogLevel
(String reportLevel) Modifies the report level of the root logger.void
writeUserProfile
(IXConnection ix, Properties props) Write the given profile options.void
writeUserProfileValue
(IXConnection ix, String key, String value) Write one option into the profile.
-
Field Details
-
configProps
protected de.elo.utils.PropertiesEx configProps -
configDir
-
propertyNames
-
-
Constructor Details
-
AppConfigImpl
public AppConfigImpl(AppPropertyNames propNames, de.elo.utils.PropertiesEx configProps, File configDir)
-
-
Method Details
-
getAppPropertyNames
Description copied from interface:AppConfig
Get the property names of standard properties. Modify the returned object, if the application uses different property names.- Specified by:
getAppPropertyNames
in interfaceAppConfig
- Returns:
- AppPropertyNames object
-
getProperties
public de.elo.utils.PropertiesEx getProperties()Description copied from interface:AppConfig
Get the configuration properties. The passwords are internally decrypted.- Specified by:
getProperties
in interfaceAppConfig
- Returns:
- Properties object
-
encrypt
Description copied from interface:AppConfig
Encrypt or decrypt a string. This function can be used to encrypt or decrypt passwords in configuration files. It uses the encryption algorithm DES. Although DES is a strong encryption algorithm, the enrypted passwords should be kept a secret. This is because the encryption key is contained in the code and could be reverse engineered. Do not use this function to encrypt document files. -
getConfigDirectory
Description copied from interface:AppConfig
Get the configuration directory.- Specified by:
getConfigDirectory
in interfaceAppConfig
- Returns:
- E. g. d:\ELOprofessional\config\ix-elo\
-
setConfigDirectory
-
readUserProfile
public de.elo.utils.PropertiesEx readUserProfile(IXConnection ix, String keyFilter) throws byps.RemoteException Description copied from interface:AppConfig
Read the profile options that match the given key filter. Only the wildcard * is allowed in the parameter keyFilter. If keyFilter is null or empty, all profile options are read.- Specified by:
readUserProfile
in interfaceAppConfig
- Parameters:
ix
- Indexserver connectionkeyFilter
- filter, e.g. "Elo.search.*" or ""- Returns:
- Properties object
- Throws:
byps.RemoteException
- See Also:
-
writeUserProfile
Description copied from interface:AppConfig
Write the given profile options.- Specified by:
writeUserProfile
in interfaceAppConfig
- Parameters:
ix
- Indexserver connectionsprops
- Properties object- Throws:
byps.RemoteException
- See Also:
-
deleteUserProfile
Description copied from interface:AppConfig
Delete the profile options that match the given key filter.- Specified by:
deleteUserProfile
in interfaceAppConfig
- Parameters:
ix
- Indexserver connectionkeyFilter
- filter, e.g. "Elo.search.*" or ""- Throws:
byps.RemoteException
- See Also:
-
readUserProfileValue
Description copied from interface:AppConfig
Reads one value from the profile options.- Specified by:
readUserProfileValue
in interfaceAppConfig
- Parameters:
ix
- Indexserver connectionkey
- option key- Returns:
- option value
- Throws:
byps.RemoteException
-
writeUserProfileValue
public void writeUserProfileValue(IXConnection ix, String key, String value) throws byps.RemoteException Description copied from interface:AppConfig
Write one option into the profile.- Specified by:
writeUserProfileValue
in interfaceAppConfig
- Parameters:
ix
- Indexserver connectionkey
- option keyvalue
- option value- Throws:
byps.RemoteException
-
setLogLevel
Modifies the report level of the root logger.- Specified by:
setLogLevel
in interfaceAppConfig
- Parameters:
reportLevel
- one of "DEBUG", "INFO", "WARN", "ERROR"
-
getLogLevel
Returns the report level of the root logger.- Specified by:
getLogLevel
in interfaceAppConfig
- Returns:
- "DEBUG", "INFO", "WARN", "ERROR"
-