Class CmsAutoSetupProperties
Note that each property set in the file is overwritten if the identical property is set as Java system property (what is used, e.g., by the setup wizard).
Moreover, the property setup.install.components can be set via an accordingly named environment variable.
- Since:
- 6.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.apache.commons.logging.LogThe log object for this class.static final StringThe DB connection string parameters property name.static final StringThe property keydb.connection.urlfor providing the JDBC connection string, e.g.,jdbc:mysql://localhost:3306/for the default MySQL installation.static final StringThe property keydb.create.dbfor specifying if the database should be created during the setup.static final StringThe property keydb.create.pwdfor specifying the password for the database user that is used during the setup connection.static final StringThe property keydb.create.tablesfor specifying if the database tables in the OpenCms database should be created.static final StringThe property keydb.create.userfor specifying the name of the database user that is used during the setup connection.static final StringThe property keydb.default.tablespacenecessary dependent on the chosen DBMS.static final StringThe property keydb.dropDbfor specifying if an existing database should be dropped when the setup is configured to create a database with the same name.static final StringThe property keydb.index.tablespacenecessary dependent on the chosen DBMS.static final StringThe property keydb.jdbc.driverfor specifying the fully qualified name of the Java class implementing the JDBC driver to use for the connection.static final StringThe property keydb.namefor specifying the name of the database used by OpenCms, e.g.static final StringThe property keydb.productfor specifying the used DBMS.static final StringThe property keydb.providerfor specifying the database provider.static final StringThe property keydb.template.dbnecessary dependent of the chosen DBMS.static final StringThe property keydb.temporary.tablespacenecessary dependent of the chosen DBMS..static final StringThe property keydb.worker.pwdfor providing the password of the database user that is used when running OpenCms after the setup.static final StringThe property keydb.worker.userfor providing the name of the database user that is used for the connection when running OpenCms after the setup.static final StringThe property keyserver.ethernet.address.static final StringThe property keyserver.namefor specifying the server's name.static final StringThe property keyserver.servlet.mappingfor specifying the name of the OpenCms servlet (by default opencms).static final StringThe property keyserver.urlfor specifying the server's URL.static final StringThe property keysetup.default.webapp.static final StringThe property keysetup.install.componentsto choose the components that should be installed during the setup.static final StringThe property keysetup.show.progressto specify if dots '.' should be printed to the real STDOUT while a setup is in progress.static final StringThe property keysetup.webapp.pathto specify the path of the OpenCms webapp to install, e.g.,/var/lib/tomcat7/webapps/opencms. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the connectionUrl.Returns the DB connection string parameters.Returns the createPwd.Returns the createUser.Returns the dbProvider.Returns the defaultTablespace.Returns the ethernetAddress.Returns the indexTablespace.Returns the installComponents.Returns the jdbcDriver.Returns the serveltMapping.Returns the serverName.Returns the serverUrl.org.opencms.configuration.CmsParameterConfigurationReturns the setup configuration object.Returns the setupWebappName.Returns the setupWebappPath.Returns the templateDb.Returns the temporaryTablespace.Returns the webappPath.Returns the workerPwd.Returns the workerUser.booleanReturns the createDb.booleanReturns the createTables.booleanisDropDb()Returns the dropDb.booleanIndicates if dots '.' should be printed to the real STDOUT while a setup is in progress.Converts and returns this object as map.
-
Field Details
-
LOG
The log object for this class. -
PROP_DB_CONNECTION_STRING_PARAMS
The DB connection string parameters property name.- See Also:
-
PROP_DB_CONNECTION_URL
The property keydb.connection.urlfor providing the JDBC connection string, e.g.,jdbc:mysql://localhost:3306/for the default MySQL installation.- See Also:
-
PROP_DB_CREATE_DB
The property keydb.create.dbfor specifying if the database should be created during the setup.Set to
trueto create the database automatically, orfalseif it should not.NOTE: Automatic database creation is not supported for all DBMSs.
- See Also:
-
PROP_DB_CREATE_PWD
The property keydb.create.pwdfor specifying the password for the database user that is used during the setup connection.- See Also:
-
PROP_DB_CREATE_TABLES
The property keydb.create.tablesfor specifying if the database tables in the OpenCms database should be created.Set to
trueto create the database automatically, orfalseif it should not.- See Also:
-
PROP_DB_CREATE_USER
The property keydb.create.userfor specifying the name of the database user that is used during the setup connection. NOTE: The user must have administration permissions. The user data is deleted, when the setup is finished.- See Also:
-
PROP_DB_DEFAULT_TABLESPACE
The property keydb.default.tablespacenecessary dependent on the chosen DBMS.- See Also:
-
PROP_DB_DROP_DB
The property keydb.dropDbfor specifying if an existing database should be dropped when the setup is configured to create a database with the same name. Set totrueif existing databases should be dropped when necessary, or tofalseif not.- See Also:
-
PROP_DB_INDEX_TABLESPACE
The property keydb.index.tablespacenecessary dependent on the chosen DBMS.- See Also:
-
PROP_DB_JDBC_DRIVER
The property keydb.jdbc.driverfor specifying the fully qualified name of the Java class implementing the JDBC driver to use for the connection.Hint: The names can be found in the
database.propertiesfile in the webapp' folderssetup/database/invalid input: '<'db.product>/.- See Also:
-
PROP_DB_NAME
The property keydb.namefor specifying the name of the database used by OpenCms, e.g. choose "opencms".- See Also:
-
PROP_DB_PRODUCT
The property keydb.productfor specifying the used DBMS. Values should match the folders under the OpenCms webapp's foldersetup/database/.- See Also:
-
PROP_DB_PROVIDER
The property keydb.providerfor specifying the database provider.Hint: The available providers are defined as constants in
CmsSetupBean.- See Also:
-
PROP_DB_TEMPLATE_DB
The property keydb.template.dbnecessary dependent of the chosen DBMS.- See Also:
-
PROP_DB_TEMPORARY_TABLESPACE
The property keydb.temporary.tablespacenecessary dependent of the chosen DBMS..- See Also:
-
PROP_DB_WORKER_PWD
The property keydb.worker.pwdfor providing the password of the database user that is used when running OpenCms after the setup. CAUTION: For security reasons, the user should not have administration permissions. The user data is stored in theopencms.propertiesfile after the setup.- See Also:
-
PROP_DB_WORKER_USER
The property keydb.worker.userfor providing the name of the database user that is used for the connection when running OpenCms after the setup. CAUTION: For security reasons, the user should not have administration permissions. The user data is stored in theopencms.propertiesfile after the setup. .- See Also:
-
PROP_SERVER_ETHERNET_ADDRESS
The property keyserver.ethernet.address. Specify a valid MAC-Address. It is used internally by OpenCms. (If not given, the address is generated automatically.)- See Also:
-
PROP_SERVER_NAME
The property keyserver.namefor specifying the server's name. Special server names are of particular interest in a cluster installation.- See Also:
-
PROP_SERVER_SERVLET_MAPPING
The property keyserver.servlet.mappingfor specifying the name of the OpenCms servlet (by default opencms).- See Also:
-
PROP_SERVER_URL
The property keyserver.urlfor specifying the server's URL. It is used, e.g., for the site configuration.- See Also:
-
PROP_SETUP_DEFAULT_WEBAPP
The property keysetup.default.webapp. Provide the default webapp in your servlet container (Default: ROOT).- See Also:
-
PROP_SETUP_INSTALL_COMPONENTS
The property keysetup.install.componentsto choose the components that should be installed during the setup.The available components are configured in
setup/components.propertiesin the webapp's folder.NOTE: You can specify the components to install also as Java system property (highest priority) or via an environment variable (second choice). The value specified in the configuration file is only the third choice.
- See Also:
-
PROP_SETUP_SHOW_PROGRESS
The property keysetup.show.progressto specify if dots '.' should be printed to the real STDOUT while a setup is in progress.- See Also:
-
PROP_SETUP_WEBAPP_PATH
The property keysetup.webapp.pathto specify the path of the OpenCms webapp to install, e.g.,/var/lib/tomcat7/webapps/opencms.- See Also:
-
-
Constructor Details
-
CmsAutoSetupProperties
Public constructor.- Parameters:
propertiesFile- the path to the setup properties file- Throws:
IOException- if the property file could not be readSecurityException- if the environment variables could not be read
-
-
Method Details
-
getConnectionUrl
Returns the connectionUrl.- Returns:
- the connectionUrl
-
getConStrParams
Returns the DB connection string parameters.- Returns:
- the DB connection string parameters
-
getCreatePwd
Returns the createPwd.- Returns:
- the createPwd
-
getCreateUser
Returns the createUser.- Returns:
- the createUser
-
getDbName
- Returns:
- the name of the db name used
-
getDbProduct
- Returns:
- the name of the db product used
-
getDbProvider
Returns the dbProvider.- Returns:
- the dbProvider
-
getDefaultTablespace
Returns the defaultTablespace.- Returns:
- the defaultTablespace
-
getEthernetAddress
Returns the ethernetAddress.- Returns:
- the ethernetAddress
-
getIndexTablespace
Returns the indexTablespace.- Returns:
- the indexTablespace
-
getInstallComponents
Returns the installComponents.- Returns:
- the installComponents
-
getJdbcDriver
Returns the jdbcDriver.- Returns:
- the jdbcDriver
-
getServeltMapping
Returns the serveltMapping.- Returns:
- the serveltMapping
-
getServerName
Returns the serverName.- Returns:
- the serverName
-
getServerUrl
Returns the serverUrl.- Returns:
- the serverUrl
-
getSetupConfiguration
Returns the setup configuration object.- Returns:
- the setup configuration object
-
getSetupDefaultWebappName
Returns the setupWebappName.- Returns:
- the setupWebappName
-
getSetupWebappPath
Returns the setupWebappPath.- Returns:
- the setupWebappPath
-
getTemplateDb
Returns the templateDb.- Returns:
- the templateDb
-
getTemporaryTablespace
Returns the temporaryTablespace.- Returns:
- the temporaryTablespace
-
getWebappPath
Returns the webappPath.- Returns:
- the webappPath
-
getWorkerPwd
Returns the workerPwd.- Returns:
- the workerPwd
-
getWorkerUser
Returns the workerUser.- Returns:
- the workerUser
-
isCreateDb
Returns the createDb.- Returns:
- the createDb
-
isCreateTables
Returns the createTables.- Returns:
- the createTables
-
isDropDb
Returns the dropDb.- Returns:
- the dropDb
-
isShowProgress
Indicates if dots '.' should be printed to the real STDOUT while a setup is in progress.- Returns:
- true if dots '.' should be printed to the real STDOUT while a setup is in progress
-
toParameterMap
Converts and returns this object as map.- Returns:
- this object as map
-