Package be.business.connector.common
Class ApplicationConfig
- java.lang.Object
-
- be.business.connector.common.ApplicationConfig
-
public class ApplicationConfig extends Object
The Class ApplicationConfig.- Author:
- Liesje Demuynck.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidassertInitialized()Checks if the system is initialized and if not: throws a error.voidassertValidHospitalPharmacySession()Assert valid hospital pharmacy session.voidassertValidPharmacySession()Assert valid pharmacy session.voidassertValidSession()Checks if the currently loaded sessionItem is valid and if not: throws a error.static ApplicationConfiggetInstance()Gets the single instance of ApplicationConfig.voidinitialize()Initialize.voidinitialize(PropertyHandler props)voidinitialize(String propertyfile, String validationFile)Initialize.voidinitialize(String propertyfile, String vslidationFile, String urlConf)Initializes the system with the given propertyFile and urlConfig.voidsetOldSystemKeystoreProperties(String systemKeystorePassword, String systemKeystorePath, String systemKeystoreDirectory, String systemKeystoreNIHIIPHARMACYCBE)Sets the old system keystore properties.voidsetProperty(String key, String value)Sets the property.voidsetSystemKeystoreProperties(String systemKeystorePassword, String systemKeystorePath, String systemKeystoreDirectory, String systemKeystoreNIHIIPHARMACYCBE)Sets the system keystore properties.voidsetSystemProperty(String key, String value)Sets the system property.
-
-
-
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 passwordsystemKeystorePath- the system keystore pathsystemKeystoreDirectory- the system keystore directorysystemKeystoreNIHIIPHARMACYCBE- 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 passwordsystemKeystorePath- the system keystore pathsystemKeystoreDirectory- the system keystore directorysystemKeystoreNIHIIPHARMACYCBE- the system keystore NIHIIPHARMACYCBE
-
initialize
public void initialize()
Initialize.
-
initialize
public void initialize(String propertyfile, String validationFile)
Initialize.- Parameters:
propertyfile- the propertyfilevalidationFile- 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 usevslidationFile- the vslidation fileurlConf- the configuration directory to use @
-
initialize
public void initialize(PropertyHandler props)
-
setProperty
public void setProperty(String key, String value)
Sets the property.- Parameters:
key- the keyvalue- the value
-
-