public class SetupAPI extends ASubAPI
Constructor and Description |
---|
SetupAPI() |
Modifier and Type | Method and Description |
---|---|
Boolean |
createMandantWithDependencies(UserContext uc,
Mandant client,
MandantMailData mailData,
MandantLdapData ldapData,
Benutzer user)
Method for creating a
Mandant with initial configuration analogous to the setup process. |
List<XLogAppender> |
getAvailableLogAppenders() |
ELizenzTyp |
getLicenseType() |
FCMessage |
invokeLiquibaseProzess(UserContext uc,
ELiquibaseCmd command)
Method for executing a liquibase process.
|
Boolean |
isDbConfigured(UserContext uc)
Method to testi if the database has been configured.
|
Boolean |
isDbRunning()
Checks whether the database is running.
|
Boolean |
isDBUpToDate()
Checks whether the database is up to date.
|
Boolean |
isValidLicense()
Method for determining if there is a valid license provided on the master server.
|
Boolean |
testConnection(UserContext uc,
DBConnectionData databaseData)
Method for testing a database connection.
|
getHandlerProvider
public Boolean testConnection(UserContext uc, DBConnectionData databaseData) throws ClassNotFoundException, SQLException
uc
- UserContext
the user context in which the action is to be performed.databaseData
- DBConnectionData
the database on which the connection should be tested.true
if the connection could be made.SQLException
- if a error occurs while testing the connection.ClassNotFoundException
- if the driver couldn't found.public FCMessage invokeLiquibaseProzess(UserContext uc, ELiquibaseCmd command)
uc
- UserContext
the user context in which the action is to be performed.command
- ELiquibaseCmd
the liquibase command to be executed.String
the console output of the liquibase process execution.public Boolean isDbConfigured(UserContext uc)
uc
- UserContext
the user context in which the action is to be performed.Boolean
true
if the database is already configured, otherwise false
public Boolean isDBUpToDate()
Boolean
whether the database is up to date or not.public Boolean isDbRunning()
Boolean
whether the database is running or not.public Boolean isValidLicense()
Boolean
true
if the license provided on the master server is valid.public ELizenzTyp getLicenseType()
public Boolean createMandantWithDependencies(UserContext uc, Mandant client, MandantMailData mailData, MandantLdapData ldapData, Benutzer user)
Mandant
with initial configuration analogous to the setup process.uc
- UserContext
the user context in which the action is to be performed.client
- Mandant
which should be created.mailData
- MandantMailData
the mail data from the client.ldapData
- MandantLdapData
the ldap data form the client.user
- Benutzer
initial client administrator.true
if the client together with the initial configuration could be created successfully.public List<XLogAppender> getAvailableLogAppenders()
Copyright © 2021 XIMA MEDIA GmbH. All rights reserved.