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 Fileprotected de.elo.utils.PropertiesExprotected AppPropertyNames -
Constructor Summary
ConstructorsConstructorDescriptionAppConfigImpl(AppPropertyNames propNames, de.elo.utils.PropertiesEx configProps, File configDir) -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteUserProfile(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.PropertiesExGet the configuration properties.de.elo.utils.PropertiesExreadUserProfile(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.voidvoidsetLogLevel(String reportLevel) Modifies the report level of the root logger.voidwriteUserProfile(IXConnection ix, Properties props) Write the given profile options.voidwriteUserProfileValue(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:AppConfigGet the property names of standard properties. Modify the returned object, if the application uses different property names.- Specified by:
getAppPropertyNamesin interfaceAppConfig- Returns:
- AppPropertyNames object
-
getProperties
public de.elo.utils.PropertiesEx getProperties()Description copied from interface:AppConfigGet the configuration properties. The passwords are internally decrypted.- Specified by:
getPropertiesin interfaceAppConfig- Returns:
- Properties object
-
encrypt
Description copied from interface:AppConfigEncrypt 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:AppConfigGet the configuration directory.- Specified by:
getConfigDirectoryin 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:AppConfigRead 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:
readUserProfilein interfaceAppConfig- Parameters:
ix- Indexserver connectionkeyFilter- filter, e.g. "Elo.search.*" or ""- Returns:
- Properties object
- Throws:
byps.RemoteException- See Also:
-
writeUserProfile
Description copied from interface:AppConfigWrite the given profile options.- Specified by:
writeUserProfilein interfaceAppConfig- Parameters:
ix- Indexserver connectionsprops- Properties object- Throws:
byps.RemoteException- See Also:
-
deleteUserProfile
Description copied from interface:AppConfigDelete the profile options that match the given key filter.- Specified by:
deleteUserProfilein interfaceAppConfig- Parameters:
ix- Indexserver connectionkeyFilter- filter, e.g. "Elo.search.*" or ""- Throws:
byps.RemoteException- See Also:
-
readUserProfileValue
Description copied from interface:AppConfigReads one value from the profile options.- Specified by:
readUserProfileValuein 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:AppConfigWrite one option into the profile.- Specified by:
writeUserProfileValuein interfaceAppConfig- Parameters:
ix- Indexserver connectionkey- option keyvalue- option value- Throws:
byps.RemoteException
-
setLogLevel
Modifies the report level of the root logger.- Specified by:
setLogLevelin interfaceAppConfig- Parameters:
reportLevel- one of "DEBUG", "INFO", "WARN", "ERROR"
-
getLogLevel
Returns the report level of the root logger.- Specified by:
getLogLevelin interfaceAppConfig- Returns:
- "DEBUG", "INFO", "WARN", "ERROR"
-