public class SharedContentDraftServiceImpl extends Object implements ContentDraftService
ContentDraftService.ConflictPolicy, ContentDraftService.DraftErrorCodes, ContentDraftService.DraftValidator| Constructor and Description | 
|---|
SharedContentDraftServiceImpl(ContentService contentService,
                             ContentEntityManagerInternal contentEntityManager,
                             ContentPermissionManager contentPermissionManager,
                             RelatableResolver relatableResolver,
                             PageManager pageManager,
                             com.atlassian.event.api.EventPublisher eventPublisher,
                             RelationService relationService,
                             RelationManager relationManager,
                             AccessModeService accessModeService)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
deleteDraft(ContentId contentId)
Deletes the draft for this content. 
 | 
Content | 
publishEditDraft(Content updatedContent,
                ContentDraftService.ConflictPolicy conflictPolicy)
Update existing page/blog post that has an existing draft 
 | 
Content | 
publishNewDraft(Content content,
               Expansion... expansions)
Deprecated. 
 
since 5.9 - we use the same method for publishing drafts for new pages and for page edits 
 | 
com.atlassian.confluence.api.impl.service.content.draft.SharedContentDraftServiceImpl.DraftValidatorImpl | 
validator()  | 
public SharedContentDraftServiceImpl(ContentService contentService, ContentEntityManagerInternal contentEntityManager, ContentPermissionManager contentPermissionManager, RelatableResolver relatableResolver, PageManager pageManager, com.atlassian.event.api.EventPublisher eventPublisher, RelationService relationService, RelationManager relationManager, AccessModeService accessModeService)
@Deprecated public Content publishNewDraft(Content content, Expansion... expansions) throws ServiceException
publishNewDraft in interface ContentDraftServicecontent - new content to be createdexpansions - An array list of properties to expand on the content.NotFoundException - if the draft doesn't exist or the user
                                                                             doesn't have permission to view itPermissionException - if the user does have permission to
                                                                             modify this draftServiceExceptionpublic Content publishEditDraft(Content updatedContent, ContentDraftService.ConflictPolicy conflictPolicy)
ContentDraftServicepublishEditDraft in interface ContentDraftServiceupdatedContent - page/blog post content, requires a valid content id of an existing draftconflictPolicy - the policy to apply on a conflict, either abort or automerge.  No mergeable conflicts
                       will still return a 409 even if policy is automergepublic void deleteDraft(ContentId contentId)
ContentDraftServicedeleteDraft in interface ContentDraftServicecontentId - id of the draft to deletepublic com.atlassian.confluence.api.impl.service.content.draft.SharedContentDraftServiceImpl.DraftValidatorImpl validator()
validator in interface ContentDraftServiceCopyright © 2003–2022 Atlassian. All rights reserved.