Class ContentBlueprintResource


  • @PublicApi
    public class ContentBlueprintResource
    extends Object
    • Constructor Detail

    • 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 draft
        content - 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 draft
        content - 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