Package de.xima.fc.setup
Class DefaultClientCreator
- java.lang.Object
 - 
- de.xima.fc.setup.DefaultClientCreator
 
 
- 
- All Implemented Interfaces:
 IClientCreator
- Direct Known Subclasses:
 DefaultMandantCreator
public class DefaultClientCreator extends Object implements IClientCreator
Default-implementation for creating clients- Author:
 - XIMA MEDIA GmbH
 
 
- 
- 
Constructor Summary
Constructors Constructor Description DefaultClientCreator() 
- 
Method Summary
- 
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.setup.interfaces.IClientCreator
createMandant 
 - 
 
 - 
 
- 
- 
Method Detail
- 
createClient
public Mandant createClient(IEntityContext ec, Mandant client, MandantMailData mailData, String adminEmail, IClientCreateData defaultData, IUser creator)
Description copied from interface:IClientCreatorMethod to create an client with the given data. Default: CallsIClientCreator.createMandant(IEntityContext, Mandant, Benutzer, IClientCreateData)for compatibility-reasons.- Specified by:
 createClientin interfaceIClientCreator- Parameters:
 ec- theIEntityContextfor database-transactionsclient-Mandantthe client to createmailData-MandantMailDatathe clients mail-server-dataadminEmail- email address of the new client admindefaultData-IClientCreateDatathe default data to use while creating the clientcreator- the user that is creating the client (needed for protocol purposes)- Returns:
 Mandantthe created client
 
- 
createMailData
protected MandantMailData createMailData(IEntityContext ec, MandantMailData mailData, Mandant client)
- Parameters:
 ec-IEntityContextthe entity-contextmailData-MandantMailDatato createclient-Mandantthe client to create the mail-data for- Returns:
 - the created 
MandantMailData 
 
- 
createTemplates
protected List<Textbaustein> createTemplates(IEntityContext ec, IClientCreateData defaultData, Locale installLocale, Mandant client)
- Parameters:
 ec-IEntityContextthe entity-contextdefaultData-IClientCreateDatathe client-create-datainstallLocale-Localethe locale to create the templates withclient-Mandantthe client to create the templates for- Returns:
 Listof the createdTextbaustein
 
- 
createI18nTemplate
public Textbaustein createI18nTemplate(IEntityContext ec, Locale installLocale, Mandant client)
 
- 
createUsergroups
protected List<BenutzerGruppe> createUsergroups(IEntityContext ec, IClientCreateData defaultData, Locale installLocale, Mandant client)
- Parameters:
 ec-IEntityContextthe entity-contextdefaultData-IClientCreateDatathe client-create-datainstallLocale-Localethe locale to create the user-groups withclient-Mandantthe client to create the user-groups for- Returns:
 Listof the createdBenutzerGruppe
 
- 
createClientAdminRole
protected Rolle createClientAdminRole(IEntityContext ec, IClientCreateData defaultData, Locale installLocale, Mandant client)
 
- 
createNonAdminRoles
protected List<Rolle> createNonAdminRoles(IEntityContext ec, IClientCreateData defaultData, Locale installLocale, Mandant client, Set<String> moduleNames)
 
- 
createInboxes
protected List<Postfach> createInboxes(IEntityContext ec, IClientCreateData defaultData, Locale installLocale, Mandant client)
- Parameters:
 ec-IEntityContextthe entity-contextdefaultData-IClientCreateDatathe client-create-datainstallLocale-Localethe locale to create the inboxes withclient-Mandantthe client to create the inboxes for- Returns:
 Listof the createdPostfach
 
- 
createClient
@Deprecated public Mandant createClient(IEntityContext ec, Mandant client, MandantMailData mailData, MandantLdapData ldapData, Benutzer defaultUser, IClientCreateData defaultData)
Deprecated.Description copied from interface:IClientCreatorMethod to create an client with the given data. Default: CallsIClientCreator.createMandant(IEntityContext, Mandant, Benutzer, IClientCreateData)for compatibility-reasons.- Specified by:
 createClientin interfaceIClientCreator- Parameters:
 ec- theIEntityContextfor database-transactionsclient-Mandantthe client to createmailData-MandantMailDatathe clients mail-server-dataldapData-MandantLdapDatathe clients ldap-server-datadefaultUser-Benutzerthe clients admin-userdefaultData-IClientCreateDatathe default data to use while creating the client- Returns:
 Mandantthe created client
 
