@PublicApi public class ContentBlueprintResource extends Object
| Constructor and Description |
|---|
ContentBlueprintResource(org.osgi.framework.BundleContext bundleContext) |
| Modifier and Type | Method and Description |
|---|---|
Content |
publish(ContentId draftId,
Content content,
ContentStatus status,
String expand)
Publishes a draft of a Content created from a ContentBlueprint
|
public ContentBlueprintResource(org.osgi.framework.BundleContext bundleContext)
public Content publish(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,ancestorsServiceExceptionCopyright © 2003–2016 Atlassian. All rights reserved.