Package com._1c.g5.v8.bm.integration
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 Summary
Constructors Modifier Constructor Description protected
BmBasicTask2Collection(String name, P1 object, Collection<P2> objects)
Instansiates a newIBmTask
with the given arguments.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description org.eclipse.core.runtime.IStatus
execute(List<IBmObject> objects, org.eclipse.core.runtime.IProgressMonitor monitor)
Perform task execution.abstract org.eclipse.core.runtime.IStatus
execute(P1 object, Collection<P2> objects, org.eclipse.core.runtime.IProgressMonitor monitor)
Executes task with the given arguments.-
Methods inherited from class com._1c.g5.v8.bm.integration.BmBasicTask
execute, getTransaction
-
Methods inherited from class com._1c.g5.v8.bm.integration.AbstractBmTask
getId, getName, getServiceId
-
-
-
-
Constructor Detail
-
BmBasicTask2Collection
protected BmBasicTask2Collection(String name, P1 object, Collection<P2> objects)
Instansiates a newIBmTask
with the given arguments.- Parameters:
name
- is the task nameobject
- is the objectobjects
- is the collection of objects
-
-
Method Detail
-
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 classBmBasicTask
-
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 objectobjects
- is the collection of objectsmonitor
- is the progress monitor- Returns:
- the status of the task
-
-