public class DocumentHelper
extends java.lang.Object
| Constructor and Description |
|---|
DocumentHelper(DocumentService documentService,
ProcessDefinitionService processDefinitionService,
ProcessInstanceService processInstanceService) |
| Modifier and Type | Method and Description |
|---|---|
SDocument |
createDocumentObject(org.bonitasoft.engine.bpm.document.DocumentValue documentValue,
long authorId) |
void |
createOrUpdateDocument(org.bonitasoft.engine.bpm.document.DocumentValue newValue,
java.lang.String documentName,
long processInstanceId,
long authorId,
java.lang.String description) |
void |
deleteDocument(java.lang.String documentName,
long processInstanceId) |
java.util.List<SMappedDocument> |
getAllDocumentOfTheList(long processInstanceId,
java.lang.String name) |
boolean |
isListDefinedInDefinition(java.lang.String documentName,
long processInstanceId) |
void |
setDocumentList(java.util.List<org.bonitasoft.engine.bpm.document.DocumentValue> documentList,
java.lang.String documentName,
long processInstanceId,
long authorId) |
org.bonitasoft.engine.bpm.document.DocumentValue |
toCheckedDocumentValue(java.lang.Object newValue) |
java.util.List<org.bonitasoft.engine.bpm.document.DocumentValue> |
toCheckedList(java.lang.Object newValue) |
org.bonitasoft.engine.bpm.document.DocumentValue |
toDocumentValue(org.bonitasoft.engine.bpm.document.Document document) |
org.bonitasoft.engine.bpm.document.DocumentValue |
toDocumentValue(org.bonitasoft.engine.bpm.contract.FileInputValue fileInput) |
public DocumentHelper(DocumentService documentService, ProcessDefinitionService processDefinitionService, ProcessInstanceService processInstanceService)
public java.util.List<SMappedDocument> getAllDocumentOfTheList(long processInstanceId, java.lang.String name) throws SBonitaReadException
SBonitaReadExceptionpublic boolean isListDefinedInDefinition(java.lang.String documentName,
long processInstanceId)
throws SObjectNotFoundException,
SBonitaReadException
public SDocument createDocumentObject(org.bonitasoft.engine.bpm.document.DocumentValue documentValue, long authorId)
public void deleteDocument(java.lang.String documentName,
long processInstanceId)
throws SObjectModificationException
SObjectModificationExceptionpublic void createOrUpdateDocument(org.bonitasoft.engine.bpm.document.DocumentValue newValue,
java.lang.String documentName,
long processInstanceId,
long authorId,
java.lang.String description)
throws SBonitaReadException,
SObjectCreationException,
SObjectModificationException
newValue - the new valuedocumentName - the name of the documentprocessInstanceId - the id of the process instanceauthorId - the author iddescription - used only when creating a documentSBonitaReadExceptionSObjectCreationExceptionSObjectModificationExceptionpublic void setDocumentList(java.util.List<org.bonitasoft.engine.bpm.document.DocumentValue> documentList,
java.lang.String documentName,
long processInstanceId,
long authorId)
throws SBonitaReadException,
SObjectCreationException,
SObjectNotFoundException,
SObjectModificationException,
SObjectAlreadyExistsException
public org.bonitasoft.engine.bpm.document.DocumentValue toCheckedDocumentValue(java.lang.Object newValue)
throws SOperationExecutionException
SOperationExecutionExceptionpublic org.bonitasoft.engine.bpm.document.DocumentValue toDocumentValue(org.bonitasoft.engine.bpm.contract.FileInputValue fileInput)
public org.bonitasoft.engine.bpm.document.DocumentValue toDocumentValue(org.bonitasoft.engine.bpm.document.Document document)
throws SOperationExecutionException
SOperationExecutionExceptionpublic java.util.List<org.bonitasoft.engine.bpm.document.DocumentValue> toCheckedList(java.lang.Object newValue)
throws SOperationExecutionException
SOperationExecutionException