SettingService Class
Constructor
SettingService
(
-
options
Parameters:
-
optionsObject-
siteString -
onlyThisSiteBoolean
-
Item Index
Methods
- _get
- afterDelete static
- afterSave static
- deleteById
- format static
- getIdWhere
- static
- validate static
Properties
Methods
_get
(
protected
-
id -
options -
cb
Parameters:
-
idString -
optionsObject -
cbFunction
afterDelete
(
static
-
context -
cb
Purges the data from the cache after it is deleted from the persistence store
Parameters:
-
contextObject -
cbFunctionTakes a single error, if exists
afterSave
(
static
-
context -
cb
Parameters:
-
contextObject -
cbFunction
deleteById
(
-
id -
options -
cb
Deletes an object by key
Parameters:
-
idString -
optionsObject -
cbFunction
format
(
static
-
context -
cb
Formats the data before it is merged
Parameters:
-
contextObject -
cbFunctionTakes a single error, if exists
getIdWhere
(
Object
-
dto
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:
-
dtoObject
Returns:
Object:
(
static
-
context -
service -
cb
Parameters:
-
contextObject -
serviceSettingServiceAn instance of the service that triggered the event that called this handler
-
cbFunctionA callback that takes a single parameter: an error if occurred
validate
(
static
-
context -
cb
Parameters:
-
contextObject-
dataObjectThe DTO that was provided for persistence
-
serviceTopicServiceAn instance of the service that triggered the event that called this handler
-
-
cbFunctionA callback that takes a single parameter: an error if occurred
