Interface AttachmentDaoInternal

    • Method Detail

      • getLatestVersionsOfAttachmentsWithAnyStatusForContainers

        List<Attachment> getLatestVersionsOfAttachmentsWithAnyStatusForContainers​(Iterable<? extends ContentEntityObject> contentEntityObjects)
        Retrieves the latest versions of all attachments for all CEOs provided (including trashed)
        Parameters:
        contentEntityObjects - CEOs to retrieve attachements for
        Returns:
        a List of Attachment objects
        Since:
        6.12.0
      • getFilteredLatestVersionsOfAttachments

        default PageResponse<Attachment> getFilteredLatestVersionsOfAttachments​(ContentEntityObject ceo,
                                                                                LimitedRequest pageRequest,
                                                                                Predicate<? super Attachment> predicate)
        Retrieves a paginated list of the latest version of attachments to the ceo filtered by the predicate
        Parameters:
        ceo - the content to find attachments on
        pageRequest - the pagination request
        predicate - a predicate to filter the results by
        Returns:
        a paginated list of attachments
        Since:
        7.0.1
      • removeAllVersionsFromServer

        List<Attachment> removeAllVersionsFromServer​(Attachment attachment)
        Removes all versions of an attachment
        Parameters:
        attachment - the Attachment to be removed
        Returns:
        all versions that have been removed
        Since:
        7.14.0