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, MandantLdapData ldapData, Benutzer defaultUser, IClientCreateData defaultData)
Description copied from interface:IClientCreator
Method to create an client with the given data. Default: CallsIClientCreator.createMandant(IEntityContext, Mandant, Benutzer, IClientCreateData)
for compatibility-reasons.- Specified by:
createClient
in interfaceIClientCreator
- Parameters:
ec
- theIEntityContext
for database-transactionsclient
-Mandant
the client to createmailData
-MandantMailData
the clients mail-server-dataldapData
-MandantLdapData
the clients ldap-server-datadefaultUser
-Benutzer
the clients admin-userdefaultData
-IClientCreateData
the default data to use while creating the client- Returns:
Mandant
the created client
-
createLdapData
protected MandantLdapData createLdapData(IEntityContext ec, MandantLdapData ldapData, Mandant client)
- Parameters:
ec
-IEntityContext
the entity-contextmailData
-MandantLdapData
to createclient
-Mandant
the client to create the ldap-data for- Returns:
- the created
MandantLdapData
-
createMailData
protected MandantMailData createMailData(IEntityContext ec, MandantMailData mailData, Mandant client)
- Parameters:
ec
-IEntityContext
the entity-contextmailData
-MandantMailData
to createclient
-Mandant
the client to create the mail-data for- Returns:
- the created
MandantMailData
-
createBenutzer
@Deprecated protected Benutzer createBenutzer(IEntityContext ec, Mandant client, Benutzer user, Rolle role)
Deprecated.- Parameters:
ec
-IEntityContext
client
-Mandant
user
-Benutzer
role
-Rolle
- Returns:
- the created
Benutzer
-
createUser
protected Benutzer createUser(IEntityContext ec, Mandant client, Benutzer user, Rolle role)
- Parameters:
ec
-IEntityContext
the entity-contextclient
-Mandant
the client to create the templates foruser
-Benutzer
to createrole
-Rolle
to create the user with- Returns:
Benutzer
the created user
-
createTextbausteine
@Deprecated protected List<Textbaustein> createTextbausteine(IEntityContext ec, IClientCreateData defaultData, Locale installLocale, Mandant client)
- Parameters:
ec
-IEntityContext
defaultData
-IClientCreateData
installLocale
-Locale
client
-Mandant
- Returns:
List
ofTextbaustein
-
createTemplates
protected List<Textbaustein> createTemplates(IEntityContext ec, IClientCreateData defaultData, Locale installLocale, Mandant client)
- Parameters:
ec
-IEntityContext
the entity-contextdefaultData
-IClientCreateData
the client-create-datainstallLocale
-Locale
the locale to create the templates withclient
-Mandant
the client to create the templates for- Returns:
List
of the createdTextbaustein
-
createI18nTemplate
public Textbaustein createI18nTemplate(IEntityContext ec, Locale installLocale, Mandant 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
-IEntityContext
defaultData
-IClientCreateData
installLocale
-Locale
client
-Mandant
- Returns:
List
of the createdBenutzerGruppe
-
createUsergroups
protected List<BenutzerGruppe> createUsergroups(IEntityContext ec, IClientCreateData defaultData, Locale installLocale, Mandant client)
- Parameters:
ec
-IEntityContext
the entity-contextdefaultData
-IClientCreateData
the client-create-datainstallLocale
-Locale
the locale to create the user-groups withclient
-Mandant
the client to create the user-groups for- Returns:
List
of 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
-IEntityContext
defaultData
-IClientCreateData
installLocale
-Locale
client
-Mandant
modules
-List
ofModul
- Returns:
- the created admin-
Rolle
-
createClientAdminRole
protected Rolle createClientAdminRole(IEntityContext ec, IClientCreateData defaultData, Locale installLocale, Mandant client, List<Modul> modules)
- Parameters:
ec
-IEntityContext
defaultData
-IClientCreateData
installLocale
-Locale
client
-Mandant
modules
-List
ofModul
- 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
-IEntityContext
defaultData
-IClientCreateData
installLocale
-Locale
client
-Mandant
modules
-List
ofModul
- Returns:
List
ofRolle
-
createNoneAdminRoles
protected List<Rolle> createNoneAdminRoles(IEntityContext ec, IClientCreateData defaultData, Locale installLocale, Mandant client, List<Modul> modules)
- Parameters:
ec
-IEntityContext
the entity-contextdefaultData
-IClientCreateData
the client-create-datainstallLocale
-Locale
the locale to create the roles withclient
-Mandant
the client to create the roles formodules
-List
ofModul
for the roles to create- Returns:
List
of the createdRolle
-
createModules
protected List<Modul> createModules(IEntityContext ec, IClientCreateData defaultData, Mandant client)
- Parameters:
ec
-IEntityContext
the entity-contextdefaultData
-IClientCreateData
the client-create-dataclient
-Mandant
the client to create the modules for- Returns:
List
ofModul
-
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
-IEntityContext
defaultData
-IClientCreateData
installLocale
-Locale
client
-Mandant
- Returns:
List
ofPostfach
-
createInboxes
protected List<Postfach> createInboxes(IEntityContext ec, IClientCreateData defaultData, Locale installLocale, Mandant client)
- Parameters:
ec
-IEntityContext
the entity-contextdefaultData
-IClientCreateData
the client-create-datainstallLocale
-Locale
the locale to create the inboxes withclient
-Mandant
the client to create the inboxes for- Returns:
List
of the createdPostfach
-
-