public class DocumentAPIImpl extends Object implements DocumentAPI
| Constructor and Description |
|---|
DocumentAPIImpl() |
| Modifier and Type | Method and Description |
|---|---|
Document |
addDocument(long processInstanceId,
String documentName,
String description,
DocumentValue documentValue) |
Document |
attachDocument(long processInstanceId,
String documentName,
String fileName,
String mimeType,
byte[] documentContent) |
Document |
attachDocument(long processInstanceId,
String documentName,
String fileName,
String mimeType,
String url) |
Document |
attachNewDocumentVersion(long processInstanceId,
String documentName,
String contentFileName,
String contentMimeType,
byte[] documentContent) |
Document |
attachNewDocumentVersion(long processInstanceId,
String documentName,
String fileName,
String mimeType,
String url) |
void |
deleteContentOfArchivedDocument(long archivedDocumentId) |
ArchivedDocument |
getArchivedProcessDocument(long archivedProcessDocumentId) |
ArchivedDocument |
getArchivedVersionOfProcessDocument(long sourceObjectId) |
Document |
getDocument(long documentId) |
Document |
getDocumentAtActivityInstanceCompletion(long activityInstanceId,
String documentName) |
Document |
getDocumentAtProcessInstantiation(long processInstanceId,
String documentName) |
byte[] |
getDocumentContent(String documentStorageId) |
List<Document> |
getDocumentList(long processInstanceId,
String name,
int fromIndex,
int numberOfResult) |
Document |
getLastDocument(long processInstanceId,
String documentName) |
List<Document> |
getLastVersionOfDocuments(long processInstanceId,
int pageIndex,
int numberPerPage,
DocumentCriterion pagingCriterion) |
long |
getNumberOfDocuments(long processInstanceId) |
Document |
removeDocument(long documentId) |
SearchResult<ArchivedDocument> |
searchArchivedDocuments(SearchOptions searchOptions) |
SearchResult<ArchivedDocument> |
searchArchivedDocumentsSupervisedBy(long userId,
SearchOptions searchOptions) |
SearchResult<Document> |
searchDocuments(SearchOptions searchOptions) |
SearchResult<Document> |
searchDocumentsSupervisedBy(long userId,
SearchOptions searchOptions) |
void |
setDocumentList(long processInstanceId,
String name,
List<DocumentValue> documentsValues) |
Document |
updateDocument(long documentId,
DocumentValue documentValue) |
public Document attachDocument(long processInstanceId, String documentName, String fileName, String mimeType, String url) throws DocumentAttachmentException
attachDocument in interface DocumentAPIDocumentAttachmentExceptionpublic Document addDocument(long processInstanceId, String documentName, String description, DocumentValue documentValue) throws DocumentAttachmentException, AlreadyExistsException
addDocument in interface DocumentAPIDocumentAttachmentExceptionAlreadyExistsExceptionpublic Document updateDocument(long documentId, DocumentValue documentValue) throws DocumentAttachmentException
updateDocument in interface DocumentAPIDocumentAttachmentExceptionpublic Document attachDocument(long processInstanceId, String documentName, String fileName, String mimeType, byte[] documentContent) throws DocumentAttachmentException
attachDocument in interface DocumentAPIDocumentAttachmentExceptionpublic Document attachNewDocumentVersion(long processInstanceId, String documentName, String fileName, String mimeType, String url) throws DocumentAttachmentException
attachNewDocumentVersion in interface DocumentAPIDocumentAttachmentExceptionpublic Document attachNewDocumentVersion(long processInstanceId, String documentName, String contentFileName, String contentMimeType, byte[] documentContent) throws DocumentAttachmentException
attachNewDocumentVersion in interface DocumentAPIDocumentAttachmentExceptionpublic Document getDocument(long documentId) throws DocumentNotFoundException
getDocument in interface DocumentAPIDocumentNotFoundExceptionpublic List<Document> getLastVersionOfDocuments(long processInstanceId, int pageIndex, int numberPerPage, DocumentCriterion pagingCriterion) throws DocumentException
getLastVersionOfDocuments in interface DocumentAPIDocumentExceptionpublic byte[] getDocumentContent(String documentStorageId) throws DocumentNotFoundException
getDocumentContent in interface DocumentAPIDocumentNotFoundExceptionpublic Document getLastDocument(long processInstanceId, String documentName) throws DocumentNotFoundException
getLastDocument in interface DocumentAPIDocumentNotFoundExceptionpublic long getNumberOfDocuments(long processInstanceId)
throws DocumentException
getNumberOfDocuments in interface DocumentAPIDocumentExceptionpublic Document getDocumentAtProcessInstantiation(long processInstanceId, String documentName) throws DocumentNotFoundException
getDocumentAtProcessInstantiation in interface DocumentAPIDocumentNotFoundExceptionpublic Document getDocumentAtActivityInstanceCompletion(long activityInstanceId, String documentName) throws DocumentNotFoundException
getDocumentAtActivityInstanceCompletion in interface DocumentAPIDocumentNotFoundExceptionpublic SearchResult<Document> searchDocuments(SearchOptions searchOptions) throws SearchException
searchDocuments in interface DocumentAPISearchExceptionpublic SearchResult<Document> searchDocumentsSupervisedBy(long userId, SearchOptions searchOptions) throws SearchException
searchDocumentsSupervisedBy in interface DocumentAPISearchExceptionpublic SearchResult<ArchivedDocument> searchArchivedDocuments(SearchOptions searchOptions) throws SearchException
searchArchivedDocuments in interface DocumentAPISearchExceptionpublic SearchResult<ArchivedDocument> searchArchivedDocumentsSupervisedBy(long userId, SearchOptions searchOptions) throws SearchException
searchArchivedDocumentsSupervisedBy in interface DocumentAPISearchExceptionpublic ArchivedDocument getArchivedVersionOfProcessDocument(long sourceObjectId) throws ArchivedDocumentNotFoundException
getArchivedVersionOfProcessDocument in interface DocumentAPIArchivedDocumentNotFoundExceptionpublic ArchivedDocument getArchivedProcessDocument(long archivedProcessDocumentId) throws ArchivedDocumentNotFoundException
getArchivedProcessDocument in interface DocumentAPIArchivedDocumentNotFoundExceptionpublic Document removeDocument(long documentId) throws DocumentNotFoundException, DeletionException
removeDocument in interface DocumentAPIDocumentNotFoundExceptionDeletionExceptionpublic List<Document> getDocumentList(long processInstanceId, String name, int fromIndex, int numberOfResult) throws DocumentNotFoundException
getDocumentList in interface DocumentAPIDocumentNotFoundExceptionpublic void setDocumentList(long processInstanceId,
String name,
List<DocumentValue> documentsValues)
throws DocumentException
setDocumentList in interface DocumentAPIDocumentExceptionpublic void deleteContentOfArchivedDocument(long archivedDocumentId)
throws DocumentException,
DocumentNotFoundException
deleteContentOfArchivedDocument in interface DocumentAPIDocumentExceptionDocumentNotFoundExceptionCopyright © 2015 Bonitasoft S.A.. All rights reserved.