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 to Document 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
    • 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 requested IdentifiableElement.getId()
        fileIds - The identifiers of the document files IdentifiableElement.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 changed
        fileIds - The identifiers of files to delete IdentifiableElement.getId()
        Throws:
        com.flower.docs.domain.exception.TechnicalException - If a technical error occurred during process