Class ApplicationConfig


  • public class ApplicationConfig
    extends Object
    The Class ApplicationConfig.
    Author:
    Liesje Demuynck.
    • Method Detail

      • getInstance

        public static ApplicationConfig getInstance()
        Gets the single instance of ApplicationConfig.
        Returns:
        single instance of ApplicationConfig
      • assertValidSession

        public void assertValidSession()
        Checks if the currently loaded sessionItem is valid and if not: throws a error.
      • assertValidPharmacySession

        public void assertValidPharmacySession()
        Assert valid pharmacy session.
      • assertValidHospitalPharmacySession

        public void assertValidHospitalPharmacySession()
        Assert valid hospital pharmacy session.
      • assertInitialized

        public void assertInitialized()
        Checks if the system is initialized and if not: throws a error.
      • setSystemKeystoreProperties

        public void setSystemKeystoreProperties​(String systemKeystorePassword,
                                                String systemKeystorePath,
                                                String systemKeystoreDirectory,
                                                String systemKeystoreNIHIIPHARMACYCBE)
        Sets the system keystore properties.
        Parameters:
        systemKeystorePassword - the system keystore password
        systemKeystorePath - the system keystore path
        systemKeystoreDirectory - the system keystore directory
        systemKeystoreNIHIIPHARMACYCBE - the system keystore NIHIIPHARMACYCBE
      • setOldSystemKeystoreProperties

        public void setOldSystemKeystoreProperties​(String systemKeystorePassword,
                                                   String systemKeystorePath,
                                                   String systemKeystoreDirectory,
                                                   String systemKeystoreNIHIIPHARMACYCBE)
        Sets the old system keystore properties.
        Parameters:
        systemKeystorePassword - the system keystore password
        systemKeystorePath - the system keystore path
        systemKeystoreDirectory - the system keystore directory
        systemKeystoreNIHIIPHARMACYCBE - the system keystore NIHIIPHARMACYCBE
      • initialize

        public void initialize()
        Initialize.
      • initialize

        public void initialize​(String propertyfile,
                               String validationFile)
        Initialize.
        Parameters:
        propertyfile - the propertyfile
        validationFile - the validation file
      • initialize

        public void initialize​(String propertyfile,
                               String vslidationFile,
                               String urlConf)
        Initializes the system with the given propertyFile and urlConfig.
        Parameters:
        propertyfile - the property file to use
        vslidationFile - the vslidation file
        urlConf - the configuration directory to use @
      • setProperty

        public void setProperty​(String key,
                                String value)
        Sets the property.
        Parameters:
        key - the key
        value - the value
      • setSystemProperty

        public void setSystemProperty​(String key,
                                      String value)
        Sets the system property.
        Parameters:
        key - the key
        value - the value