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 booleancreateManantWithDependencies(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()FCMessageinvokeLiquibaseProzess(UserContext uc, ELiquibaseCmd lbCmd)Deprecated.Use FormcycleUpdate instead.BooleanisDbConfigured(UserContext uc)Methode zum Testen ob die Datenbank konfigureiert wurdeBooleanisDbRunning()Checks whether the database is running or notBooleanisDbUpToDate()Checks whether the database is up to dateBooleantestConnection(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:ISetupHandlerInvoke liquibase prozess.- Specified by:
invokeLiquibaseProzessin interfaceISetupHandler- Parameters:
uc- theUserContextto uselbCmd- the lb cmd- Returns:
FCMessagewith 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:ISetupHandlerTest connection.- Specified by:
testConnectionin interfaceISetupHandlerdb- the db- Returns:
truewenn die Verbindung hergestellt werden konnte @- Throws:
de.xima.cmn.dao.exceptions.ReadException
-
isDbConfigured
public Boolean isDbConfigured(UserContext uc)
Description copied from interface:ISetupHandlerMethode zum Testen ob die Datenbank konfigureiert wurde- Specified by:
isDbConfiguredin interfaceISetupHandler- Returns:
Booleantruewenn die Datenbank bereits konfiguriert ist, sonstfalse
-
isDbUpToDate
public Boolean isDbUpToDate()
Description copied from interface:ISetupHandlerChecks whether the database is up to date- Specified by:
isDbUpToDatein interfaceISetupHandler- Returns:
Booleanwhether the database is up to date or not
-
isDbRunning
public Boolean isDbRunning()
Description copied from interface:ISetupHandlerChecks whether the database is running or not- Specified by:
isDbRunningin interfaceISetupHandler- Returns:
Booleanwhether the database is running or not
-
createManantWithDependencies
public boolean createManantWithDependencies(UserContext uc, Mandant mandant, MandantMailData mailData, MandantLdapData ldapData, Benutzer ben)
Description copied from interface:ISetupHandlerMethode zum Anlegen eines Mandanten mit der initialen Konfiguration, analog zum Setup-Prozess- Specified by:
createManantWithDependenciesin interfaceISetupHandler- Parameters:
uc-UserContextder 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:
truewenn der Mandant samt der initialen Konfiguration erfolgreich angelegt werden konnte. @ Fehler beim Anlegen
-
getAvailableLogAppenders
public List<XLogAppender> getAvailableLogAppenders()
- Specified by:
getAvailableLogAppendersin interfaceISetupHandler
-
-