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 Details

    • SUPPORTED_SCOPE_TYPES

      protected static final Set<String> SUPPORTED_SCOPE_TYPES
    • commandExecutor

      protected final org.flowable.common.engine.impl.interceptor.CommandExecutor commandExecutor
    • sourceTenantId

      protected final String sourceTenantId
    • targetTenantId

      protected final String targetTenantId
    • definitionTenantId

      protected String definitionTenantId
    • scopeTypes

      protected Collection<String> scopeTypes
  • Constructor Details

    • PlatformChangeTenantIdBuilderImpl

      public PlatformChangeTenantIdBuilderImpl(String sourceTenantId, String targetTenantId, org.flowable.common.engine.impl.interceptor.CommandExecutor commandExecutor)
  • Method Details

    • 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 interface PlatformChangeTenantIdBuilder
    • 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 interface PlatformChangeTenantIdBuilder
    • 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 interface PlatformChangeTenantIdBuilder
      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 interface PlatformChangeTenantIdBuilder
      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

      protected void populateMapFromResult(Map<String,Long> map, org.flowable.common.engine.api.tenant.ChangeTenantIdResult result)