@PublicApi public class ContentBlueprintResource extends Object
Constructor and Description |
---|
ContentBlueprintResource(ContentBlueprintService contentBlueprintService) |
Modifier and Type | Method and Description |
---|---|
Content |
publishLegacyDraft(ContentId draftId,
Content content,
ContentStatus status,
String expand)
Publishes a legacy draft of a Content created from a ContentBlueprint
|
Content |
publishSharedDraft(ContentId draftId,
Content content,
ContentStatus status,
String expand)
Publishes a shared draft of a Content created from a ContentBlueprint
|
public ContentBlueprintResource(ContentBlueprintService contentBlueprintService)
public Content publishLegacyDraft(ContentId draftId, Content content, ContentStatus status, String expand) throws ServiceException
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
ServiceException
public Content publishSharedDraft(ContentId draftId, Content content, ContentStatus status, String expand) throws ServiceException
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
ServiceException
Copyright © 2003–2018 Atlassian. All rights reserved.