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.
|
<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 |
<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.DRAFT
List<ContentEntityObject> findUnpublishedContentWithUserContributions(String username)
User
username
- the owner of the draftsContentEntityObject
with the
ContentEntityObject.DRAFT
statusCopyright © 2003–2019 Atlassian. All rights reserved.