API Docs for: 0.8.0
Show:

SettingService Class

Constructor

SettingService

(
  • options
)

Parameters:

  • options Object
    • site String
    • onlyThisSite Boolean

Item Index

Methods

Properties

Methods

_get

(
  • id
  • options
  • cb
)
protected

Parameters:

  • id String
  • options Object
  • cb Function

afterDelete

(
  • context
  • cb
)
static

Purges the data from the cache after it is deleted from the persistence store

Parameters:

  • context Object
  • cb Function

    Takes a single error, if exists

afterSave

(
  • context
  • cb
)
static

Parameters:

  • context Object
  • cb Function

deleteById

(
  • id
  • options
  • cb
)

Deletes an object by key

Parameters:

  • id String
  • options Object
  • cb Function

format

(
  • context
  • cb
)
static

Formats the data before it is merged

Parameters:

  • context Object
  • cb Function

    Takes a single error, if exists

getIdWhere

(
  • dto
)
Object

Constructs the where condition that uniquely identifies the DTO from the persistence store. If the clause cannot be constructed the function should return null

Parameters:

  • dto Object

Returns:

Object:

(
  • context
  • service
  • cb
)
static

Parameters:

  • context Object
  • service SettingService

    An instance of the service that triggered the event that called this handler

  • cb Function

    A callback that takes a single parameter: an error if occurred

validate

(
  • context
  • cb
)
static

Parameters:

  • context Object
    • data Object

      The DTO that was provided for persistence

    • service TopicService

      An instance of the service that triggered the event that called this handler

  • cb Function

    A callback that takes a single parameter: an error if occurred

Properties