Package com.flower.docs.dao.api.document
Interface DocumentDAO
-
- All Superinterfaces:
ComponentDAO<com.flower.docs.domain.document.Document>
,GenericDAO<com.flower.docs.domain.document.Document>
public interface DocumentDAO extends ComponentDAO<com.flower.docs.domain.document.Document>
Data Access Object allowing to manage persistence and access toDocument
domain object- Author:
- Christopher Laszczuk
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
deleteFiles(com.flower.docs.domain.document.Document document, java.util.List<com.flower.docs.domain.common.Id> fileIds)
Deletes stored files of a document.java.util.List<com.flower.docs.domain.file.DocumentFile>
getFiles(com.flower.docs.domain.common.Id documentId, java.util.List<com.flower.docs.domain.common.Id> fileIds)
Get specific files of document.-
Methods inherited from interface com.flower.docs.dao.api.component.ComponentDAO
find
-
Methods inherited from interface com.flower.docs.dao.api.GenericDAO
delete, fetch, store, update
-
-
-
-
Method Detail
-
getFiles
java.util.List<com.flower.docs.domain.file.DocumentFile> getFiles(com.flower.docs.domain.common.Id documentId, java.util.List<com.flower.docs.domain.common.Id> fileIds) throws com.flower.docs.domain.exception.TechnicalException
Get specific files of document.- Parameters:
documentId
- The identifier of the document whose files are requestedIdentifiableElement.getId()
fileIds
- The identifiers of the document filesIdentifiableElement.getId()
- Returns:
- The stored files
- Throws:
com.flower.docs.domain.exception.TechnicalException
- If a technical error occurred during process- See Also:
DocumentFile.getContent()
-
deleteFiles
void deleteFiles(com.flower.docs.domain.document.Document document, java.util.List<com.flower.docs.domain.common.Id> fileIds) throws com.flower.docs.domain.exception.TechnicalException
Deletes stored files of a document.- Parameters:
document
- The document whose files have to be changedfileIds
- The identifiers of files to deleteIdentifiableElement.getId()
- Throws:
com.flower.docs.domain.exception.TechnicalException
- If a technical error occurred during process
-
-