public class DocumentAPIImpl
extends java.lang.Object
implements org.bonitasoft.engine.api.DocumentAPI
| Constructor and Description |
|---|
DocumentAPIImpl() |
| Modifier and Type | Method and Description |
|---|---|
org.bonitasoft.engine.bpm.document.Document |
addDocument(long processInstanceId,
java.lang.String documentName,
java.lang.String description,
org.bonitasoft.engine.bpm.document.DocumentValue documentValue) |
org.bonitasoft.engine.bpm.document.Document |
attachDocument(long processInstanceId,
java.lang.String documentName,
java.lang.String fileName,
java.lang.String mimeType,
byte[] documentContent) |
org.bonitasoft.engine.bpm.document.Document |
attachDocument(long processInstanceId,
java.lang.String documentName,
java.lang.String fileName,
java.lang.String mimeType,
java.lang.String url) |
org.bonitasoft.engine.bpm.document.Document |
attachNewDocumentVersion(long processInstanceId,
java.lang.String documentName,
java.lang.String contentFileName,
java.lang.String contentMimeType,
byte[] documentContent) |
org.bonitasoft.engine.bpm.document.Document |
attachNewDocumentVersion(long processInstanceId,
java.lang.String documentName,
java.lang.String fileName,
java.lang.String mimeType,
java.lang.String url) |
void |
deleteContentOfArchivedDocument(long archivedDocumentId) |
org.bonitasoft.engine.bpm.document.ArchivedDocument |
getArchivedProcessDocument(long archivedProcessDocumentId) |
org.bonitasoft.engine.bpm.document.ArchivedDocument |
getArchivedVersionOfProcessDocument(long sourceObjectId) |
org.bonitasoft.engine.bpm.document.Document |
getDocument(long documentId) |
org.bonitasoft.engine.bpm.document.Document |
getDocumentAtActivityInstanceCompletion(long activityInstanceId,
java.lang.String documentName) |
org.bonitasoft.engine.bpm.document.Document |
getDocumentAtProcessInstantiation(long processInstanceId,
java.lang.String documentName) |
byte[] |
getDocumentContent(java.lang.String documentStorageId) |
java.util.List<org.bonitasoft.engine.bpm.document.Document> |
getDocumentList(long processInstanceId,
java.lang.String name,
int fromIndex,
int numberOfResult) |
org.bonitasoft.engine.bpm.document.Document |
getLastDocument(long processInstanceId,
java.lang.String documentName) |
java.util.List<org.bonitasoft.engine.bpm.document.Document> |
getLastVersionOfDocuments(long processInstanceId,
int pageIndex,
int numberPerPage,
org.bonitasoft.engine.bpm.document.DocumentCriterion pagingCriterion) |
long |
getNumberOfDocuments(long processInstanceId) |
org.bonitasoft.engine.bpm.document.Document |
removeDocument(long documentId) |
org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.document.ArchivedDocument> |
searchArchivedDocuments(org.bonitasoft.engine.search.SearchOptions searchOptions) |
org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.document.ArchivedDocument> |
searchArchivedDocumentsSupervisedBy(long userId,
org.bonitasoft.engine.search.SearchOptions searchOptions) |
org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.document.Document> |
searchDocuments(org.bonitasoft.engine.search.SearchOptions searchOptions) |
org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.document.Document> |
searchDocumentsSupervisedBy(long userId,
org.bonitasoft.engine.search.SearchOptions searchOptions) |
void |
setDocumentList(long processInstanceId,
java.lang.String name,
java.util.List<org.bonitasoft.engine.bpm.document.DocumentValue> documentsValues) |
org.bonitasoft.engine.bpm.document.Document |
updateDocument(long documentId,
org.bonitasoft.engine.bpm.document.DocumentValue documentValue) |
public org.bonitasoft.engine.bpm.document.Document attachDocument(long processInstanceId,
java.lang.String documentName,
java.lang.String fileName,
java.lang.String mimeType,
java.lang.String url)
throws org.bonitasoft.engine.bpm.document.DocumentAttachmentException
attachDocument in interface org.bonitasoft.engine.api.DocumentAPIorg.bonitasoft.engine.bpm.document.DocumentAttachmentExceptionpublic org.bonitasoft.engine.bpm.document.Document addDocument(long processInstanceId,
java.lang.String documentName,
java.lang.String description,
org.bonitasoft.engine.bpm.document.DocumentValue documentValue)
throws org.bonitasoft.engine.bpm.document.DocumentAttachmentException,
org.bonitasoft.engine.exception.AlreadyExistsException
addDocument in interface org.bonitasoft.engine.api.DocumentAPIorg.bonitasoft.engine.bpm.document.DocumentAttachmentExceptionorg.bonitasoft.engine.exception.AlreadyExistsExceptionpublic org.bonitasoft.engine.bpm.document.Document updateDocument(long documentId,
org.bonitasoft.engine.bpm.document.DocumentValue documentValue)
throws org.bonitasoft.engine.bpm.document.DocumentAttachmentException
updateDocument in interface org.bonitasoft.engine.api.DocumentAPIorg.bonitasoft.engine.bpm.document.DocumentAttachmentExceptionpublic org.bonitasoft.engine.bpm.document.Document attachDocument(long processInstanceId,
java.lang.String documentName,
java.lang.String fileName,
java.lang.String mimeType,
byte[] documentContent)
throws org.bonitasoft.engine.bpm.document.DocumentAttachmentException
attachDocument in interface org.bonitasoft.engine.api.DocumentAPIorg.bonitasoft.engine.bpm.document.DocumentAttachmentExceptionpublic org.bonitasoft.engine.bpm.document.Document attachNewDocumentVersion(long processInstanceId,
java.lang.String documentName,
java.lang.String fileName,
java.lang.String mimeType,
java.lang.String url)
throws org.bonitasoft.engine.bpm.document.DocumentAttachmentException
attachNewDocumentVersion in interface org.bonitasoft.engine.api.DocumentAPIorg.bonitasoft.engine.bpm.document.DocumentAttachmentExceptionpublic org.bonitasoft.engine.bpm.document.Document attachNewDocumentVersion(long processInstanceId,
java.lang.String documentName,
java.lang.String contentFileName,
java.lang.String contentMimeType,
byte[] documentContent)
throws org.bonitasoft.engine.bpm.document.DocumentAttachmentException
attachNewDocumentVersion in interface org.bonitasoft.engine.api.DocumentAPIorg.bonitasoft.engine.bpm.document.DocumentAttachmentExceptionpublic org.bonitasoft.engine.bpm.document.Document getDocument(long documentId)
throws org.bonitasoft.engine.bpm.document.DocumentNotFoundException
getDocument in interface org.bonitasoft.engine.api.DocumentAPIorg.bonitasoft.engine.bpm.document.DocumentNotFoundExceptionpublic java.util.List<org.bonitasoft.engine.bpm.document.Document> getLastVersionOfDocuments(long processInstanceId,
int pageIndex,
int numberPerPage,
org.bonitasoft.engine.bpm.document.DocumentCriterion pagingCriterion)
throws org.bonitasoft.engine.bpm.document.DocumentException
getLastVersionOfDocuments in interface org.bonitasoft.engine.api.DocumentAPIorg.bonitasoft.engine.bpm.document.DocumentExceptionpublic byte[] getDocumentContent(java.lang.String documentStorageId)
throws org.bonitasoft.engine.bpm.document.DocumentNotFoundException
getDocumentContent in interface org.bonitasoft.engine.api.DocumentAPIorg.bonitasoft.engine.bpm.document.DocumentNotFoundExceptionpublic org.bonitasoft.engine.bpm.document.Document getLastDocument(long processInstanceId,
java.lang.String documentName)
throws org.bonitasoft.engine.bpm.document.DocumentNotFoundException
getLastDocument in interface org.bonitasoft.engine.api.DocumentAPIorg.bonitasoft.engine.bpm.document.DocumentNotFoundExceptionpublic long getNumberOfDocuments(long processInstanceId)
throws org.bonitasoft.engine.bpm.document.DocumentException
getNumberOfDocuments in interface org.bonitasoft.engine.api.DocumentAPIorg.bonitasoft.engine.bpm.document.DocumentExceptionpublic org.bonitasoft.engine.bpm.document.Document getDocumentAtProcessInstantiation(long processInstanceId,
java.lang.String documentName)
throws org.bonitasoft.engine.bpm.document.DocumentNotFoundException
getDocumentAtProcessInstantiation in interface org.bonitasoft.engine.api.DocumentAPIorg.bonitasoft.engine.bpm.document.DocumentNotFoundExceptionpublic org.bonitasoft.engine.bpm.document.Document getDocumentAtActivityInstanceCompletion(long activityInstanceId,
java.lang.String documentName)
throws org.bonitasoft.engine.bpm.document.DocumentNotFoundException
getDocumentAtActivityInstanceCompletion in interface org.bonitasoft.engine.api.DocumentAPIorg.bonitasoft.engine.bpm.document.DocumentNotFoundExceptionpublic org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.document.Document> searchDocuments(org.bonitasoft.engine.search.SearchOptions searchOptions)
throws org.bonitasoft.engine.exception.SearchException
searchDocuments in interface org.bonitasoft.engine.api.DocumentAPIorg.bonitasoft.engine.exception.SearchExceptionpublic org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.document.Document> searchDocumentsSupervisedBy(long userId,
org.bonitasoft.engine.search.SearchOptions searchOptions)
throws org.bonitasoft.engine.exception.SearchException
searchDocumentsSupervisedBy in interface org.bonitasoft.engine.api.DocumentAPIorg.bonitasoft.engine.exception.SearchExceptionpublic org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.document.ArchivedDocument> searchArchivedDocuments(org.bonitasoft.engine.search.SearchOptions searchOptions)
throws org.bonitasoft.engine.exception.SearchException
searchArchivedDocuments in interface org.bonitasoft.engine.api.DocumentAPIorg.bonitasoft.engine.exception.SearchExceptionpublic org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.document.ArchivedDocument> searchArchivedDocumentsSupervisedBy(long userId,
org.bonitasoft.engine.search.SearchOptions searchOptions)
throws org.bonitasoft.engine.exception.SearchException
searchArchivedDocumentsSupervisedBy in interface org.bonitasoft.engine.api.DocumentAPIorg.bonitasoft.engine.exception.SearchExceptionpublic org.bonitasoft.engine.bpm.document.ArchivedDocument getArchivedVersionOfProcessDocument(long sourceObjectId)
throws org.bonitasoft.engine.bpm.document.ArchivedDocumentNotFoundException
getArchivedVersionOfProcessDocument in interface org.bonitasoft.engine.api.DocumentAPIorg.bonitasoft.engine.bpm.document.ArchivedDocumentNotFoundExceptionpublic org.bonitasoft.engine.bpm.document.ArchivedDocument getArchivedProcessDocument(long archivedProcessDocumentId)
throws org.bonitasoft.engine.bpm.document.ArchivedDocumentNotFoundException
getArchivedProcessDocument in interface org.bonitasoft.engine.api.DocumentAPIorg.bonitasoft.engine.bpm.document.ArchivedDocumentNotFoundExceptionpublic org.bonitasoft.engine.bpm.document.Document removeDocument(long documentId)
throws org.bonitasoft.engine.bpm.document.DocumentNotFoundException,
org.bonitasoft.engine.exception.DeletionException
removeDocument in interface org.bonitasoft.engine.api.DocumentAPIorg.bonitasoft.engine.bpm.document.DocumentNotFoundExceptionorg.bonitasoft.engine.exception.DeletionExceptionpublic java.util.List<org.bonitasoft.engine.bpm.document.Document> getDocumentList(long processInstanceId,
java.lang.String name,
int fromIndex,
int numberOfResult)
throws org.bonitasoft.engine.bpm.document.DocumentNotFoundException
getDocumentList in interface org.bonitasoft.engine.api.DocumentAPIorg.bonitasoft.engine.bpm.document.DocumentNotFoundExceptionpublic void setDocumentList(long processInstanceId,
java.lang.String name,
java.util.List<org.bonitasoft.engine.bpm.document.DocumentValue> documentsValues)
throws org.bonitasoft.engine.bpm.document.DocumentException
setDocumentList in interface org.bonitasoft.engine.api.DocumentAPIorg.bonitasoft.engine.bpm.document.DocumentExceptionpublic void deleteContentOfArchivedDocument(long archivedDocumentId)
throws org.bonitasoft.engine.bpm.document.DocumentException,
org.bonitasoft.engine.bpm.document.DocumentNotFoundException
deleteContentOfArchivedDocument in interface org.bonitasoft.engine.api.DocumentAPIorg.bonitasoft.engine.bpm.document.DocumentExceptionorg.bonitasoft.engine.bpm.document.DocumentNotFoundException