Package com._1c.g5.v8.dt.md.api
Class DocumentInJournalsTask
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>
com._1c.g5.v8.dt.md.api.AbstractMdObjectCollectionTask<Document,DocumentJournal>
com._1c.g5.v8.dt.md.api.DocumentInJournalsTask
- All Implemented Interfaces:
IBmTask<org.eclipse.core.runtime.IStatus>
public abstract class DocumentInJournalsTask
extends AbstractMdObjectCollectionTask<Document,DocumentJournal>
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
DocumentInJournalsTask
(Document document, Collection<DocumentJournal> journals, String template) Creates a newIBmTask
successor instance. -
Method Summary
Modifier and TypeMethodDescriptionstatic DocumentInJournalsTask
createAddTask
(Document document, Collection<DocumentJournal> journals) Creates a newIBmTask
that adds the given document to each element of the journals collection.static DocumentInJournalsTask
createRemoveTask
(Document document, Collection<DocumentJournal> journals) Creates a newIBmTask
that removes the given document from each element of the journals collection.Methods inherited from class com._1c.g5.v8.dt.md.api.AbstractMdObjectCollectionTask
doExecute, execute, getName
Methods inherited from class com._1c.g5.v8.bm.integration.BmBasicTask2Collection
execute
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
-
DocumentInJournalsTask
protected DocumentInJournalsTask(Document document, Collection<DocumentJournal> journals, String template) Creates a newIBmTask
successor instance.- Parameters:
document
- is theDocument
journals
- is theDocumentJournal
stemplate
- is the template message for task naming purposes
-
-
Method Details
-
createAddTask
public static DocumentInJournalsTask createAddTask(Document document, Collection<DocumentJournal> journals) Creates a newIBmTask
that adds the given document to each element of the journals collection.- Parameters:
document
- is theDocument
journals
- is the collection ofDocumentJournal
objects.- Returns:
- the created task
-
createRemoveTask
public static DocumentInJournalsTask createRemoveTask(Document document, Collection<DocumentJournal> journals) Creates a newIBmTask
that removes the given document from each element of the journals collection.- Parameters:
document
- is theDocument
journals
- is the collection of theDocumentJournal
objects- Returns:
- the created task
-