Class PlatformChangeTenantIdBuilderImpl
java.lang.Object
com.flowable.platform.engine.impl.management.PlatformChangeTenantIdBuilderImpl
- All Implemented Interfaces:
PlatformChangeTenantIdBuilder
public class PlatformChangeTenantIdBuilderImpl
extends Object
implements PlatformChangeTenantIdBuilder
- Author:
- Filip Hrisafov
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.flowable.common.engine.impl.interceptor.CommandExecutorprotected Stringprotected Collection<String> protected final Stringprotected final String -
Constructor Summary
ConstructorsConstructorDescriptionPlatformChangeTenantIdBuilderImpl(String sourceTenantId, String targetTenantId, org.flowable.common.engine.impl.interceptor.CommandExecutor commandExecutor) -
Method Summary
Modifier and TypeMethodDescriptionorg.flowable.common.engine.api.tenant.ChangeTenantIdResultcomplete()Executes change in the tenant id, returning the number of instances that were affecteddefinitionTenantId(String definitionTenantId) Perform the change only for instances that were created using a definition from the given tenant.protected org.flowable.common.engine.api.tenant.ChangeTenantIdResultexecuteAction(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, Function<org.flowable.common.engine.api.tenant.ChangeTenantIdBuilder, org.flowable.common.engine.api.tenant.ChangeTenantIdResult> builderAction) protected org.flowable.common.engine.api.tenant.ChangeTenantIdResultexecuteNewBuilderAction(BiFunction<String, String, org.flowable.common.engine.api.tenant.ChangeTenantIdBuilder> newChangeTenantIdBuilderCreator, Function<org.flowable.common.engine.api.tenant.ChangeTenantIdBuilder, org.flowable.common.engine.api.tenant.ChangeTenantIdResult> builderAction) protected ActionManagementServicegetActionManagementService(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) protected AuditManagementServicegetAuditManagementService(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) protected org.flowable.cmmn.api.CmmnManagementServicegetCmmnManagementService(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) protected org.flowable.content.api.ContentManagementServicegetContentManagementService(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) protected DataObjectManagementServicegetDataObjectManagementService(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) protected org.flowable.dmn.api.DmnManagementServicegetDmnManagementService(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) protected org.flowable.form.api.FormManagementServicegetFormManagementService(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) protected org.flowable.engine.ManagementServicegetProcessManagementService(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) protected voidpopulateMapFromResult(Map<String, Long> map, org.flowable.common.engine.api.tenant.ChangeTenantIdResult result) scopeTypes(Collection<String> scopeTypes) Perform the change for the defined engine scope typesorg.flowable.common.engine.api.tenant.ChangeTenantIdResultsimulate()Executes a simulation of the change of tenant id, calculating the number of instances that will be affected
-
Field Details
-
SUPPORTED_SCOPE_TYPES
-
commandExecutor
protected final org.flowable.common.engine.impl.interceptor.CommandExecutor commandExecutor -
sourceTenantId
-
targetTenantId
-
definitionTenantId
-
scopeTypes
-
-
Constructor Details
-
PlatformChangeTenantIdBuilderImpl
-
-
Method Details
-
definitionTenantId
Description copied from interface:PlatformChangeTenantIdBuilderPerform the change only for instances that were created using a definition from the given tenant.- Specified by:
definitionTenantIdin interfacePlatformChangeTenantIdBuilder
-
scopeTypes
Description copied from interface:PlatformChangeTenantIdBuilderPerform the change for the defined engine scope types- Specified by:
scopeTypesin interfacePlatformChangeTenantIdBuilder
-
simulate
public org.flowable.common.engine.api.tenant.ChangeTenantIdResult simulate()Description copied from interface:PlatformChangeTenantIdBuilderExecutes a simulation of the change of tenant id, calculating the number of instances that will be affected- Specified by:
simulatein interfacePlatformChangeTenantIdBuilder- Returns:
ChangeTenantIdResult
-
complete
public org.flowable.common.engine.api.tenant.ChangeTenantIdResult complete()Description copied from interface:PlatformChangeTenantIdBuilderExecutes change in the tenant id, returning the number of instances that were affected- Specified by:
completein interfacePlatformChangeTenantIdBuilder- Returns:
ChangeTenantIdResult
-
executeAction
protected org.flowable.common.engine.api.tenant.ChangeTenantIdResult executeAction(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, Function<org.flowable.common.engine.api.tenant.ChangeTenantIdBuilder, org.flowable.common.engine.api.tenant.ChangeTenantIdResult> builderAction) -
getProcessManagementService
protected org.flowable.engine.ManagementService getProcessManagementService(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) -
getCmmnManagementService
protected org.flowable.cmmn.api.CmmnManagementService getCmmnManagementService(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) -
getDmnManagementService
protected org.flowable.dmn.api.DmnManagementService getDmnManagementService(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) -
getFormManagementService
protected org.flowable.form.api.FormManagementService getFormManagementService(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) -
getContentManagementService
protected org.flowable.content.api.ContentManagementService getContentManagementService(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) -
getDataObjectManagementService
protected DataObjectManagementService getDataObjectManagementService(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) -
getAuditManagementService
protected AuditManagementService getAuditManagementService(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) -
getActionManagementService
protected ActionManagementService getActionManagementService(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) -
executeNewBuilderAction
protected org.flowable.common.engine.api.tenant.ChangeTenantIdResult executeNewBuilderAction(BiFunction<String, String, org.flowable.common.engine.api.tenant.ChangeTenantIdBuilder> newChangeTenantIdBuilderCreator, Function<org.flowable.common.engine.api.tenant.ChangeTenantIdBuilder, org.flowable.common.engine.api.tenant.ChangeTenantIdResult> builderAction) -
populateMapFromResult
-