Package com.flowable.platform.tenant
Class TenantBootstrapper
java.lang.Object
com.flowable.platform.tenant.TenantBootstrapper
- All Implemented Interfaces:
java.util.EventListener
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
,org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
,org.springframework.core.Ordered
public class TenantBootstrapper
extends java.lang.Object
implements org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>, org.springframework.core.Ordered
-
Field Summary
Fields Modifier and Type Field Description protected org.springframework.context.ApplicationContext
applicationContext
protected org.springframework.core.io.Resource[]
customTenantDocumentResources
static int
DEFAULT_ORDER
protected org.springframework.core.io.Resource[]
defaultTenantDocumentResources
protected org.springframework.core.io.Resource[]
minimalTenantDocumentResources
protected boolean
multiTenantEnabled
protected com.fasterxml.jackson.databind.ObjectMapper
objectMapper
protected int
order
protected com.flowable.core.idm.api.PlatformIdentityService
platformIdentityService
protected TenantSetupService
tenantSetupService
-
Constructor Summary
Constructors Constructor Description TenantBootstrapper(boolean multiTenantEnabled)
-
Method Summary
Modifier and Type Method Description int
getOrder()
void
onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)
void
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
void
setOrder(int order)
-
Field Details
-
DEFAULT_ORDER
public static final int DEFAULT_ORDER- See Also:
- Constant Field Values
-
defaultTenantDocumentResources
@Value("classpath*:/com/flowable/tenant-setup/default/**/*.json") protected org.springframework.core.io.Resource[] defaultTenantDocumentResources -
customTenantDocumentResources
@Value("${flowable.platform.idm.tenant-setup.location:classpath*:/com/flowable/tenant-setup/custom/**/*.json}") protected org.springframework.core.io.Resource[] customTenantDocumentResources -
minimalTenantDocumentResources
@Value("classpath*:/com/flowable/tenant-setup/minimal/**/*.json") protected org.springframework.core.io.Resource[] minimalTenantDocumentResources -
tenantSetupService
-
platformIdentityService
@Autowired protected com.flowable.core.idm.api.PlatformIdentityService platformIdentityService -
objectMapper
@Autowired protected com.fasterxml.jackson.databind.ObjectMapper objectMapper -
multiTenantEnabled
protected boolean multiTenantEnabled -
order
protected int order -
applicationContext
protected org.springframework.context.ApplicationContext applicationContext
-
-
Constructor Details
-
TenantBootstrapper
public TenantBootstrapper(boolean multiTenantEnabled)
-
-
Method Details
-
getOrder
public int getOrder()- Specified by:
getOrder
in interfaceorg.springframework.core.Ordered
-
setOrder
public void setOrder(int order) -
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException- Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
-
onApplicationEvent
public void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)- Specified by:
onApplicationEvent
in interfaceorg.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
-