Class EsiRemoveKeepReferencesService

java.lang.Object
com.nomagic.magicdraw.teamwork2.esi.EsiRemoveKeepReferencesService

@OpenApiAll public class EsiRemoveKeepReferencesService extends Object
A service that is responsible for removing an ESI module with "Keeping References"
  • Constructor Details

    • EsiRemoveKeepReferencesService

      public EsiRemoveKeepReferencesService()
  • Method Details

    • detachModulesKeepAndReferencesOnTask

      public static boolean detachModulesKeepAndReferencesOnTask(Project project, Collection<ModuleUsage> usages)
      Removes usages of modules and keeps references to existing objects from modules.
      Parameters:
      project - a project.
      usages - a collection of usages.
      Returns:
      true the operation was successful.
    • detachModulesKeepAndReferencesOnTask

      public static boolean detachModulesKeepAndReferencesOnTask(Project project, @CheckForNull com.nomagic.ci.persistence.decomposition.IAttachedProjectRemoverCallback removeConfirmation, Collection<ModuleUsage> usages)
      Removes usages of modules and keeps references to existing objects from modules.
      Parameters:
      project - a project.
      usages - a collection of usages.
      removeConfirmation - remove confirmation
      Returns:
      true the operation was successful.
    • detachModulesKeepReferences

      public static void detachModulesKeepReferences(Project project, Collection<ModuleUsage> usages, ProgressStatus monitor) throws Exception
      Removes usages of modules and keeps references to existing objects from modules.
      Parameters:
      project - a project.
      usages - a collection of usages.
      monitor - progress monitor
      Throws:
      Exception