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.ApplicationContextapplicationContextprotected org.springframework.core.io.Resource[]customTenantDocumentResourcesstatic intDEFAULT_ORDERprotected org.springframework.core.io.Resource[]defaultTenantDocumentResourcesprotected org.springframework.core.io.Resource[]minimalTenantDocumentResourcesprotected booleanmultiTenantEnabledprotected com.fasterxml.jackson.databind.ObjectMapperobjectMapperprotected intorderprotected com.flowable.core.idm.api.PlatformIdentityServiceplatformIdentityServiceprotected TenantSetupServicetenantSetupService -
Constructor Summary
Constructors Constructor Description TenantBootstrapper(boolean multiTenantEnabled) -
Method Summary
Modifier and Type Method Description intgetOrder()voidonApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)voidsetOrder(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:
getOrderin 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:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
onApplicationEvent
public void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)- Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
-