public class StartupPropertiesImpl extends Object implements StartupProperties
DEFAULT_PROTOCOL_SEPARATOR
Constructor and Description |
---|
StartupPropertiesImpl(String webAppRealPath)
Constructs a new instance of the startup properties.
|
Modifier and Type | Method and Description |
---|---|
File |
getCacheRootDirectory()
Returns the root directory for caching data of the running instance.
|
File |
getConfigurationDirectory()
Returns the configuration directory of the running instance.
|
String |
getCoreProperty(CoreConfigurationPropertyConstant property) |
String |
getDatabaseDriverClassName()
Returns the driver class name.
|
String |
getDatabaseHost()
The name the database or null if not set.
|
String |
getDatabaseName()
The name the database or null if not set.
|
Integer |
getDatabasePort()
The port the database is listening on or null if not set or not required.
|
String |
getDatabaseProtocol()
The protocol of the database connection or null if not set.
|
String |
getDatabaseProtocolSeparator()
The protocol separator of the database connection or null if not set.
|
String |
getDatabaseSchemaSeparator()
The schema separator of the database connection or the default if not set.
|
String |
getDatabaseUrl()
Returns the JDBC URL to connect to the database or null if not all required properties are
set.
|
String |
getDatabaseUserName()
Returns the user name of the user that accesses the database or null if not set.
|
String |
getDatabaseUserPassword()
Returns the password of the user that accesses the database or null if not set.
|
File |
getDataDirectory()
Returns the directory where Communote stores its data.
|
String |
getHibernateDialect()
Returns the full qualified class name of the Hibernate dialect class.
|
String |
getInstanceName()
Returns the name of the running instance.
|
KeyStore |
getKeyStore()
Return the key store containing secure keys (dont conflict it with the trust store!)
|
File |
getPluginDir()
Returns the plug in directory
|
String |
getServerId()
Returns the server ID of this installation.
|
KeyStore |
getTrustStore() |
boolean |
isFulltextSearch() |
boolean |
isInstallationDone()
Whether the installation is done.
|
void |
setCertificate(String alias,
Certificate certificate) |
public StartupPropertiesImpl(String webAppRealPath) throws ConfigurationInitializationException
webAppRealPath
- the file system path to the web application which is used to resolve the server
installation directory.ConfigurationInitializationException
- in case retrieving some of the required properties failspublic File getCacheRootDirectory()
StartupProperties
getCacheRootDirectory
in interface StartupProperties
public File getConfigurationDirectory()
StartupProperties
getConfigurationDirectory
in interface StartupProperties
public String getCoreProperty(CoreConfigurationPropertyConstant property)
getCoreProperty
in interface StartupProperties
property
- The property.public String getDatabaseDriverClassName()
StartupProperties
getDatabaseDriverClassName
in interface StartupProperties
public String getDatabaseHost()
StartupProperties
getDatabaseHost
in interface StartupProperties
public String getDatabaseName()
StartupProperties
getDatabaseName
in interface StartupProperties
public Integer getDatabasePort()
StartupProperties
getDatabasePort
in interface StartupProperties
public String getDatabaseProtocol()
StartupProperties
getDatabaseProtocol
in interface StartupProperties
public String getDatabaseProtocolSeparator()
StartupProperties
getDatabaseProtocolSeparator
in interface StartupProperties
public String getDatabaseSchemaSeparator()
StartupProperties
getDatabaseSchemaSeparator
in interface StartupProperties
public String getDatabaseUrl()
StartupProperties
getDatabaseUrl
in interface StartupProperties
public String getDatabaseUserName()
StartupProperties
getDatabaseUserName
in interface StartupProperties
public String getDatabaseUserPassword()
StartupProperties
getDatabaseUserPassword
in interface StartupProperties
public File getDataDirectory()
StartupProperties
getDataDirectory
in interface StartupProperties
public String getHibernateDialect()
StartupProperties
getHibernateDialect
in interface StartupProperties
public String getInstanceName()
StartupProperties
getInstanceName
in interface StartupProperties
public KeyStore getKeyStore()
StartupProperties
getKeyStore
in interface StartupProperties
public File getPluginDir()
StartupProperties
getPluginDir
in interface StartupProperties
public String getServerId()
StartupProperties
getServerId
in interface StartupProperties
public KeyStore getTrustStore()
getTrustStore
in interface StartupProperties
public boolean isFulltextSearch()
isFulltextSearch
in interface StartupProperties
public boolean isInstallationDone()
StartupProperties
isInstallationDone
in interface StartupProperties
public void setCertificate(String alias, Certificate certificate) throws KeyStoreException
setCertificate
in interface StartupProperties
alias
- Alias of the certificate.certificate
- The new certificate. If null, the certificate will be removed.KeyStoreException
- Exception.Copyright © 2019 Communote team. All rights reserved.