Interface AttachmentManagerInternal

    • Method Detail

      • getFilteredAttachments

        @Transactional(readOnly=true)
        default PageResponse<Attachment> getFilteredAttachments​(ContentEntityObject content,
                                                                LimitedRequest pageRequest,
                                                                Predicate<? super Attachment> filterPredicate)
        Returns the current attachments under the CEO.
        Parameters:
        content - the content to return attachments for
        pageRequest - the pagination requested
        filterPredicate - the predicate for filtering found attachments
        Returns:
        the paginated response of Page entities
        Since:
        7.0.1
      • moveAttachment

        void moveAttachment​(Attachment attachment,
                            ContentEntityObject newContainer)
        Moves an attachment to a different ContentEntityObject container.
        Parameters:
        attachment - The attachment to be moved
        newContainer - The new ContentEntiityObject which will be parent to the attachment
      • getLatestVersionsOfAttachmentsWithAnyStatusForContainers

        @Transactional(readOnly=true)
        List<Attachment> getLatestVersionsOfAttachmentsWithAnyStatusForContainers​(Iterable<? extends ContentEntityObject> contentEntityObjects)
        Returns a list of all the latest versions of attachments for all the CEOs provided (including trashed)
        Parameters:
        contentEntityObjects -
        Since:
        6.12.0