- 
createBenutzergruppen
@Deprecated public List<BenutzerGruppe> createBenutzergruppen(IEntityContext ec, IClientCreateData defaultData, Locale installLocale, Mandant client)
Deprecated.will be removed. Use createUsergroups to override default- Parameters:
 ec-IEntityContextdefaultData-IClientCreateDatainstallLocale-Localeclient-Mandant- Returns:
 Listof the createdBenutzerGruppe
 
- 
createMandantAdminRolle
@Deprecated public Rolle createMandantAdminRolle(IEntityContext ec, IClientCreateData defaultData, Locale installLocale, Mandant client, List<Modul> modules)
Deprecated.will be removed. Use createClientAdminRole to override default- Parameters:
 ec-IEntityContextdefaultData-IClientCreateDatainstallLocale-Localeclient-Mandantmodules-ListofModul- Returns:
 - the created admin-
Rolle 
 
- 
createNoneAdminRollen
@Deprecated public List<Rolle> createNoneAdminRollen(IEntityContext ec, IClientCreateData defaultData, Locale installLocale, Mandant client, List<Modul> modules)
Deprecated.will be removed. Use createNoneAdminRoles to override default.- Parameters:
 ec-IEntityContextdefaultData-IClientCreateDatainstallLocale-Localeclient-Mandantmodules-ListofModul- Returns:
 ListofRolle
 
- 
createPostfaecher
@Deprecated public List<Postfach> createPostfaecher(IEntityContext ec, IClientCreateData defaultData, Locale installLocale, Mandant client)
Deprecated.will be removed. Use createInboxes to override default.- Parameters:
 ec-IEntityContextdefaultData-IClientCreateDatainstallLocale-Localeclient-Mandant- Returns:
 ListofPostfach
 
- 
createBenutzer
@Deprecated protected Benutzer createBenutzer(IEntityContext ec, Mandant client, Benutzer user, Rolle role)
Deprecated.- Parameters:
 ec-IEntityContextclient-Mandantuser-Benutzerrole-Rolle- Returns:
 - the created 
Benutzer 
 
- 
createUser
@Deprecated protected Benutzer createUser(IEntityContext ec, Mandant client, Benutzer user, Rolle role)
Deprecated.- Parameters:
 ec-IEntityContextthe entity-contextclient-Mandantthe client to create the templates foruser-Benutzerto createrole-Rolleto create the user with- Returns:
 Benutzerthe created user
 
- 
createTextbausteine
@Deprecated protected List<Textbaustein> createTextbausteine(IEntityContext ec, IClientCreateData defaultData, Locale installLocale, Mandant client)
- Parameters:
 ec-IEntityContextdefaultData-IClientCreateDatainstallLocale-Localeclient-Mandant- Returns:
 ListofTextbaustein
 
- 
createClientAdminRole
@Deprecated protected Rolle createClientAdminRole(IEntityContext ec, IClientCreateData defaultData, Locale installLocale, Mandant client, List<Modul> modules)
Deprecated. 
- 
createNoneAdminRoles
@Deprecated protected List<Rolle> createNoneAdminRoles(IEntityContext ec, IClientCreateData defaultData, Locale installLocale, Mandant client, List<Modul> modules)
Deprecated. 
- 
createModules
@Deprecated protected List<Modul> createModules(IEntityContext ec, IClientCreateData defaultData, Mandant client)
Deprecated.Table no longer exists.- Parameters:
 ec-IEntityContextthe entity-contextdefaultData-IClientCreateDatathe client-create-dataclient-Mandantthe client to create the modules for- Returns:
 ListofModul
 
- 
createLdapData
@Deprecated protected MandantLdapData createLdapData(IEntityContext ec, MandantLdapData ldapData, Mandant client)
Deprecated.UsecreateLdapData(IEntityContext, LDAPZugriff, Mandant)instead.- Parameters:
 ec-IEntityContextthe entity-contextldapData-MandantLdapDatato createclient-Mandantthe client to create the ldap-data for- Returns:
 - the created 
MandantLdapData 
 
 - 
 
 -