Class EsiRemoveKeepReferencesService


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

      • EsiRemoveKeepReferencesService

        public EsiRemoveKeepReferencesService()
    • Method Detail

      • detachModulesKeepAndReferencesOnTask

        public static boolean detachModulesKeepAndReferencesOnTask​(Project project,
                                                                   java.util.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
                                                                   IAttachedProjectRemoverCallback removeConfirmation,
                                                                   java.util.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,
                                                       java.util.Collection<ModuleUsage> usages,
                                                       org.eclipse.core.runtime.IProgressMonitor monitor)
                                                throws java.lang.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:
        java.lang.Exception