public interface DocumentService extends CRUDService<DocumentDTO,DocumentData,DocumentDataParams>
| Modifier and Type | Method and Description |
|---|---|
DocumentVO |
getDocument(DocumentVO document)
Used to get the view only object of the document
|
DocumentFileVO |
getDocumentFile(DocumentVO document)
Return the file vo for a given document
|
DocumentSearchData |
getDocumentSearchData(DocumentQuery query)
Returns data used to search documents
|
ProcessDynamicDocumentData |
getProcessDynamicDocumentData(DocumentVO document,
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(DocumentVO document)
Reads the contents of the document
|
void |
saveFile(DocumentVO document,
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(DocumentVO document) throws FrameworkException
FrameworkExceptionDocumentFileVO getDocumentFile(DocumentVO document) throws FrameworkException
FrameworkExceptionDocumentSearchData getDocumentSearchData(DocumentQuery query) throws FrameworkException
FrameworkExceptionProcessDynamicDocumentData getProcessDynamicDocumentData(DocumentVO document, UserLocatorVO locator) throws FrameworkException
FrameworkExceptionjava.util.List<DocumentVO> listMyDocuments() throws FrameworkException
FrameworkExceptionjava.lang.String processDynamicDocument(ProcessDynamicDocumentDTO params) throws FrameworkException
FrameworkExceptionSerializableInputStream readContent(DocumentVO document) throws FrameworkException
EntityNotFoundException - When the image is not foundFrameworkExceptionvoid saveFile(DocumentVO document, java.lang.String contentType, java.lang.String fileName, SerializableInputStream contents) throws FrameworkException
FrameworkExceptionPage<DocumentVO> search(DocumentQuery query) throws FrameworkException
FrameworkException