public class OneInitializer extends Object
Initializes the application by setting up new tenants, and by updating the persisted data of the already existing tenants.
New tenants and their sub-entities are created based on the configured JSON resource files. The persisted data of the existing tenants is updated through the configured patch service.
| Modifier and Type | Field and Description | 
|---|---|
static String | 
INIT_COMMENT  | 
| Constructor and Description | 
|---|
OneInitializer()  | 
| Modifier and Type | Method and Description | 
|---|---|
List<SystemDefinitionProvider> | 
getSystemDefinitionProviders()  | 
List<PersistedSetup<TenantSetup>> | 
init(String comment)
Runs the application data initialization. 
 | 
void | 
setAdditionalTenantInitializers(List<Runnable> additionalTenantInitializers)  | 
void | 
setSystemApp(org.springframework.core.io.Resource systemApp)  | 
void | 
setSystemDefinitionProviders(List<SystemDefinitionProvider> systemDefinitionProviders)  | 
void | 
setTenantResources(org.springframework.core.io.Resource[] tenantResources)  | 
PersistedSetup<TenantSetup> | 
setupTenant(org.springframework.core.io.Resource tenantResource)
Initializes a given tenant by its tenant JSON definition. 
 | 
public static final String INIT_COMMENT
public List<PersistedSetup<TenantSetup>> init(String comment)
Runs the application data initialization.
comment - a comment to be added to the audit log for any entities that are createdpublic PersistedSetup<TenantSetup> setupTenant(org.springframework.core.io.Resource tenantResource)
Initializes a given tenant by its tenant JSON definition. Must be called without a current user as the initialization is executed without any user context.
tenantResource - the specified tenant resource JSONpublic void setTenantResources(org.springframework.core.io.Resource[] tenantResources)
public void setSystemDefinitionProviders(List<SystemDefinitionProvider> systemDefinitionProviders)
public void setAdditionalTenantInitializers(List<Runnable> additionalTenantInitializers)
public void setSystemApp(org.springframework.core.io.Resource systemApp)
public List<SystemDefinitionProvider> getSystemDefinitionProviders()
Copyright © 2010 - 2018 edorasware ag. All Rights Reserved.