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.CommandExecutor
protected String
protected Collection
<String> protected final String
protected 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.ChangeTenantIdResult
complete()
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.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) 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) protected ActionManagementService
getActionManagementService
(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) protected AuditManagementService
getAuditManagementService
(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) protected org.flowable.cmmn.api.CmmnManagementService
getCmmnManagementService
(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) protected org.flowable.content.api.ContentManagementService
getContentManagementService
(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) protected DataObjectManagementService
getDataObjectManagementService
(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) protected org.flowable.dmn.api.DmnManagementService
getDmnManagementService
(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) protected org.flowable.form.api.FormManagementService
getFormManagementService
(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) protected org.flowable.engine.ManagementService
getProcessManagementService
(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) protected void
populateMapFromResult
(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.ChangeTenantIdResult
simulate()
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: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
public org.flowable.common.engine.api.tenant.ChangeTenantIdResult 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
public org.flowable.common.engine.api.tenant.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 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
-