public class SetupHandler extends AMSApiHandler implements ISetupHandler
Constructor and Description |
---|
SetupHandler() |
Modifier and Type | Method and Description |
---|---|
boolean |
createManantWithDependencies(UserContext uc,
Mandant mandant,
Benutzer ben)
Methode zum Anlegen eines Mandanten mit der initialen Konfiguration, analog zum Setup-Prozess
|
FCMessage |
invokeLiquibaseProzess(UserContext uc,
ELiquibaseCmd lbCmd)
Invoke liquibase prozess.
|
Boolean |
isDbConfigured(UserContext uc)
Methode zum Testen ob die Datenbank konfigureiert wurde
|
Boolean |
testConnection(UserContext uc,
DBConnectionData db)
Test connection.
|
getName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName
public FCMessage invokeLiquibaseProzess(UserContext uc, ELiquibaseCmd lbCmd) throws de.xima.cmn.dao.exceptions.UpdateException
invokeLiquibaseProzess
in interface ISetupHandler
lbCmd
- the lb cmdliquibase.exception.DatabaseException
de.xima.cmn.dao.exceptions.UpdateException
public Boolean testConnection(UserContext uc, DBConnectionData db) throws de.xima.cmn.dao.exceptions.ReadException
testConnection
in interface ISetupHandler
db
- the dbtrue
wenn die Verbindung hergestellt werden konnte @liquibase.exception.DatabaseException
de.xima.cmn.dao.exceptions.ReadException
public Boolean isDbConfigured(UserContext uc)
isDbConfigured
in interface ISetupHandler
Boolean
true
wenn die Datenbank bereits konfiguriert ist, sonst false
public boolean createManantWithDependencies(UserContext uc, Mandant mandant, Benutzer ben)
createManantWithDependencies
in interface ISetupHandler
uc
- UserContext
der Benutzerkontext in welchem die Aktion durchgeführt werden solltrue
wenn der Mandant samt der initialen Konfiguration erfolgreich angelegt werden konnte. @ Fehler
beim AnlegenCopyright © 2018 XIMA MEDIA GmbH. All rights reserved.