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
Base class for task with useful operation with collections.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
BmBasicTask2Collection
(String name, P1 object, Collection<P2> objects) Instansiates a newIBmTask
with the given arguments. -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.core.runtime.IStatus
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 Details
-
BmBasicTask2Collection
Instansiates a newIBmTask
with the given arguments.- Parameters:
name
- is the task nameobject
- is the objectobjects
- 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 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
-