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 CommandExecutorprotected Stringprotected Collection<String>protected final Stringprotected final String -
Constructor Summary
ConstructorsConstructorDescriptionPlatformChangeTenantIdBuilderImpl(String sourceTenantId, String targetTenantId, CommandExecutor commandExecutor) -
Method Summary
Modifier and TypeMethodDescriptioncomplete()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 ChangeTenantIdResultexecuteAction(CommandContext commandContext, Function<ChangeTenantIdBuilder, ChangeTenantIdResult> builderAction) protected ChangeTenantIdResultexecuteNewBuilderAction(BiFunction<String, String, ChangeTenantIdBuilder> newChangeTenantIdBuilderCreator, Function<ChangeTenantIdBuilder, ChangeTenantIdResult> builderAction) protected ActionManagementServicegetActionManagementService(CommandContext commandContext) protected AuditManagementServicegetAuditManagementService(CommandContext commandContext) protected CmmnManagementServicegetCmmnManagementService(CommandContext commandContext) protected ContentManagementServicegetContentManagementService(CommandContext commandContext) protected DataObjectManagementServicegetDataObjectManagementService(CommandContext commandContext) protected DmnManagementServicegetDmnManagementService(CommandContext commandContext) protected FormManagementServicegetFormManagementService(CommandContext commandContext) protected ManagementServicegetProcessManagementService(CommandContext commandContext) protected voidpopulateMapFromResult(Map<String, Long> map, ChangeTenantIdResult result) scopeTypes(Collection<String> scopeTypes) Perform the change for the defined engine scope typessimulate()Executes a simulation of the change of tenant id, calculating the number of instances that will be affected
-
Field Details
-
SUPPORTED_SCOPE_TYPES
-
commandExecutor
-
sourceTenantId
-
targetTenantId
-
definitionTenantId
-
scopeTypes
-
-
Constructor Details
-
PlatformChangeTenantIdBuilderImpl
public PlatformChangeTenantIdBuilderImpl(String sourceTenantId, String targetTenantId, CommandExecutor commandExecutor)
-
-
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
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
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 ChangeTenantIdResult executeAction(CommandContext commandContext, Function<ChangeTenantIdBuilder, ChangeTenantIdResult> builderAction) -
getProcessManagementService
-
getCmmnManagementService
-
getDmnManagementService
-
getFormManagementService
-
getContentManagementService
-
getDataObjectManagementService
-
getAuditManagementService
-
getActionManagementService
-
executeNewBuilderAction
protected ChangeTenantIdResult executeNewBuilderAction(BiFunction<String, String, ChangeTenantIdBuilder> newChangeTenantIdBuilderCreator, Function<ChangeTenantIdBuilder, ChangeTenantIdResult> builderAction) -
populateMapFromResult
-