SiteQueryService Class
Create an instance of the site query service specific to the given site
Item Index
Methods
- _doQuery
- addToAnd static
- addToOr static
- applySiteOperation static
- getCollections
- isGlobal
- modifyLoadOptions static
- modifyLoadWhere static
- modifySave
- save
- siteSpecific
Properties
- GLOBAL_SITE static
- onlyThisSite
- SITE_FIELD static
- siteUid
Methods
_doQuery
(
protected
-
options
-
callback
Overriding protected method of DAO to achieve site-aware query
Parameters:
-
options
Object -
callback
Function
addToAnd
(
private
static
-
whereClause
-
conditions
Parameters:
-
whereClause
Object -
conditions
Array
addToOr
(
private
static
-
whereClause
-
conditions
Parameters:
-
whereClause
Object -
conditions
Array
applySiteOperation
(
private
static
-
self
-
callback
-
delegate
Parameters:
-
self
SiteQueryService -
callback
Function -
delegate
Function
getCollections
(
-
cb
Gets all collection names
Parameters:
-
cb
Function
isGlobal
(
Boolean
private
-
siteUid
Parameters:
-
siteUid
String
Returns:
Boolean:
modifyLoadOptions
(
Object
private
static
-
site
-
options
Parameters:
-
site
String -
options
Object
Returns:
Object:
modifyLoadWhere
(
Object
private
static
-
site
-
where
Parameters:
-
site
String -
where
Object
Returns:
Object:
modifySave
(
Object
private
-
site
-
objectToSave
Parameters:
-
site
String -
objectToSave
Object
Returns:
Object:
The object to save
save
(
-
dbObj
-
[options]
-
callback
Wrapper for site-aware DAO.save. Saves object to database
Parameters:
-
dbObj
Object -
[options]
Object optional -
callback
Function