public interface CommunoteInstaller
Modifier and Type | Method and Description |
---|---|
boolean |
canConnectToDatabase() |
void |
createCommunoteAccount(String accountName,
String timezoneId)
Create the Communote account (aka the global client).
|
User |
getAdminAccount() |
ClientTO |
getCommunoteAccount() |
StartupProperties |
getDatabaseSettings() |
DatabaseType |
getDatabaseType() |
DatabaseType |
getSupportedDatabaseType(String identifier)
Get the database type for the given identifier
|
List<DatabaseType> |
getSupportedDatabaseTypes() |
void |
initializeApplicationAfterInstallation()
Initialize the application if all steps of the installation were completed.
|
void |
initializeCommunoteAccount(UserVO adminAccount,
Map<ApplicationProperty,String> params)
Initialize the Communote account (aka global client) that was previously created with
createCommunoteAccount(String, String) |
boolean |
initializeDatabase(DatabaseInitializationStatusCallback statusCallback)
Initialize the application database and inform the provided callback about the current
status.
|
boolean |
isDatabaseInitialized()
Returns whether the global database is initialized, which is the schema exists.
|
StartupProperties |
updateDatabaseSettings(DatabaseType type,
Map<CoreConfigurationPropertyConstant,String> settings)
Update the database settings and return the resulting configuration.
|
boolean canConnectToDatabase()
getDatabaseSettings()
void createCommunoteAccount(String accountName, String timezoneId) throws InvalidClientIdException, CommunoteInstallerException
accountName
- the name of the accounttimezoneId
- the ID of the timezoneInvalidClientIdException
- in case the configured ID of the global client is not validCommunoteInstallerException
- in case creating the client failedUser getAdminAccount()
ClientTO getCommunoteAccount()
StartupProperties getDatabaseSettings()
DatabaseType getDatabaseType()
DatabaseType getSupportedDatabaseType(String identifier)
identifier
- the identifier of the typeList<DatabaseType> getSupportedDatabaseTypes()
void initializeApplicationAfterInstallation() throws BootstrapException
BootstrapException
- in case not all steps of the installation were completedvoid initializeCommunoteAccount(UserVO adminAccount, Map<ApplicationProperty,String> params) throws EmailValidationException, ConfigurationInitializationException, CommunoteInstallerException
createCommunoteAccount(String, String)
adminAccount
- VO with details of the first Communote user with administrative privilegesparams
- application parameters to initialize the Communote account withEmailValidationException
- in case the email address of the administrator user is invalidConfigurationInitializationException
- in case the provided application parameters caused an errorCommunoteInstallerException
- in case the initialization failedboolean initializeDatabase(DatabaseInitializationStatusCallback statusCallback)
statusCallback
- the callback to receive status updatesboolean isDatabaseInitialized()
StartupProperties updateDatabaseSettings(DatabaseType type, Map<CoreConfigurationPropertyConstant,String> settings) throws ConfigurationUpdateException
type
- the database typesettings
- the settings like host and username for connecting to the database of the given
typeConfigurationUpdateException
- in case the configuration cannot be savedCopyright © 2019 Communote team. All rights reserved.