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: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-dataadminEmail
- email address of the new client admindefaultData
-IClientCreateData
the default data to use while creating the clientcreator
- the user that is creating the client (needed for protocol purposes)- Returns:
Mandant
the created client
-
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
-
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)
-
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
-
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
-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
-
createClient
@Deprecated public Mandant createClient(IEntityContext ec, Mandant client, MandantMailData mailData, MandantLdapData ldapData, Benutzer defaultUser, IClientCreateData defaultData)
Deprecated.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
-
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
-
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
-
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
-
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
-
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
@Deprecated protected Benutzer createUser(IEntityContext ec, Mandant client, Benutzer user, Rolle role)
Deprecated.- 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
-
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
-IEntityContext
the entity-contextdefaultData
-IClientCreateData
the client-create-dataclient
-Mandant
the client to create the modules for- Returns:
List
ofModul
-
createLdapData
@Deprecated protected MandantLdapData createLdapData(IEntityContext ec, MandantLdapData ldapData, Mandant client)
Deprecated.UsecreateLdapData(IEntityContext, LDAPZugriff, Mandant)
instead.- Parameters:
ec
-IEntityContext
the entity-contextldapData
-MandantLdapData
to createclient
-Mandant
the client to create the ldap-data for- Returns:
- the created
MandantLdapData
-
-