Package org.compiere.install
Class ConfigurationData
java.lang.Object
org.compiere.install.ConfigurationData
Configuration Data
- Version:
- $Id: ConfigurationData.java,v 1.4 2006/07/30 00:57:42 jjanke Exp $
- Author:
- Jorg Janke
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
DB Pathstatic final String
static final String
static final String
static final String
DB Typestatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static String[]
Database Typesstatic final String
Properties File namestatic final String
Adempiere Homestatic final String
static final String
static String[]
Java VM Typesstatic final String
Default Keysore Passwordprotected static final CLogger
Static Loggerprotected ConfigurationPanel
UI Panelprotected Properties
Environment Properties -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Get Adempiere Homeint
int
boolean
int
Get Key StoregetProperty
(String property) getWebStores
(Connection con) Get Web Store Context Names separated by ,void
Init Apps Servervoid
initDatabase
(String selected) Init Databasevoid
initJava()
Init Databaseboolean
load()
Load Configuration DataresolveDatabaseName
(String connectionName) boolean
save()
Save Settingsvoid
setAdempiereHome
(String adempiereHome) Set Adempiere Homevoid
setAdminEMail
(String adminEMail) void
setAppsServer
(String appsServer) void
setAppsServerSSLPort
(boolean enable) void
setAppsServerSSLPort
(String appsServerSSLPort) void
setAppsServerWebPort
(boolean enable) void
setAppsServerWebPort
(String appsServerWebPort) void
setDatabaseDiscovered
(String databaseDiscovered) void
setDatabaseExists
(String dbExists) void
setDatabaseName
(String databaseName) void
setDatabasePassword
(String databasePassword) void
setDatabasePort
(String databasePort) void
setDatabaseServer
(String databaseServer) void
setDatabaseSystemPassword
(boolean enable) void
setDatabaseSystemPassword
(String databaseSystemPassword) int
setDatabaseType
(String databaseType) Set Database Typevoid
setDatabaseUser
(String databaseUser) void
setJavaHome
(String javaHome) void
setJavaOptions
(String javaOptions) void
setKeyStore
(String password) Set Key Store Passwordvoid
setMailPassword
(String mailPassword) void
setMailServer
(String mailServer) void
setMailUser
(String mailUser) void
setProperty
(String key, String value) Set Configuration Propertyboolean
test
(IDBConfigMonitor monitor) testTest Adempiere and set AdempiereHomeTest Apps ServertestDatabase
(IDBConfigMonitor monitor) Test DatabasetestJava()
Test JavatestMail()
Test (optional) Mailboolean
Test Apps Server Port (client perspective)boolean
testPort
(InetAddress host, int port, boolean shouldBeUsed) Test Portprotected boolean
testServerPort
(int port) Test Server Portvoid
updateProperty
(String property, String value)
-
Field Details
-
p_panel
UI Panel -
p_properties
Environment Properties -
log
Static Logger -
IDEMPIERE_ENV_FILE
Properties File name- See Also:
-
IDEMPIERE_HOME
Adempiere Home- See Also:
-
JAVA_HOME
- See Also:
-
IDEMPIERE_JAVA_OPTIONS
- See Also:
-
KEYSTORE_PASSWORD
Default Keysore Password- See Also:
-
ADEMPIERE_APPS_TYPE
- See Also:
-
ADEMPIERE_APPS_SERVER
- See Also:
-
ADEMPIERE_APPS_DEPLOY
- See Also:
-
ADEMPIERE_JNP_PORT
- See Also:
-
ADEMPIERE_WEB_PORT
- See Also:
-
ADEMPIERE_SSL_PORT
- See Also:
-
ADEMPIERE_WEB_ALIAS
- See Also:
-
ADEMPIERE_KEYSTORE
- See Also:
-
ADEMPIERE_KEYSTOREPASS
- See Also:
-
ADEMPIERE_KEYSTORECODEALIAS
- See Also:
-
ADEMPIERE_KEYSTOREWEBALIAS
- See Also:
-
ADEMPIERE_CERT_CN
- See Also:
-
ADEMPIERE_CERT_ORG
- See Also:
-
ADEMPIERE_CERT_ORG_UNIT
- See Also:
-
ADEMPIERE_CERT_LOCATION
- See Also:
-
ADEMPIERE_CERT_STATE
- See Also:
-
ADEMPIERE_CERT_COUNTRY
- See Also:
-
ADEMPIERE_DB_TYPE
DB Type- See Also:
-
ADEMPIERE_DB_PATH
DB Path- See Also:
-
ADEMPIERE_DB_SERVER
- See Also:
-
ADEMPIERE_DB_PORT
- See Also:
-
ADEMPIERE_DB_NAME
- See Also:
-
ADEMPIERE_DB_URL
- See Also:
-
ADEMPIERE_DB_USER
- See Also:
-
ADEMPIERE_DB_PASSWORD
- See Also:
-
ADEMPIERE_DB_SYSTEM
- See Also:
-
ADEMPIERE_DB_EXISTS
- See Also:
-
ADEMPIERE_MAIL_SERVER
- See Also:
-
ADEMPIERE_MAIL_USER
- See Also:
-
ADEMPIERE_MAIL_PASSWORD
- See Also:
-
ADEMPIERE_ADMIN_EMAIL
- See Also:
-
ADEMPIERE_MAIL_UPDATED
- See Also:
-
ADEMPIERE_FTP_SERVER
- See Also:
-
ADEMPIERE_FTP_USER
- See Also:
-
ADEMPIERE_FTP_PASSWORD
- See Also:
-
ADEMPIERE_FTP_PREFIX
- See Also:
-
ADEMPIERE_WEBSTORES
- See Also:
-
secretVars
-
JAVATYPE
Java VM Types -
DBTYPE
Database Types
-
-
Constructor Details
-
ConfigurationData
Constructor- Parameters:
panel
- UI panel
-
-
Method Details
-
updateProperty
-
getProperty
-
load
public boolean load()Load Configuration Data- Returns:
- true if loaded
-
resolveDatabaseName
-
test
test- Returns:
- true if test ok
-
testAdempiere
Test Adempiere and set AdempiereHome- Returns:
- error message or null if OK
-
testMail
Test (optional) Mail- Returns:
- error message or null, if OK
-
testPort
Test Apps Server Port (client perspective)- Parameters:
protocol
- protocol (http, ..)server
- server nameport
- portfile
- file name- Returns:
- true if able to connect
-
testServerPort
protected boolean testServerPort(int port) Test Server Port- Parameters:
port
- port- Returns:
- true if able to create
-
testPort
Test Port- Parameters:
host
- hostport
- portshouldBeUsed
- true if it should be used- Returns:
- true if some server answered on port
-
save
public boolean save()Save Settings- Returns:
- true if saved
-
getAdempiereHome
Get Adempiere Home- Returns:
- adempiere home
-
setAdempiereHome
Set Adempiere Home- Parameters:
adempiereHome
-
-
getKeyStore
Get Key Store- Returns:
- password
-
setKeyStore
Set Key Store Password- Parameters:
password
-
-
initJava
public void initJava()Init Database -
testJava
Test Java- Returns:
- error message or null of OK
-
getJavaHome
- Returns:
- Returns the javaHome.
-
setJavaHome
- Parameters:
javaHome
- The javaHome to set.
-
getJavaOptions
- Returns:
- Java Options
-
setJavaOptions
- Parameters:
javaOptions
- The javaOptions to set.
-
initAppsServer
public void initAppsServer()Init Apps Server -
testAppsServer
Test Apps Server- Returns:
- error message or null of OK
-
getAppsServer
- Returns:
- Returns the appsServer.
-
setAppsServer
- Parameters:
appsServer
- The appsServer to set.
-
getAppsServerSSLPort
public int getAppsServerSSLPort()- Returns:
- Returns the appsServerSSLPort.
-
setAppsServerSSLPort
- Parameters:
appsServerSSLPort
- The appsServerSSLPort to set.
-
setAppsServerSSLPort
public void setAppsServerSSLPort(boolean enable) - Parameters:
enable
- if tre enable SSL entry
-
getAppsServerWebPort
public int getAppsServerWebPort()- Returns:
- Returns the appsServerWebPort.
-
setAppsServerWebPort
- Parameters:
appsServerWebPort
- The appsServerWebPort to set.
-
setAppsServerWebPort
public void setAppsServerWebPort(boolean enable) - Parameters:
enable
- if tre enable Web entry
-
initDatabase
Init Database- Parameters:
selected
- DB
-
testDatabase
Test Database- Parameters:
monitor
-- Returns:
- error message or null of OK
-
setDatabaseType
Set Database Type- Parameters:
databaseType
- The databaseType to set.
-
getDatabaseType
- Returns:
- Returns the databaseType.
-
getDatabaseDiscovered
- Returns:
- Returns the database Discovered.
-
setDatabaseDiscovered
- Parameters:
databaseDiscovered
- The database Discovered to set.
-
getDatabaseName
- Returns:
- Returns the databaseName.
-
setDatabaseName
- Parameters:
databaseName
- The databaseName to set.
-
getDatabasePassword
- Returns:
- Returns the database User Password.
-
setDatabasePassword
- Parameters:
databasePassword
- The databasePassword to set.
-
getDatabasePort
public int getDatabasePort()- Returns:
- Returns the databasePort.
-
setDatabasePort
- Parameters:
databasePort
- The databasePort to set.
-
getDatabaseServer
- Returns:
- Returns the databaseServer.
-
setDatabaseServer
- Parameters:
databaseServer
- The databaseServer to set.
-
getDatabaseSystemPassword
- Returns:
- Returns the databaseSystemPassword.
-
setDatabaseSystemPassword
- Parameters:
databaseSystemPassword
- The databaseSystemPassword to set.
-
setDatabaseSystemPassword
public void setDatabaseSystemPassword(boolean enable) - Parameters:
enable
- enable Database System Password
-
setDatabaseExists
- Parameters:
dbExists
- ADEMPIERE_DB_EXISTS
-
getDatabaseExists
public boolean getDatabaseExists() -
getDatabaseUser
- Returns:
- Returns the databaseUser.
-
setDatabaseUser
- Parameters:
databaseUser
- The databaseUser to set.
-
getMailServer
- Returns:
- Returns the mail Server.
-
setMailServer
-
getMailUser
- Returns:
- Returns the mailUser.
-
setMailUser
- Parameters:
mailUser
- The mailUser to set.
-
getMailPassword
- Returns:
- Returns the mail User Password.
-
setMailPassword
- Parameters:
mailPassword
- The mailPassword to set.
-
getAdminEMail
- Returns:
- Returns the admin email
-
setAdminEMail
- Parameters:
adminEMail
- The admin email
-
getWebStores
Get Web Store Context Names separated by ,- Parameters:
con
- connection- Returns:
- String of Web Store Names - e.g. /wstore
-
setProperty
Set Configuration Property- Parameters:
key
- keyvalue
- value
-
dbChanged
public void dbChanged()
-