public class ProcessDocumentServiceImpl extends Object implements org.bonitasoft.engine.core.process.document.api.ProcessDocumentService
| Constructor and Description |
|---|
ProcessDocumentServiceImpl(org.bonitasoft.engine.document.DocumentService documentService,
org.bonitasoft.engine.core.process.document.mapping.DocumentMappingService documentMappingService,
SDocumentDownloadURLProvider urlProvider) |
| Modifier and Type | Method and Description |
|---|---|
org.bonitasoft.engine.core.process.document.model.SProcessDocument |
attachDocumentToProcessInstance(org.bonitasoft.engine.core.process.document.model.SProcessDocument document) |
org.bonitasoft.engine.core.process.document.model.SProcessDocument |
attachDocumentToProcessInstance(org.bonitasoft.engine.core.process.document.model.SProcessDocument document,
byte[] documentContent) |
void |
deleteArchivedDocuments(long instanceId) |
void |
deleteDocumentsFromProcessInstance(Long processInstanceId) |
org.bonitasoft.engine.core.process.document.model.SAProcessDocument |
getArchivedDocument(long archivedProcessDocumentId) |
org.bonitasoft.engine.core.process.document.model.SAProcessDocument |
getArchivedVersionOfProcessDocument(long documentId) |
org.bonitasoft.engine.core.process.document.model.SProcessDocument |
getDocument(long documentId) |
org.bonitasoft.engine.core.process.document.model.SProcessDocument |
getDocument(long processInstanceId,
String documentName) |
org.bonitasoft.engine.core.process.document.model.SProcessDocument |
getDocument(long processInstanceId,
String documentName,
long time) |
byte[] |
getDocumentContent(String documentStorageId) |
List<org.bonitasoft.engine.core.process.document.model.SProcessDocument> |
getDocumentsOfProcessInstance(long processInstanceId,
int fromIndex,
int numberPerPage,
String field,
org.bonitasoft.engine.persistence.OrderByType order) |
long |
getNumberOfArchivedDocuments(org.bonitasoft.engine.persistence.QueryOptions queryOptions) |
long |
getNumberOfArchivedDocumentsSupervisedBy(long userId,
org.bonitasoft.engine.persistence.QueryOptions queryOptions) |
long |
getNumberOfDocuments(org.bonitasoft.engine.persistence.QueryOptions queryOptions) |
long |
getNumberOfDocumentsOfProcessInstance(long processInstanceId) |
long |
getNumberOfDocumentsSupervisedBy(long userId,
org.bonitasoft.engine.persistence.QueryOptions queryOptions) |
void |
removeCurrentVersion(long processInstanceId,
String documentName) |
void |
removeDocument(org.bonitasoft.engine.core.process.document.model.SProcessDocument sProcessDocument) |
void |
removeDocuments(List<org.bonitasoft.engine.core.process.document.model.SProcessDocument> sProcessDocuments) |
List<org.bonitasoft.engine.core.process.document.model.SAProcessDocument> |
searchArchivedDocuments(org.bonitasoft.engine.persistence.QueryOptions queryOptions) |
List<org.bonitasoft.engine.core.process.document.model.SAProcessDocument> |
searchArchivedDocumentsSupervisedBy(long userId,
org.bonitasoft.engine.persistence.QueryOptions queryOptions) |
List<org.bonitasoft.engine.core.process.document.model.SProcessDocument> |
searchDocuments(org.bonitasoft.engine.persistence.QueryOptions queryOptions) |
List<org.bonitasoft.engine.core.process.document.model.SProcessDocument> |
searchDocumentsSupervisedBy(long userId,
org.bonitasoft.engine.persistence.QueryOptions queryOptions) |
org.bonitasoft.engine.core.process.document.model.SProcessDocument |
updateDocumentOfProcessInstance(org.bonitasoft.engine.core.process.document.model.SProcessDocument document) |
org.bonitasoft.engine.core.process.document.model.SProcessDocument |
updateDocumentOfProcessInstance(org.bonitasoft.engine.core.process.document.model.SProcessDocument document,
byte[] documentContent) |
public ProcessDocumentServiceImpl(org.bonitasoft.engine.document.DocumentService documentService,
org.bonitasoft.engine.core.process.document.mapping.DocumentMappingService documentMappingService,
SDocumentDownloadURLProvider urlProvider)
public org.bonitasoft.engine.core.process.document.model.SProcessDocument attachDocumentToProcessInstance(org.bonitasoft.engine.core.process.document.model.SProcessDocument document)
throws org.bonitasoft.engine.core.process.document.api.SProcessDocumentCreationException
attachDocumentToProcessInstance in interface org.bonitasoft.engine.core.process.document.api.ProcessDocumentServiceorg.bonitasoft.engine.core.process.document.api.SProcessDocumentCreationExceptionpublic org.bonitasoft.engine.core.process.document.model.SProcessDocument attachDocumentToProcessInstance(org.bonitasoft.engine.core.process.document.model.SProcessDocument document,
byte[] documentContent)
throws org.bonitasoft.engine.core.process.document.api.SProcessDocumentCreationException
attachDocumentToProcessInstance in interface org.bonitasoft.engine.core.process.document.api.ProcessDocumentServiceorg.bonitasoft.engine.core.process.document.api.SProcessDocumentCreationExceptionpublic void deleteArchivedDocuments(long instanceId)
throws org.bonitasoft.engine.core.process.document.mapping.exception.SDocumentMappingDeletionException
deleteArchivedDocuments in interface org.bonitasoft.engine.core.process.document.api.ProcessDocumentServiceorg.bonitasoft.engine.core.process.document.mapping.exception.SDocumentMappingDeletionExceptionpublic void deleteDocumentsFromProcessInstance(Long processInstanceId) throws org.bonitasoft.engine.document.SDocumentException, org.bonitasoft.engine.core.process.document.api.SProcessDocumentDeletionException
deleteDocumentsFromProcessInstance in interface org.bonitasoft.engine.core.process.document.api.ProcessDocumentServiceorg.bonitasoft.engine.document.SDocumentExceptionorg.bonitasoft.engine.core.process.document.api.SProcessDocumentDeletionExceptionpublic org.bonitasoft.engine.core.process.document.model.SAProcessDocument getArchivedDocument(long archivedProcessDocumentId)
throws org.bonitasoft.engine.document.SDocumentNotFoundException
getArchivedDocument in interface org.bonitasoft.engine.core.process.document.api.ProcessDocumentServiceorg.bonitasoft.engine.document.SDocumentNotFoundExceptionpublic org.bonitasoft.engine.core.process.document.model.SAProcessDocument getArchivedVersionOfProcessDocument(long documentId)
throws org.bonitasoft.engine.document.SDocumentNotFoundException
getArchivedVersionOfProcessDocument in interface org.bonitasoft.engine.core.process.document.api.ProcessDocumentServiceorg.bonitasoft.engine.document.SDocumentNotFoundExceptionpublic org.bonitasoft.engine.core.process.document.model.SProcessDocument getDocument(long documentId)
throws org.bonitasoft.engine.document.SDocumentNotFoundException
getDocument in interface org.bonitasoft.engine.core.process.document.api.ProcessDocumentServiceorg.bonitasoft.engine.document.SDocumentNotFoundExceptionpublic org.bonitasoft.engine.core.process.document.model.SProcessDocument getDocument(long processInstanceId,
String documentName)
throws org.bonitasoft.engine.document.SDocumentNotFoundException
getDocument in interface org.bonitasoft.engine.core.process.document.api.ProcessDocumentServiceorg.bonitasoft.engine.document.SDocumentNotFoundExceptionpublic org.bonitasoft.engine.core.process.document.model.SProcessDocument getDocument(long processInstanceId,
String documentName,
long time)
throws org.bonitasoft.engine.document.SDocumentNotFoundException
getDocument in interface org.bonitasoft.engine.core.process.document.api.ProcessDocumentServiceorg.bonitasoft.engine.document.SDocumentNotFoundExceptionpublic byte[] getDocumentContent(String documentStorageId) throws org.bonitasoft.engine.core.process.document.api.SProcessDocumentContentNotFoundException
getDocumentContent in interface org.bonitasoft.engine.core.process.document.api.ProcessDocumentServiceorg.bonitasoft.engine.core.process.document.api.SProcessDocumentContentNotFoundExceptionpublic List<org.bonitasoft.engine.core.process.document.model.SProcessDocument> getDocumentsOfProcessInstance(long processInstanceId, int fromIndex, int numberPerPage, String field, org.bonitasoft.engine.persistence.OrderByType order) throws org.bonitasoft.engine.document.SDocumentException
getDocumentsOfProcessInstance in interface org.bonitasoft.engine.core.process.document.api.ProcessDocumentServiceorg.bonitasoft.engine.document.SDocumentExceptionpublic long getNumberOfArchivedDocuments(org.bonitasoft.engine.persistence.QueryOptions queryOptions)
throws org.bonitasoft.engine.persistence.SBonitaSearchException
getNumberOfArchivedDocuments in interface org.bonitasoft.engine.core.process.document.api.ProcessDocumentServiceorg.bonitasoft.engine.persistence.SBonitaSearchExceptionpublic long getNumberOfArchivedDocumentsSupervisedBy(long userId,
org.bonitasoft.engine.persistence.QueryOptions queryOptions)
throws org.bonitasoft.engine.persistence.SBonitaSearchException
getNumberOfArchivedDocumentsSupervisedBy in interface org.bonitasoft.engine.core.process.document.api.ProcessDocumentServiceorg.bonitasoft.engine.persistence.SBonitaSearchExceptionpublic long getNumberOfDocuments(org.bonitasoft.engine.persistence.QueryOptions queryOptions)
throws org.bonitasoft.engine.persistence.SBonitaSearchException
getNumberOfDocuments in interface org.bonitasoft.engine.core.process.document.api.ProcessDocumentServiceorg.bonitasoft.engine.persistence.SBonitaSearchExceptionpublic long getNumberOfDocumentsOfProcessInstance(long processInstanceId)
throws org.bonitasoft.engine.document.SDocumentException
getNumberOfDocumentsOfProcessInstance in interface org.bonitasoft.engine.core.process.document.api.ProcessDocumentServiceorg.bonitasoft.engine.document.SDocumentExceptionpublic long getNumberOfDocumentsSupervisedBy(long userId,
org.bonitasoft.engine.persistence.QueryOptions queryOptions)
throws org.bonitasoft.engine.persistence.SBonitaSearchException
getNumberOfDocumentsSupervisedBy in interface org.bonitasoft.engine.core.process.document.api.ProcessDocumentServiceorg.bonitasoft.engine.persistence.SBonitaSearchExceptionpublic void removeCurrentVersion(long processInstanceId,
String documentName)
throws org.bonitasoft.engine.document.SDocumentNotFoundException,
org.bonitasoft.engine.commons.exceptions.SObjectModificationException
removeCurrentVersion in interface org.bonitasoft.engine.core.process.document.api.ProcessDocumentServiceorg.bonitasoft.engine.document.SDocumentNotFoundExceptionorg.bonitasoft.engine.commons.exceptions.SObjectModificationExceptionpublic void removeDocument(org.bonitasoft.engine.core.process.document.model.SProcessDocument sProcessDocument)
throws org.bonitasoft.engine.core.process.document.api.SProcessDocumentDeletionException
removeDocument in interface org.bonitasoft.engine.core.process.document.api.ProcessDocumentServiceorg.bonitasoft.engine.core.process.document.api.SProcessDocumentDeletionExceptionpublic void removeDocuments(List<org.bonitasoft.engine.core.process.document.model.SProcessDocument> sProcessDocuments) throws org.bonitasoft.engine.core.process.document.api.SProcessDocumentDeletionException
removeDocuments in interface org.bonitasoft.engine.core.process.document.api.ProcessDocumentServiceorg.bonitasoft.engine.core.process.document.api.SProcessDocumentDeletionExceptionpublic List<org.bonitasoft.engine.core.process.document.model.SAProcessDocument> searchArchivedDocuments(org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws org.bonitasoft.engine.persistence.SBonitaSearchException
searchArchivedDocuments in interface org.bonitasoft.engine.core.process.document.api.ProcessDocumentServiceorg.bonitasoft.engine.persistence.SBonitaSearchExceptionpublic List<org.bonitasoft.engine.core.process.document.model.SAProcessDocument> searchArchivedDocumentsSupervisedBy(long userId, org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws org.bonitasoft.engine.persistence.SBonitaSearchException
searchArchivedDocumentsSupervisedBy in interface org.bonitasoft.engine.core.process.document.api.ProcessDocumentServiceorg.bonitasoft.engine.persistence.SBonitaSearchExceptionpublic List<org.bonitasoft.engine.core.process.document.model.SProcessDocument> searchDocuments(org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws org.bonitasoft.engine.persistence.SBonitaSearchException
searchDocuments in interface org.bonitasoft.engine.core.process.document.api.ProcessDocumentServiceorg.bonitasoft.engine.persistence.SBonitaSearchExceptionpublic List<org.bonitasoft.engine.core.process.document.model.SProcessDocument> searchDocumentsSupervisedBy(long userId, org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws org.bonitasoft.engine.persistence.SBonitaSearchException
searchDocumentsSupervisedBy in interface org.bonitasoft.engine.core.process.document.api.ProcessDocumentServiceorg.bonitasoft.engine.persistence.SBonitaSearchExceptionpublic org.bonitasoft.engine.core.process.document.model.SProcessDocument updateDocumentOfProcessInstance(org.bonitasoft.engine.core.process.document.model.SProcessDocument document)
throws org.bonitasoft.engine.core.process.document.api.SProcessDocumentCreationException
updateDocumentOfProcessInstance in interface org.bonitasoft.engine.core.process.document.api.ProcessDocumentServiceorg.bonitasoft.engine.core.process.document.api.SProcessDocumentCreationExceptionpublic org.bonitasoft.engine.core.process.document.model.SProcessDocument updateDocumentOfProcessInstance(org.bonitasoft.engine.core.process.document.model.SProcessDocument document,
byte[] documentContent)
throws org.bonitasoft.engine.core.process.document.api.SProcessDocumentCreationException
updateDocumentOfProcessInstance in interface org.bonitasoft.engine.core.process.document.api.ProcessDocumentServiceorg.bonitasoft.engine.core.process.document.api.SProcessDocumentCreationExceptionCopyright © 2014 Bonitasoft S.A.. All rights reserved.