Class LegacyContentDraftServiceImpl
- java.lang.Object
 - 
- com.atlassian.confluence.api.impl.service.content.draft.LegacyContentDraftServiceImpl
 
 
- 
- All Implemented Interfaces:
 ContentDraftService
public class LegacyContentDraftServiceImpl extends Object implements ContentDraftService
 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from interface com.atlassian.confluence.api.service.content.ContentDraftService
ContentDraftService.ConflictPolicy, ContentDraftService.DraftErrorCodes, ContentDraftService.DraftValidator 
 - 
 
- 
Field Summary
Fields Modifier and Type Field Description static StringINTERNAL_DRAFT 
- 
Constructor Summary
Constructors Constructor Description LegacyContentDraftServiceImpl(PermissionManager permissionManager, ContentService contentService, DraftManager draftManager, PermissionCheckExemptions permissionCheckExemptions, AccessModeService accessModeService, CustomContentManager customContentManager, ContentDraftManagerInternal contentDraftManager, ScopesRequestCacheDelegate scopesRequestCacheDelegate) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteDraft(ContentId draftId)Deletes the draft for this content.ContentpublishEditDraft(Content content, ContentDraftService.ConflictPolicy conflictPolicy)Update existing page/blog post that has an existing draftContentpublishNewDraft(Content content, Expansion... expansions)Publishes the draft.ContentDraftService.DraftValidatorvalidator() 
 - 
 
- 
- 
Field Detail
- 
INTERNAL_DRAFT
public static final String INTERNAL_DRAFT
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Constructor Detail
- 
LegacyContentDraftServiceImpl
public LegacyContentDraftServiceImpl(PermissionManager permissionManager, ContentService contentService, DraftManager draftManager, PermissionCheckExemptions permissionCheckExemptions, AccessModeService accessModeService, CustomContentManager customContentManager, ContentDraftManagerInternal contentDraftManager, ScopesRequestCacheDelegate scopesRequestCacheDelegate)
 
 - 
 
- 
Method Detail
- 
publishNewDraft
public Content publishNewDraft(Content content, Expansion... expansions) throws ServiceException
Description copied from interface:ContentDraftServicePublishes the draft. This will change the status of the current draft to current.- Specified by:
 publishNewDraftin interfaceContentDraftService- Parameters:
 content- new content to be createdexpansions- An array list of properties to expand on the content.- Returns:
 - the newly published content
 - Throws:
 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 draftServiceException
 
- 
publishEditDraft
public Content publishEditDraft(Content content, ContentDraftService.ConflictPolicy conflictPolicy)
Description copied from interface:ContentDraftServiceUpdate existing page/blog post that has an existing draft- Specified by:
 publishEditDraftin interfaceContentDraftService- Parameters:
 content- 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 automerge- Returns:
 - the updated content
 
 
- 
deleteDraft
public void deleteDraft(ContentId draftId)
Description copied from interface:ContentDraftServiceDeletes the draft for this content. In the case of shared drafts, only drafts which have never been published can be deleted- Specified by:
 deleteDraftin interfaceContentDraftService- Parameters:
 draftId- id of the draft to delete
 
- 
validator
public ContentDraftService.DraftValidator validator()
- Specified by:
 validatorin interfaceContentDraftService
 
 - 
 
 -