public interface DocumentService extends CRUDService<DocumentDTO,DocumentData,DocumentDataParams>
| Modifier and Type | Method and Description |
|---|---|
DocumentVO |
getDocument(java.lang.Long id)
User to get the view only object of the document
|
DocumentFileVO |
getDocumentFile(java.lang.Long documentId)
Return the file vo for a given document id
|
DocumentSearchData |
getDocumentSearchData(DocumentQuery query)
Returns data used to search documents
|
ProcessDynamicDocumentData |
getProcessDynamicDocumentData(java.lang.Long id,
UserLocatorVO locator)
Returns data used to fill a dynamic document based on the given user locator data
|
java.util.List<DocumentVO> |
listMyDocuments()
List all Documents filtered by user
|
java.lang.String |
processDynamicDocument(ProcessDynamicDocumentDTO params)
Processes the given document using the given user and custom field values
|
SerializableInputStream |
readContent(java.lang.Long documentId)
Reads the contents of the document with the given id, with the specified size
|
void |
saveFile(java.lang.Long documentId,
java.lang.String contentType,
java.lang.String fileName,
SerializableInputStream contents)
Saves the given document, returning the generated identifier
|
Page<DocumentVO> |
search(DocumentQuery query)
List all documents filtered by category
|
getData, getDataForNew, load, remove, removeAll, saveDocumentVO getDocument(java.lang.Long id) throws FrameworkException
FrameworkExceptionDocumentFileVO getDocumentFile(java.lang.Long documentId) throws FrameworkException
FrameworkExceptionDocumentSearchData getDocumentSearchData(DocumentQuery query) throws FrameworkException
FrameworkExceptionProcessDynamicDocumentData getProcessDynamicDocumentData(java.lang.Long id, UserLocatorVO locator) throws FrameworkException
FrameworkExceptionjava.util.List<DocumentVO> listMyDocuments() throws FrameworkException
FrameworkExceptionjava.lang.String processDynamicDocument(ProcessDynamicDocumentDTO params) throws FrameworkException
FrameworkExceptionSerializableInputStream readContent(java.lang.Long documentId) throws FrameworkException
EntityNotFoundException - When the image is not foundFrameworkExceptionvoid saveFile(java.lang.Long documentId,
java.lang.String contentType,
java.lang.String fileName,
SerializableInputStream contents)
throws FrameworkException
FrameworkExceptionPage<DocumentVO> search(DocumentQuery query) throws FrameworkException
FrameworkException