Class ContentBlueprintResource
- java.lang.Object
-
- com.atlassian.confluence.plugins.restapi.resources.ContentBlueprintResource
-
@PublicApi public class ContentBlueprintResource extends Object
-
-
Constructor Summary
Constructors Constructor Description ContentBlueprintResource(ContentBlueprintService contentBlueprintService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Content
publishLegacyDraft(ContentId draftId, Content content, ContentStatus status, String expand)
Publishes a legacy draft of a Content created from a ContentBlueprintContent
publishSharedDraft(ContentId draftId, Content content, ContentStatus status, String expand)
Publishes a shared draft of a Content created from a ContentBlueprint
-
-
-
Constructor Detail
-
ContentBlueprintResource
public ContentBlueprintResource(ContentBlueprintService contentBlueprintService)
-
-
Method Detail
-
publishLegacyDraft
public Content publishLegacyDraft(ContentId draftId, Content content, ContentStatus status, String expand) throws ServiceException
Publishes a legacy draft of a Content created from a ContentBlueprint- Parameters:
draftId
- the id of the draftcontent
- the content to be created, where the status of the included content is "current", and the content has an ID (which will be the draft ID)status
- only support 'draft' status for now.expand
- A comma separated list of properties to expand on the content. Default value:body.storage,history,space,version,ancestors
- Returns:
- a JSON representation of the content
- Throws:
ServiceException
-
publishSharedDraft
public Content publishSharedDraft(ContentId draftId, Content content, ContentStatus status, String expand) throws ServiceException
Publishes a shared draft of a Content created from a ContentBlueprint- Parameters:
draftId
- the id of the draftcontent
- the content to be created, where the status of the included content is "current", and the content has an ID (which will be the draft ID)status
- only support 'draft' status for now.expand
- A comma separated list of properties to expand on the content. Default value:body.storage,history,space,version,ancestors
- Returns:
- a JSON representation of the content
- Throws:
ServiceException
-
-