Package com.flowable.platform.tenant
Interface TenantSetupBuilder
- All Known Implementing Classes:
TenantSetupBuilderImpl
public interface TenantSetupBuilder
- Author:
- Filip Hrisafov, Joram Barrez
-
Method Summary
Modifier and Type Method Description TenantSetupBuilderaddClasspathResource(java.lang.String resource)Adds a tenant json file from the classpath to this builder.TenantSetupBuilderaddInputStream(java.lang.String resourceName, java.io.InputStream inputStream)Adds a tenant json file to this builder.TenantSetupBuilderapplyOnExistingData(boolean applyOnExistingData)Configures whether the users and groups only should be created when there are no user or groups for that tenant.TenantSetupBuilderenableMultiTenancy()Enables deploying multiple tenant files.TenantSetupsetup()Actually sets up the tenant by creating all users, groups, etc.
-
Method Details
-
enableMultiTenancy
TenantSetupBuilder enableMultiTenancy()Enables deploying multiple tenant files. False by default. -
addInputStream
Adds a tenant json file to this builder. -
addClasspathResource
Adds a tenant json file from the classpath to this builder. -
applyOnExistingData
Configures whether the users and groups only should be created when there are no user or groups for that tenant. The default is false. If set to true , all users and groups defined in the tenant file will simply be created. -
setup
TenantSetup setup()Actually sets up the tenant by creating all users, groups, etc.- Returns:
- An overview of the created users and groups, per tenant.
-