Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ServicePublisher

The publisher is used by the importer to publish or unpublish records.

Hierarchy

  • ServicePublisher

Index

Methods

publish

  • publish(record: Record): PromiseLike<Record>
  • publish(record: Record, resultHandler: ((res: AsyncResult<Record>) => void) | Handler<AsyncResult<Record>>): void
  • Publishes a record.

    Parameters

    Returns PromiseLike<Record>

  • Publishes a record.

    Parameters

    • record: Record
    • resultHandler: ((res: AsyncResult<Record>) => void) | Handler<AsyncResult<Record>>

    Returns void

unpublish

  • unpublish(id: string): PromiseLike<void>
  • unpublish(id: string, resultHandler: ((res: AsyncResult<void>) => void) | Handler<AsyncResult<void>>): void
  • Un-publishes a record.

    Parameters

    • id: string

    Returns PromiseLike<void>

  • Un-publishes a record.

    Parameters

    • id: string
    • resultHandler: ((res: AsyncResult<void>) => void) | Handler<AsyncResult<void>>

    Returns void

update

  • update(record: Record): PromiseLike<Record>
  • update(record: Record, resultHandler: ((res: AsyncResult<Record>) => void) | Handler<AsyncResult<Record>>): void
  • Updates an existing record.

    Parameters

    Returns PromiseLike<Record>

  • Updates an existing record.

    Parameters

    • record: Record
    • resultHandler: ((res: AsyncResult<Record>) => void) | Handler<AsyncResult<Record>>

    Returns void

Generated using TypeDoc