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
Modifier and TypeFieldDescriptionprotected final CommandExecutor
protected String
protected Collection<String>
protected final String
protected final String
-
Constructor Summary
ConstructorDescriptionPlatformChangeTenantIdBuilderImpl
(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 ChangeTenantIdResult
executeAction
(CommandContext commandContext, Function<ChangeTenantIdBuilder, ChangeTenantIdResult> builderAction) protected ChangeTenantIdResult
executeNewBuilderAction
(BiFunction<String, String, ChangeTenantIdBuilder> newChangeTenantIdBuilderCreator, Function<ChangeTenantIdBuilder, ChangeTenantIdResult> builderAction) protected ActionManagementService
getActionManagementService
(CommandContext commandContext) protected AuditManagementService
getAuditManagementService
(CommandContext commandContext) protected CmmnManagementService
getCmmnManagementService
(CommandContext commandContext) protected ContentManagementService
getContentManagementService
(CommandContext commandContext) protected DataObjectManagementService
getDataObjectManagementService
(CommandContext commandContext) protected DmnManagementService
getDmnManagementService
(CommandContext commandContext) protected FormManagementService
getFormManagementService
(CommandContext commandContext) protected ManagementService
getProcessManagementService
(CommandContext commandContext) protected void
populateMapFromResult
(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:PlatformChangeTenantIdBuilder
Perform the change only for instances that were created using a definition from the given tenant.- Specified by:
definitionTenantId
in interfacePlatformChangeTenantIdBuilder
-
scopeTypes
Description copied from interface:PlatformChangeTenantIdBuilder
Perform the change for the defined engine scope types- Specified by:
scopeTypes
in interfacePlatformChangeTenantIdBuilder
-
simulate
Description copied from interface:PlatformChangeTenantIdBuilder
Executes a simulation of the change of tenant id, calculating the number of instances that will be affected- Specified by:
simulate
in interfacePlatformChangeTenantIdBuilder
- Returns:
ChangeTenantIdResult
-
complete
Description copied from interface:PlatformChangeTenantIdBuilder
Executes change in the tenant id, returning the number of instances that were affected- Specified by:
complete
in 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
-