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)Deprecated.booleancreateManantWithDependencies(UserContext uc, Mandant mandant, MandantMailData mailData, String adminEmail, IUser creator)Methode zum Anlegen eines Mandanten mit der initialen Konfiguration, analog zum Setup-ProzessList<XLogAppender>getAvailableLogAppenders()Deprecated.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 dateBooleanisUpdateNeeded()Checks whether there are updated that have not been executed yet.BooleantestConnection(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
 
- 
isUpdateNeeded
public Boolean isUpdateNeeded()
Description copied from interface:ISetupHandlerChecks whether there are updated that have not been executed yet.- Specified by:
 isUpdateNeededin interfaceISetupHandler- Returns:
 Booleanwhether there are unperformed updates.
 
- 
createManantWithDependencies
public boolean createManantWithDependencies(UserContext uc, Mandant mandant, MandantMailData mailData, String adminEmail, IUser creator)
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 clientadminEmail- email address of the new client admincreator- the user that is creating the client- Returns:
 truewenn der Mandant samt der initialen Konfiguration erfolgreich angelegt werden konnte. @ Fehler beim Anlegen
 
- 
getAvailableLogAppenders
@Deprecated public List<XLogAppender> getAvailableLogAppenders()
Deprecated.- Specified by:
 getAvailableLogAppendersin interfaceISetupHandler
 
- 
createManantWithDependencies
@Deprecated public boolean createManantWithDependencies(UserContext uc, Mandant mandant, MandantMailData mailData, MandantLdapData ldapData, Benutzer ben)
Deprecated.- 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
 
 - 
 
 -