Package de.xima.fc.db
Class DatabasePropertiesHelper
- java.lang.Object
-
- de.xima.fc.db.DatabasePropertiesHelper
-
public class DatabasePropertiesHelper extends Object
-
-
Constructor Summary
Constructors Constructor Description DatabasePropertiesHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DBConnectionData
getConnectionData()
static EDatenbankTyp
getConnectionDBMSType()
static String
getConnectionJdbcURL()
static String
getConnectionLoginName()
static String
getConnectionLoginPassword()
static int
getConnectionMaxCount()
static int
getConnectionTimeout()
static EDBEncryptionAlgorithm
getEncryptionAlgorithm()
static String
getEncryptionPassword()
static boolean
isFormDataEncryptionActive()
static boolean
isProjectInboxEncryptionActive()
static void
migrateProperties()
static void
storeConnectionData(DBConnectionData data)
static void
storeConnectionData(EDatenbankTyp dbms, String jdbcUrl, String loginName, String loginPwd, int maxConnections, int connectionTimeout)
static void
storeEncryptionData(boolean formDataEncActive, String password, EDBEncryptionAlgorithm algorithm)
-
-
-
Method Detail
-
migrateProperties
public static void migrateProperties()
-
storeEncryptionData
public static void storeEncryptionData(boolean formDataEncActive, String password, EDBEncryptionAlgorithm algorithm) throws org.apache.commons.configuration2.ex.ConfigurationException
- Parameters:
formDataEncActive
- Flag, welches aussagt, ob die Formulardaten Verschluesselung aktiv istpassword
- the encryption passwordalgorithm
- the encryption algorihm- Throws:
org.apache.commons.configuration2.ex.ConfigurationException
- if the configuration could not be saved
-
storeConnectionData
public static void storeConnectionData(DBConnectionData data) throws org.apache.commons.configuration2.ex.ConfigurationException
- Throws:
org.apache.commons.configuration2.ex.ConfigurationException
-
storeConnectionData
public static void storeConnectionData(EDatenbankTyp dbms, String jdbcUrl, String loginName, String loginPwd, int maxConnections, int connectionTimeout) throws org.apache.commons.configuration2.ex.ConfigurationException
- Throws:
org.apache.commons.configuration2.ex.ConfigurationException
-
getConnectionJdbcURL
public static String getConnectionJdbcURL()
-
getConnectionLoginName
public static String getConnectionLoginName()
-
getConnectionLoginPassword
public static String getConnectionLoginPassword()
-
getConnectionMaxCount
public static int getConnectionMaxCount()
-
getConnectionTimeout
public static int getConnectionTimeout()
-
getConnectionDBMSType
public static EDatenbankTyp getConnectionDBMSType()
-
getConnectionData
public static DBConnectionData getConnectionData()
-
getEncryptionPassword
public static String getEncryptionPassword()
-
getEncryptionAlgorithm
public static EDBEncryptionAlgorithm getEncryptionAlgorithm()
-
isFormDataEncryptionActive
public static boolean isFormDataEncryptionActive()
-
isProjectInboxEncryptionActive
public static boolean isProjectInboxEncryptionActive()
-
-