public class DocumentHelper extends Object
| Constructor and Description |
|---|
DocumentHelper(org.bonitasoft.engine.core.document.api.DocumentService documentService,
ProcessDefinitionService processDefinitionService,
org.bonitasoft.engine.core.process.instance.api.ProcessInstanceService processInstanceService) |
| Modifier and Type | Method and Description |
|---|---|
org.bonitasoft.engine.core.document.model.SDocument |
createDocumentObject(DocumentValue documentValue,
long authorId) |
void |
createOrUpdateDocument(DocumentValue newValue,
String documentName,
long processInstanceId,
long authorId) |
void |
deleteDocument(String documentName,
long processInstanceId) |
List<org.bonitasoft.engine.core.document.model.SMappedDocument> |
getAllDocumentOfTheList(long processInstanceId,
String name) |
boolean |
isListDefinedInDefinition(String documentName,
long processInstanceId) |
void |
setDocumentList(List<DocumentValue> documentList,
String documentName,
long processInstanceId,
long authorId) |
public DocumentHelper(org.bonitasoft.engine.core.document.api.DocumentService documentService,
ProcessDefinitionService processDefinitionService,
org.bonitasoft.engine.core.process.instance.api.ProcessInstanceService processInstanceService)
public List<org.bonitasoft.engine.core.document.model.SMappedDocument> getAllDocumentOfTheList(long processInstanceId, String name) throws org.bonitasoft.engine.persistence.SBonitaReadException
org.bonitasoft.engine.persistence.SBonitaReadExceptionpublic boolean isListDefinedInDefinition(String documentName, long processInstanceId) throws org.bonitasoft.engine.commons.exceptions.SObjectNotFoundException, org.bonitasoft.engine.persistence.SBonitaReadException
org.bonitasoft.engine.commons.exceptions.SObjectNotFoundExceptionorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic org.bonitasoft.engine.core.document.model.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) throws org.bonitasoft.engine.persistence.SBonitaReadException, org.bonitasoft.engine.commons.exceptions.SObjectCreationException, org.bonitasoft.engine.commons.exceptions.SObjectModificationException
org.bonitasoft.engine.persistence.SBonitaReadExceptionorg.bonitasoft.engine.commons.exceptions.SObjectCreationExceptionorg.bonitasoft.engine.commons.exceptions.SObjectModificationExceptionpublic void setDocumentList(List<DocumentValue> documentList, String documentName, long processInstanceId, long authorId) throws org.bonitasoft.engine.persistence.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
org.bonitasoft.engine.persistence.SBonitaReadExceptionorg.bonitasoft.engine.commons.exceptions.SObjectCreationExceptionorg.bonitasoft.engine.commons.exceptions.SObjectNotFoundExceptionorg.bonitasoft.engine.commons.exceptions.SObjectModificationExceptionorg.bonitasoft.engine.commons.exceptions.SObjectAlreadyExistsExceptionCopyright © 2014 Bonitasoft S.A.. All rights reserved.