Package org.bonitasoft.engine.api.impl
Class DocumentAPIImpl
java.lang.Object
org.bonitasoft.engine.api.impl.DocumentAPIImpl
- All Implemented Interfaces:
org.bonitasoft.engine.api.DocumentAPI
- Author:
- Baptiste Mesta
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.bonitasoft.engine.bpm.document.DocumentaddDocument(long processInstanceId, String documentName, String description, org.bonitasoft.engine.bpm.document.DocumentValue documentValue) org.bonitasoft.engine.bpm.document.DocumentattachDocument(long processInstanceId, String documentName, String fileName, String mimeType, byte[] documentContent) org.bonitasoft.engine.bpm.document.DocumentattachDocument(long processInstanceId, String documentName, String fileName, String mimeType, String url) org.bonitasoft.engine.bpm.document.DocumentattachNewDocumentVersion(long processInstanceId, String documentName, String contentFileName, String contentMimeType, byte[] documentContent) org.bonitasoft.engine.bpm.document.DocumentattachNewDocumentVersion(long processInstanceId, String documentName, String fileName, String mimeType, String url) voiddeleteContentOfArchivedDocument(long archivedDocumentId) org.bonitasoft.engine.bpm.document.ArchivedDocumentgetArchivedProcessDocument(long archivedProcessDocumentId) org.bonitasoft.engine.bpm.document.ArchivedDocumentgetArchivedVersionOfProcessDocument(long sourceObjectId) org.bonitasoft.engine.bpm.document.DocumentgetDocument(long documentId) org.bonitasoft.engine.bpm.document.DocumentgetDocumentAtActivityInstanceCompletion(long activityInstanceId, String documentName) org.bonitasoft.engine.bpm.document.DocumentgetDocumentAtProcessInstantiation(long processInstanceId, String documentName) byte[]getDocumentContent(String documentStorageId) List<org.bonitasoft.engine.bpm.document.Document>getDocumentList(long processInstanceId, String name, int fromIndex, int numberOfResult) org.bonitasoft.engine.bpm.document.DocumentgetLastDocument(long processInstanceId, String documentName) List<org.bonitasoft.engine.bpm.document.Document>getLastVersionOfDocuments(long processInstanceId, int pageIndex, int numberPerPage, org.bonitasoft.engine.bpm.document.DocumentCriterion pagingCriterion) longgetNumberOfDocuments(long processInstanceId) org.bonitasoft.engine.bpm.document.DocumentremoveDocument(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) voidsetDocumentList(long processInstanceId, String name, List<org.bonitasoft.engine.bpm.document.DocumentValue> documentsValues) org.bonitasoft.engine.bpm.document.DocumentupdateDocument(long documentId, org.bonitasoft.engine.bpm.document.DocumentValue documentValue)
-
Constructor Details
-
DocumentAPIImpl
public DocumentAPIImpl()
-
-
Method Details
-
attachDocument
public org.bonitasoft.engine.bpm.document.Document attachDocument(long processInstanceId, String documentName, String fileName, String mimeType, String url) throws org.bonitasoft.engine.bpm.document.DocumentAttachmentException - Specified by:
attachDocumentin interfaceorg.bonitasoft.engine.api.DocumentAPI- Throws:
org.bonitasoft.engine.bpm.document.DocumentAttachmentException
-
addDocument
public org.bonitasoft.engine.bpm.document.Document addDocument(long processInstanceId, String documentName, String description, org.bonitasoft.engine.bpm.document.DocumentValue documentValue) throws org.bonitasoft.engine.bpm.document.DocumentAttachmentException, org.bonitasoft.engine.exception.AlreadyExistsException - Specified by:
addDocumentin interfaceorg.bonitasoft.engine.api.DocumentAPI- Throws:
org.bonitasoft.engine.bpm.document.DocumentAttachmentExceptionorg.bonitasoft.engine.exception.AlreadyExistsException
-
updateDocument
public org.bonitasoft.engine.bpm.document.Document updateDocument(long documentId, org.bonitasoft.engine.bpm.document.DocumentValue documentValue) throws org.bonitasoft.engine.bpm.document.DocumentAttachmentException - Specified by:
updateDocumentin interfaceorg.bonitasoft.engine.api.DocumentAPI- Throws:
org.bonitasoft.engine.bpm.document.DocumentAttachmentException
-
attachDocument
public org.bonitasoft.engine.bpm.document.Document attachDocument(long processInstanceId, String documentName, String fileName, String mimeType, byte[] documentContent) throws org.bonitasoft.engine.bpm.document.DocumentAttachmentException - Specified by:
attachDocumentin interfaceorg.bonitasoft.engine.api.DocumentAPI- Throws:
org.bonitasoft.engine.bpm.document.DocumentAttachmentException
-
attachNewDocumentVersion
public org.bonitasoft.engine.bpm.document.Document attachNewDocumentVersion(long processInstanceId, String documentName, String fileName, String mimeType, String url) throws org.bonitasoft.engine.bpm.document.DocumentAttachmentException - Specified by:
attachNewDocumentVersionin interfaceorg.bonitasoft.engine.api.DocumentAPI- Throws:
org.bonitasoft.engine.bpm.document.DocumentAttachmentException
-
attachNewDocumentVersion
public org.bonitasoft.engine.bpm.document.Document attachNewDocumentVersion(long processInstanceId, String documentName, String contentFileName, String contentMimeType, byte[] documentContent) throws org.bonitasoft.engine.bpm.document.DocumentAttachmentException - Specified by:
attachNewDocumentVersionin interfaceorg.bonitasoft.engine.api.DocumentAPI- Throws:
org.bonitasoft.engine.bpm.document.DocumentAttachmentException
-
getDocument
public org.bonitasoft.engine.bpm.document.Document getDocument(long documentId) throws org.bonitasoft.engine.bpm.document.DocumentNotFoundException - Specified by:
getDocumentin interfaceorg.bonitasoft.engine.api.DocumentAPI- Throws:
org.bonitasoft.engine.bpm.document.DocumentNotFoundException
-
getLastVersionOfDocuments
public 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 - Specified by:
getLastVersionOfDocumentsin interfaceorg.bonitasoft.engine.api.DocumentAPI- Throws:
org.bonitasoft.engine.bpm.document.DocumentException
-
getDocumentContent
public byte[] getDocumentContent(String documentStorageId) throws org.bonitasoft.engine.bpm.document.DocumentNotFoundException - Specified by:
getDocumentContentin interfaceorg.bonitasoft.engine.api.DocumentAPI- Throws:
org.bonitasoft.engine.bpm.document.DocumentNotFoundException
-
getLastDocument
public org.bonitasoft.engine.bpm.document.Document getLastDocument(long processInstanceId, String documentName) throws org.bonitasoft.engine.bpm.document.DocumentNotFoundException - Specified by:
getLastDocumentin interfaceorg.bonitasoft.engine.api.DocumentAPI- Throws:
org.bonitasoft.engine.bpm.document.DocumentNotFoundException
-
getNumberOfDocuments
public long getNumberOfDocuments(long processInstanceId) throws org.bonitasoft.engine.bpm.document.DocumentException - Specified by:
getNumberOfDocumentsin interfaceorg.bonitasoft.engine.api.DocumentAPI- Throws:
org.bonitasoft.engine.bpm.document.DocumentException
-
getDocumentAtProcessInstantiation
public org.bonitasoft.engine.bpm.document.Document getDocumentAtProcessInstantiation(long processInstanceId, String documentName) throws org.bonitasoft.engine.bpm.document.DocumentNotFoundException - Specified by:
getDocumentAtProcessInstantiationin interfaceorg.bonitasoft.engine.api.DocumentAPI- Throws:
org.bonitasoft.engine.bpm.document.DocumentNotFoundException
-
getDocumentAtActivityInstanceCompletion
public org.bonitasoft.engine.bpm.document.Document getDocumentAtActivityInstanceCompletion(long activityInstanceId, String documentName) throws org.bonitasoft.engine.bpm.document.DocumentNotFoundException - Specified by:
getDocumentAtActivityInstanceCompletionin interfaceorg.bonitasoft.engine.api.DocumentAPI- Throws:
org.bonitasoft.engine.bpm.document.DocumentNotFoundException
-
searchDocuments
public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.document.Document> searchDocuments(org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.SearchException - Specified by:
searchDocumentsin interfaceorg.bonitasoft.engine.api.DocumentAPI- Throws:
org.bonitasoft.engine.exception.SearchException
-
searchDocumentsSupervisedBy
public 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 - Specified by:
searchDocumentsSupervisedByin interfaceorg.bonitasoft.engine.api.DocumentAPI- Throws:
org.bonitasoft.engine.exception.SearchException
-
searchArchivedDocuments
public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.bpm.document.ArchivedDocument> searchArchivedDocuments(org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.SearchException - Specified by:
searchArchivedDocumentsin interfaceorg.bonitasoft.engine.api.DocumentAPI- Throws:
org.bonitasoft.engine.exception.SearchException
-
searchArchivedDocumentsSupervisedBy
public 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 - Specified by:
searchArchivedDocumentsSupervisedByin interfaceorg.bonitasoft.engine.api.DocumentAPI- Throws:
org.bonitasoft.engine.exception.SearchException
-
getArchivedVersionOfProcessDocument
public org.bonitasoft.engine.bpm.document.ArchivedDocument getArchivedVersionOfProcessDocument(long sourceObjectId) throws org.bonitasoft.engine.bpm.document.ArchivedDocumentNotFoundException - Specified by:
getArchivedVersionOfProcessDocumentin interfaceorg.bonitasoft.engine.api.DocumentAPI- Throws:
org.bonitasoft.engine.bpm.document.ArchivedDocumentNotFoundException
-
getArchivedProcessDocument
public org.bonitasoft.engine.bpm.document.ArchivedDocument getArchivedProcessDocument(long archivedProcessDocumentId) throws org.bonitasoft.engine.bpm.document.ArchivedDocumentNotFoundException - Specified by:
getArchivedProcessDocumentin interfaceorg.bonitasoft.engine.api.DocumentAPI- Throws:
org.bonitasoft.engine.bpm.document.ArchivedDocumentNotFoundException
-
removeDocument
public org.bonitasoft.engine.bpm.document.Document removeDocument(long documentId) throws org.bonitasoft.engine.bpm.document.DocumentNotFoundException, org.bonitasoft.engine.exception.DeletionException - Specified by:
removeDocumentin interfaceorg.bonitasoft.engine.api.DocumentAPI- Throws:
org.bonitasoft.engine.bpm.document.DocumentNotFoundExceptionorg.bonitasoft.engine.exception.DeletionException
-
getDocumentList
public List<org.bonitasoft.engine.bpm.document.Document> getDocumentList(long processInstanceId, String name, int fromIndex, int numberOfResult) throws org.bonitasoft.engine.bpm.document.DocumentNotFoundException - Specified by:
getDocumentListin interfaceorg.bonitasoft.engine.api.DocumentAPI- Throws:
org.bonitasoft.engine.bpm.document.DocumentNotFoundException
-
setDocumentList
public void setDocumentList(long processInstanceId, String name, List<org.bonitasoft.engine.bpm.document.DocumentValue> documentsValues) throws org.bonitasoft.engine.bpm.document.DocumentException - Specified by:
setDocumentListin interfaceorg.bonitasoft.engine.api.DocumentAPI- Throws:
org.bonitasoft.engine.bpm.document.DocumentException
-
deleteContentOfArchivedDocument
public void deleteContentOfArchivedDocument(long archivedDocumentId) throws org.bonitasoft.engine.bpm.document.DocumentException, org.bonitasoft.engine.bpm.document.DocumentNotFoundException - Specified by:
deleteContentOfArchivedDocumentin interfaceorg.bonitasoft.engine.api.DocumentAPI- Throws:
org.bonitasoft.engine.bpm.document.DocumentExceptionorg.bonitasoft.engine.bpm.document.DocumentNotFoundException
-