Interface PublishingServiceInterface

Service that provides access to publishing workflow actions

interface PublishingServiceInterface {
    createSiteDraft(site): Promise<SiteInterface>;
    discardDraft(draftSite): Promise<void>;
    publishDraft(draftSite): Promise<void>;
}

Methods

  • Discard a draft for the given site. This method resets site repository cache and refreshes users and groups if discard successful.

    Parameters

    • draftSite: SiteInterface

      The draft site for which to discard a draft

    Returns Promise<void>

  • Publish the given draft site, transforming the site in a published one.

    Parameters

    Returns Promise<void>

Generated using TypeDoc