Interface ContentDraftManagerInternal

    • Method Detail

      • findDraftFor

        <T extends ContentEntityObject> T findDraftFor​(T ceo)
        Retrieves the draft for the given content if exists.
        Parameters:
        ceo - the entity object to retrieve the draft for
        Returns:
        the draft for the given content if exists, null otherwise
        See Also:
        ContentEntityObject.DRAFT
      • findAllDraftsFor

        <T extends ContentEntityObjectList<T> findAllDraftsFor​(long contentId)
        Retrieves a list of drafts for the given content ID if any exist.
        Parameters:
        contentId - The content ID used to identify the drafts
        Returns:
        A non-null list of drafts with 0 or more elements
        Since:
        6.0.6
        See Also:
        ContentEntityObject.DRAFT
      • findDraftFor

        <T extends ContentEntityObject> T findDraftFor​(long contentId)
        Retrieves the draft for the given content ID if it exists
        Parameters:
        contentId - The content ID used to identify the draft
        Returns:
        the draft for the given content ID if it exists, null otherwise
        See Also:
        ContentEntityObject.DRAFT
      • findUnpublishedContentWithUserContributions

        List<ContentEntityObject> findUnpublishedContentWithUserContributions​(String username)
        Retrieves the drafts for the given User IMPORTANT: this method doesn't return published shared drafts, only personal drafts and unpublished shared drafts
        Parameters:
        username - the owner of the drafts
        Returns:
        a list of ContentEntityObject with the ContentEntityObject.DRAFT status
      • findAllDraftsWithUnpublishedChangesForUser

        List<ContentEntityObject> findAllDraftsWithUnpublishedChangesForUser​(String creatorName)
        Retrieves the drafts for the given User
        Parameters:
        creatorName - the owner of the drafts
        Returns:
        a list of user's drafts (ContentEntityObject objejcts)