Interface DocumentLinkDAO

    • Method Detail

      • findByDocId

        List<DocumentLink> findByDocId​(long docId)
        This method finds the list of document link in which there is a document with the given ID
        Parameters:
        docId - ID of the document
        Returns:
        The list of document link
      • findByDocId

        List<DocumentLink> findByDocId​(long docId,
                                       String type)
        This method finds the list of document link, filtered by the given link type, in which there is a document with the given ID
        Parameters:
        docId - ID of the document
        type - Type of each document link in the return list
        Returns:
        The list of document link
      • findByDocIdsAndType

        DocumentLink findByDocIdsAndType​(long docId1,
                                         long docId2,
                                         String type)
        Find a document link using its alternate keys
        Parameters:
        docId1 - identifier of the first document
        docId2 - identifier of the second
        type - the document type(null or pdf
        Returns:
        The found instance