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
|
RawFileVO |
getDocumentFile(DocumentVO document)
Return the file vo for a given document
|
DocumentSearchData |
getDocumentSearchData(UserLocatorVO user)
Returns data used to search documents, either over the given user or general 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(@NotNull DocumentVO document) throws FrameworkException
FrameworkExceptionRawFileVO getDocumentFile(@NotNull DocumentVO document) throws FrameworkException
FrameworkExceptionDocumentSearchData getDocumentSearchData(UserLocatorVO user) throws FrameworkException
FrameworkExceptionProcessDynamicDocumentData getProcessDynamicDocumentData(@NotNull DocumentVO document, UserLocatorVO locator) throws FrameworkException
FrameworkExceptionjava.util.List<DocumentVO> listMyDocuments() throws FrameworkException
FrameworkExceptionjava.lang.String processDynamicDocument(@NotNull
ProcessDynamicDocumentDTO params)
throws FrameworkException
FrameworkExceptionSerializableInputStream readContent(@NotNull DocumentVO document) throws FrameworkException
EntityNotFoundException - When the image is not foundFrameworkExceptionvoid saveFile(@NotNull
DocumentVO document,
java.lang.String contentType,
java.lang.String fileName,
SerializableInputStream contents)
throws FrameworkException
FrameworkExceptionPage<DocumentVO> search(@NotNull DocumentQuery query) throws FrameworkException
FrameworkException