Interface AppConfig

All Known Implementing Classes:
AppConfigImpl

public interface AppConfig
This class provides access to the configuration properties of the web application. Furthermore it defines functions to read, write and delete user profile options.
See Also:
  • Method Details

    • getAppPropertyNames

      AppPropertyNames getAppPropertyNames()
      Get the property names of standard properties. Modify the returned object, if the application uses different property names.
      Returns:
      AppPropertyNames object
    • encrypt

      String encrypt(String value, boolean encryptNotDecrypt)
      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.
      Parameters:
      value - String to be encrpyted or decrypted.
      encryptNotDecrypt - true, if this function should encrpty
      Returns:
      encrypted or decrypted value
    • getProperties

      de.elo.utils.PropertiesEx getProperties()
      Get the configuration properties. The passwords are internally decrypted.
      Returns:
      Properties object
    • getConfigDirectory

      File getConfigDirectory()
      Get the configuration directory.
      Returns:
      E. g. d:\ELOprofessional\config\ix-elo\
    • readUserProfile

      de.elo.utils.PropertiesEx readUserProfile(IXConnection ix, String keyFilter) throws byps.RemoteException
      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.
      Parameters:
      ix - Indexserver connection
      keyFilter - filter, e.g. "Elo.search.*" or ""
      Returns:
      Properties object
      Throws:
      byps.RemoteException
      See Also:
    • readUserProfileValue

      String readUserProfileValue(IXConnection ix, String key) throws byps.RemoteException
      Reads one value from the profile options.
      Parameters:
      ix - Indexserver connection
      key - option key
      Returns:
      option value
      Throws:
      byps.RemoteException
    • writeUserProfile

      void writeUserProfile(IXConnection ix, Properties props) throws byps.RemoteException
      Write the given profile options.
      Parameters:
      ix - Indexserver connections
      props - Properties object
      Throws:
      byps.RemoteException
      See Also:
    • writeUserProfileValue

      void writeUserProfileValue(IXConnection ix, String key, String value) throws byps.RemoteException
      Write one option into the profile.
      Parameters:
      ix - Indexserver connection
      key - option key
      value - option value
      Throws:
      byps.RemoteException
    • deleteUserProfile

      void deleteUserProfile(IXConnection ix, String keyFilter) throws byps.RemoteException
      Delete the profile options that match the given key filter.
      Parameters:
      ix - Indexserver connection
      keyFilter - filter, e.g. "Elo.search.*" or ""
      Throws:
      byps.RemoteException
      See Also:
    • setLogLevel

      void setLogLevel(String level)
      Set the logging level
      Parameters:
      level -
    • getLogLevel

      String getLogLevel()
      Get the logging level
      Returns:
      level