Package de.xima.fc.handler.system
Class SetupHandler
- java.lang.Object
-
- de.xima.fc.handler.AMSApiHandler
-
- de.xima.fc.handler.system.SetupHandler
-
- All Implemented Interfaces:
IAPIHandler
,ISetupHandler
,Serializable
public class SetupHandler extends AMSApiHandler implements ISetupHandler
The Class SetupHandler.- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SetupHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
createManantWithDependencies(UserContext uc, Mandant mandant, MandantMailData mailData, MandantLdapData ldapData, Benutzer ben)
Methode zum Anlegen eines Mandanten mit der initialen Konfiguration, analog zum Setup-ProzessList<XLogAppender>
getAvailableLogAppenders()
FCMessage
invokeLiquibaseProzess(UserContext uc, ELiquibaseCmd lbCmd)
Deprecated.Use FormcycleUpdate instead.Boolean
isDbConfigured(UserContext uc)
Methode zum Testen ob die Datenbank konfigureiert wurdeBoolean
isDbRunning()
Checks whether the database is running or notBoolean
isDbUpToDate()
Checks whether the database is up to dateBoolean
testConnection(UserContext uc, DBConnectionData db)
Test connection.-
Methods inherited from class de.xima.fc.handler.AMSApiHandler
getName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.xima.fc.com.interfaces.IAPIHandler
getName
-
-
-
-
Method Detail
-
invokeLiquibaseProzess
@Deprecated public FCMessage invokeLiquibaseProzess(UserContext uc, ELiquibaseCmd lbCmd) throws de.xima.cmn.dao.exceptions.UpdateException
Deprecated.Use FormcycleUpdate instead.Description copied from interface:ISetupHandler
Invoke liquibase prozess.- Specified by:
invokeLiquibaseProzess
in interfaceISetupHandler
- Parameters:
uc
- theUserContext
to uselbCmd
- the lb cmd- Returns:
FCMessage
with errors or info messages- Throws:
de.xima.cmn.dao.exceptions.UpdateException
-
testConnection
public Boolean testConnection(UserContext uc, DBConnectionData db) throws de.xima.cmn.dao.exceptions.ReadException
Description copied from interface:ISetupHandler
Test connection.- Specified by:
testConnection
in interfaceISetupHandler
db
- the db- Returns:
true
wenn die Verbindung hergestellt werden konnte @- Throws:
de.xima.cmn.dao.exceptions.ReadException
-
isDbConfigured
public Boolean isDbConfigured(UserContext uc)
Description copied from interface:ISetupHandler
Methode zum Testen ob die Datenbank konfigureiert wurde- Specified by:
isDbConfigured
in interfaceISetupHandler
- Returns:
Boolean
true
wenn die Datenbank bereits konfiguriert ist, sonstfalse
-
isDbUpToDate
public Boolean isDbUpToDate()
Description copied from interface:ISetupHandler
Checks whether the database is up to date- Specified by:
isDbUpToDate
in interfaceISetupHandler
- Returns:
Boolean
whether the database is up to date or not
-
isDbRunning
public Boolean isDbRunning()
Description copied from interface:ISetupHandler
Checks whether the database is running or not- Specified by:
isDbRunning
in interfaceISetupHandler
- Returns:
Boolean
whether the database is running or not
-
createManantWithDependencies
public boolean createManantWithDependencies(UserContext uc, Mandant mandant, MandantMailData mailData, MandantLdapData ldapData, Benutzer ben)
Description copied from interface:ISetupHandler
Methode zum Anlegen eines Mandanten mit der initialen Konfiguration, analog zum Setup-Prozess- Specified by:
createManantWithDependencies
in interfaceISetupHandler
- Parameters:
uc
-UserContext
der Benutzerkontext in welchem die Aktion durchgeführt werden sollmandant
- the clientmailData
- the mail data of the clientldapData
- the LDAP data of the clientben
- the initial user to create- Returns:
true
wenn der Mandant samt der initialen Konfiguration erfolgreich angelegt werden konnte. @ Fehler beim Anlegen
-
getAvailableLogAppenders
public List<XLogAppender> getAvailableLogAppenders()
- Specified by:
getAvailableLogAppenders
in interfaceISetupHandler
-
-