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
Fields Modifier and Type Field Description protected CommandExecutor
commandExecutor
protected String
definitionTenantId
protected Collection<String>
scopeTypes
protected String
sourceTenantId
protected static Set<String>
SUPPORTED_SCOPE_TYPES
protected String
targetTenantId
-
Constructor Summary
Constructors Constructor Description PlatformChangeTenantIdBuilderImpl(String sourceTenantId, String targetTenantId, CommandExecutor commandExecutor)
-
Method Summary
-
-
-
Field Detail
-
commandExecutor
protected final CommandExecutor commandExecutor
-
sourceTenantId
protected final String sourceTenantId
-
targetTenantId
protected final String targetTenantId
-
definitionTenantId
protected String definitionTenantId
-
scopeTypes
protected Collection<String> scopeTypes
-
-
Constructor Detail
-
PlatformChangeTenantIdBuilderImpl
public PlatformChangeTenantIdBuilderImpl(String sourceTenantId, String targetTenantId, CommandExecutor commandExecutor)
-
-
Method Detail
-
definitionTenantId
public PlatformChangeTenantIdBuilder definitionTenantId(String 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
public PlatformChangeTenantIdBuilder scopeTypes(Collection<String> scopeTypes)
Description copied from interface:PlatformChangeTenantIdBuilder
Perform the change for the defined engine scope types- Specified by:
scopeTypes
in interfacePlatformChangeTenantIdBuilder
-
simulate
public 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 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
protected ManagementService getProcessManagementService(CommandContext commandContext)
-
getCmmnManagementService
protected CmmnManagementService getCmmnManagementService(CommandContext commandContext)
-
getDmnManagementService
protected DmnManagementService getDmnManagementService(CommandContext commandContext)
-
getFormManagementService
protected FormManagementService getFormManagementService(CommandContext commandContext)
-
getContentManagementService
protected ContentManagementService getContentManagementService(CommandContext commandContext)
-
getDataObjectManagementService
protected DataObjectManagementService getDataObjectManagementService(CommandContext commandContext)
-
getAuditManagementService
protected AuditManagementService getAuditManagementService(CommandContext commandContext)
-
getActionManagementService
protected ActionManagementService getActionManagementService(CommandContext commandContext)
-
executeNewBuilderAction
protected ChangeTenantIdResult executeNewBuilderAction(BiFunction<String,String,ChangeTenantIdBuilder> newChangeTenantIdBuilderCreator, Function<ChangeTenantIdBuilder,ChangeTenantIdResult> builderAction)
-
populateMapFromResult
protected void populateMapFromResult(Map<String,Long> map, ChangeTenantIdResult result)
-
-