Class BmBasicTask2Collection<P1,P2>

java.lang.Object
com._1c.g5.v8.bm.integration.AbstractBmTask<org.eclipse.core.runtime.IStatus>
com._1c.g5.v8.bm.integration.BmBasicTask
com._1c.g5.v8.bm.integration.BmBasicTask2Collection<P1,P2>
All Implemented Interfaces:
IBmTask<org.eclipse.core.runtime.IStatus>
Direct Known Subclasses:
AbstractMdObjectCollectionTask

public abstract class BmBasicTask2Collection<P1,P2> extends BmBasicTask
Base class for task with useful operation with collections.
  • Constructor Details

    • BmBasicTask2Collection

      protected BmBasicTask2Collection(String name, P1 object, Collection<P2> objects)
      Instansiates a new IBmTask with the given arguments.
      Parameters:
      name - is the task name
      object - is the object
      objects - is the collection of objects
  • Method Details

    • execute

      public org.eclipse.core.runtime.IStatus execute(List<IBmObject> objects, org.eclipse.core.runtime.IProgressMonitor monitor)
      Perform task execution. Be ware new objects will not be attached to session on execution.
      Specified by:
      execute in class BmBasicTask
    • execute

      public abstract org.eclipse.core.runtime.IStatus execute(P1 object, Collection<P2> objects, org.eclipse.core.runtime.IProgressMonitor monitor)
      Executes task with the given arguments. Override in successors.
      Parameters:
      object - is the object
      objects - is the collection of objects
      monitor - is the progress monitor
      Returns:
      the status of the task