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()
StartupPropertiesgetCacheRootDirectory in interface StartupPropertiespublic File getConfigurationDirectory()
StartupPropertiesgetConfigurationDirectory in interface StartupPropertiespublic String getCoreProperty(CoreConfigurationPropertyConstant property)
getCoreProperty in interface StartupPropertiesproperty - The property.public String getDatabaseDriverClassName()
StartupPropertiesgetDatabaseDriverClassName in interface StartupPropertiespublic String getDatabaseHost()
StartupPropertiesgetDatabaseHost in interface StartupPropertiespublic String getDatabaseName()
StartupPropertiesgetDatabaseName in interface StartupPropertiespublic Integer getDatabasePort()
StartupPropertiesgetDatabasePort in interface StartupPropertiespublic String getDatabaseProtocol()
StartupPropertiesgetDatabaseProtocol in interface StartupPropertiespublic String getDatabaseProtocolSeparator()
StartupPropertiesgetDatabaseProtocolSeparator in interface StartupPropertiespublic String getDatabaseSchemaSeparator()
StartupPropertiesgetDatabaseSchemaSeparator in interface StartupPropertiespublic String getDatabaseUrl()
StartupPropertiesgetDatabaseUrl in interface StartupPropertiespublic String getDatabaseUserName()
StartupPropertiesgetDatabaseUserName in interface StartupPropertiespublic String getDatabaseUserPassword()
StartupPropertiesgetDatabaseUserPassword in interface StartupPropertiespublic File getDataDirectory()
StartupPropertiesgetDataDirectory in interface StartupPropertiespublic String getHibernateDialect()
StartupPropertiesgetHibernateDialect in interface StartupPropertiespublic String getInstanceName()
StartupPropertiesgetInstanceName in interface StartupPropertiespublic KeyStore getKeyStore()
StartupPropertiesgetKeyStore in interface StartupPropertiespublic File getPluginDir()
StartupPropertiesgetPluginDir in interface StartupPropertiespublic String getServerId()
StartupPropertiesgetServerId in interface StartupPropertiespublic KeyStore getTrustStore()
getTrustStore in interface StartupPropertiespublic boolean isFulltextSearch()
isFulltextSearch in interface StartupPropertiespublic boolean isInstallationDone()
StartupPropertiesisInstallationDone in interface StartupPropertiespublic void setCertificate(String alias, Certificate certificate) throws KeyStoreException
setCertificate in interface StartupPropertiesalias - Alias of the certificate.certificate - The new certificate. If null, the certificate will be removed.KeyStoreException - Exception.Copyright © 2019 Communote team. All rights reserved.