public interface ContentDraftManagerInternal
ContentEntityObject.DRAFT| Modifier and Type | Method and Description |
|---|---|
<T extends ContentEntityObject> |
createDraft(T obj,
SaveContext saveContext)
This method sets the common properties of the
ContentEntityObject to be saved as a draft |
<T extends ContentEntityObject> |
findAllDraftsFor(long contentId)
Retrieves a list of drafts for the given content ID if any exist.
|
List<ContentEntityObject> |
findAllDraftsWithUnpublishedChangesForUser(String creatorName)
Retrieves the drafts for the given
User |
<T extends ContentEntityObject> |
findDraftFor(long contentId)
Retrieves the draft for the given content ID if it exists
|
<T extends ContentEntityObject> |
findDraftFor(T ceo)
Retrieves the draft for the given content if exists.
|
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 |
<T extends ContentEntityObject> T createDraft(T obj, SaveContext saveContext)
ContentEntityObject to be saved as a draftobj - - the ContentEntityObject to save as draftsaveContext - - a SaveContext holding additional parameters for the manager to use when saving.ContentEntityObject.DRAFT<T extends ContentEntityObject> T findDraftFor(T ceo)
ceo - the entity object to retrieve the draft forContentEntityObject.DRAFT<T extends ContentEntityObject> List<T> findAllDraftsFor(long contentId)
contentId - The content ID used to identify the draftsContentEntityObject.DRAFT<T extends ContentEntityObject> T findDraftFor(long contentId)
contentId - The content ID used to identify the draftContentEntityObject.DRAFTList<ContentEntityObject> findUnpublishedContentWithUserContributions(String username)
User
IMPORTANT: this method doesn't return published shared drafts, only personal drafts and unpublished shared draftsusername - the owner of the draftsContentEntityObject with the
ContentEntityObject.DRAFT statusList<ContentEntityObject> findAllDraftsWithUnpublishedChangesForUser(String creatorName)
UsercreatorName - the owner of the draftsContentEntityObject objejcts)Copyright © 2003–2021 Atlassian. All rights reserved.