Package de.xima.fc.api.system
Class SetupAPI
java.lang.Object
de.xima.fc.api.ASubAPI
de.xima.fc.api.system.SetupAPI
API class of setups.
- Author:
- XIMA MEDIA GmbH
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateMandantWithDependencies(UserContext uc, Mandant client, MandantMailData mailData, MandantLdapData ldapData, Benutzer user) Deprecated.createMandantWithDependencies(UserContext uc, Mandant client, MandantMailData mailData, String adminEmail, IUser creator) Method for creating aMandantwith initial configuration analogous to the setup process.Deprecated.Deprecated.invokeLiquibaseProzess(UserContext uc, ELiquibaseCmd command) Deprecated.Use FormcycleUpdate instead.Method to testi if the database has been configured.Checks whether the database is running.Checks whether the database is up to date.booleanChecks whether there are updated that have not been executed yet.Deprecated.testConnection(UserContext uc, DBConnectionData databaseData) Method for testing a database connection.Methods inherited from class de.xima.fc.api.ASubAPI
getHandlerProvider
-
Constructor Details
-
SetupAPI
public SetupAPI()
-
-
Method Details
-
testConnection
public Boolean testConnection(UserContext uc, DBConnectionData databaseData) throws ClassNotFoundException, SQLException Method for testing a database connection.- Parameters:
uc-UserContextthe user context in which the action is to be performed.databaseData-DBConnectionDatathe database on which the connection should be tested.- Returns:
trueif the connection could be made.- Throws:
SQLException- if a error occurs while testing the connection.ClassNotFoundException- if the driver couldn't found.- Since:
- 2.4.3
-
invokeLiquibaseProzess
Deprecated.Use FormcycleUpdate instead.Method for executing a liquibase process.- Parameters:
uc-UserContextthe user context in which the action is to be performed.command-ELiquibaseCmdthe liquibase command to be executed.- Returns:
Stringthe console output of the liquibase process execution.- Since:
- 2.4.3
-
isDbConfigured
Method to testi if the database has been configured.- Parameters:
uc-UserContextthe user context in which the action is to be performed.- Returns:
Booleantrueif the database is already configured, otherwisefalse- Since:
- 2.4.3
-
isDBUpToDate
Checks whether the database is up to date.- Returns:
Booleanwhether the database is up to date or not.
-
isDbRunning
Checks whether the database is running.- Returns:
Booleanwhether the database is running or not.
-
isUpdateNeeded
public boolean isUpdateNeeded()Checks whether there are updated that have not been executed yet.- Returns:
Booleanwhether there are unperformed updates.
-
createMandantWithDependencies
public Boolean createMandantWithDependencies(UserContext uc, Mandant client, MandantMailData mailData, String adminEmail, IUser creator) Method for creating aMandantwith initial configuration analogous to the setup process.- Parameters:
uc-UserContextthe user context in which the action is to be performed.client-Mandantwhich should be created.mailData-MandantMailDatathe mail data from the client.adminEmail- emal address of the new client admincreator- the user that is creating the client.- Returns:
trueif the client together with the initial configuration could be created successfully.- Since:
- 8.0.0
-
getAvailableLogAppenders
Deprecated. -
isValidLicense
Deprecated.Method for determining if there is a valid license provided on the master server.- Returns:
Booleantrueif the license provided on the master server is valid.
-
getLicenseType
Deprecated.- Returns:
- The current license type of the master server.
-
createMandantWithDependencies
@Deprecated public Boolean createMandantWithDependencies(UserContext uc, Mandant client, MandantMailData mailData, MandantLdapData ldapData, Benutzer user) Deprecated.Method for creating aMandantwith initial configuration analogous to the setup process.- Parameters:
uc-UserContextthe user context in which the action is to be performed.client-Mandantwhich should be created.mailData-MandantMailDatathe mail data from the client.ldapData-MandantLdapDatathe ldap data form the client.user-Benutzerinitial client administrator.- Returns:
trueif the client together with the initial configuration could be created successfully.- Since:
- 2.4.3
-
createMandantWithDependencies(UserContext, Mandant, MandantMailData, String, IUser)instead.