public class DocumentHelper extends Object
| Constructor and Description |
|---|
DocumentHelper(DocumentService documentService,
ProcessDefinitionService processDefinitionService,
ProcessInstanceService processInstanceService) |
| Modifier and Type | Method and Description |
|---|---|
SDocument |
createDocumentObject(DocumentValue documentValue,
long authorId) |
void |
createOrUpdateDocument(DocumentValue newValue,
String documentName,
long processInstanceId,
long authorId,
String description) |
void |
deleteDocument(String documentName,
long processInstanceId) |
List<SMappedDocument> |
getAllDocumentOfTheList(long processInstanceId,
String name) |
boolean |
isListDefinedInDefinition(String documentName,
long processInstanceId) |
void |
setDocumentList(List<DocumentValue> documentList,
String documentName,
long processInstanceId,
long authorId) |
DocumentValue |
toCheckedDocumentValue(Object newValue) |
List<DocumentValue> |
toCheckedList(Object newValue) |
DocumentValue |
toDocumentValue(Document document) |
DocumentValue |
toDocumentValue(FileInputValue fileInput) |
public DocumentHelper(DocumentService documentService, ProcessDefinitionService processDefinitionService, ProcessInstanceService processInstanceService)
public List<SMappedDocument> getAllDocumentOfTheList(long processInstanceId, String name) throws SBonitaReadException
SBonitaReadExceptionpublic boolean isListDefinedInDefinition(String documentName, long processInstanceId) throws org.bonitasoft.engine.commons.exceptions.SObjectNotFoundException, SBonitaReadException
org.bonitasoft.engine.commons.exceptions.SObjectNotFoundExceptionSBonitaReadExceptionpublic SDocument createDocumentObject(DocumentValue documentValue, long authorId)
public void deleteDocument(String documentName, long processInstanceId) throws org.bonitasoft.engine.commons.exceptions.SObjectModificationException
org.bonitasoft.engine.commons.exceptions.SObjectModificationExceptionpublic void createOrUpdateDocument(DocumentValue newValue, String documentName, long processInstanceId, long authorId, String description) throws SBonitaReadException, org.bonitasoft.engine.commons.exceptions.SObjectCreationException, org.bonitasoft.engine.commons.exceptions.SObjectModificationException
newValue - the new valuedocumentName - the name of the documentprocessInstanceId - the id of the process instanceauthorId - the author iddescription - used only when creating a documentSBonitaReadExceptionorg.bonitasoft.engine.commons.exceptions.SObjectCreationExceptionorg.bonitasoft.engine.commons.exceptions.SObjectModificationExceptionpublic void setDocumentList(List<DocumentValue> documentList, String documentName, long processInstanceId, long authorId) throws SBonitaReadException, org.bonitasoft.engine.commons.exceptions.SObjectCreationException, org.bonitasoft.engine.commons.exceptions.SObjectNotFoundException, org.bonitasoft.engine.commons.exceptions.SObjectModificationException, org.bonitasoft.engine.commons.exceptions.SObjectAlreadyExistsException
SBonitaReadExceptionorg.bonitasoft.engine.commons.exceptions.SObjectCreationExceptionorg.bonitasoft.engine.commons.exceptions.SObjectNotFoundExceptionorg.bonitasoft.engine.commons.exceptions.SObjectModificationExceptionorg.bonitasoft.engine.commons.exceptions.SObjectAlreadyExistsExceptionpublic DocumentValue toCheckedDocumentValue(Object newValue) throws SOperationExecutionException
SOperationExecutionExceptionpublic DocumentValue toDocumentValue(FileInputValue fileInput)
public DocumentValue toDocumentValue(Document document) throws SOperationExecutionException
SOperationExecutionExceptionpublic List<DocumentValue> toCheckedList(Object newValue) throws SOperationExecutionException
SOperationExecutionExceptionCopyright © 2019 Bonitasoft S.A.. All rights reserved.