SettingService Class
Constructor
SettingService
(
-
options
Parameters:
-
options
Object-
site
String -
onlyThisSite
Boolean
-
Item Index
Methods
- _get
- afterDelete static
- afterSave static
- deleteById
- format static
- getIdWhere
- static
- validate static
Properties
Methods
_get
(
protected
-
id
-
options
-
cb
Parameters:
-
id
String -
options
Object -
cb
Function
afterDelete
(
static
-
context
-
cb
Purges the data from the cache after it is deleted from the persistence store
Parameters:
-
context
Object -
cb
FunctionTakes a single error, if exists
afterSave
(
static
-
context
-
cb
Parameters:
-
context
Object -
cb
Function
deleteById
(
-
id
-
options
-
cb
Deletes an object by key
Parameters:
-
id
String -
options
Object -
cb
Function
format
(
static
-
context
-
cb
Formats the data before it is merged
Parameters:
-
context
Object -
cb
FunctionTakes 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:
-
dto
Object
Returns:
Object:
(
static
-
context
-
service
-
cb
Parameters:
-
context
Object -
service
SettingServiceAn instance of the service that triggered the event that called this handler
-
cb
FunctionA callback that takes a single parameter: an error if occurred
validate
(
static
-
context
-
cb
Parameters:
-
context
Object-
data
ObjectThe DTO that was provided for persistence
-
service
TopicServiceAn instance of the service that triggered the event that called this handler
-
-
cb
FunctionA callback that takes a single parameter: an error if occurred