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:
-
optionsObject -
callbackFunction
addToAnd
(
private
static
-
whereClause -
conditions
Parameters:
-
whereClauseObject -
conditionsArray
addToOr
(
private
static
-
whereClause -
conditions
Parameters:
-
whereClauseObject -
conditionsArray
applySiteOperation
(
private
static
-
self -
callback -
delegate
Parameters:
-
selfSiteQueryService -
callbackFunction -
delegateFunction
getCollections
(
-
cb
Gets all collection names
Parameters:
-
cbFunction
isGlobal
(
Boolean
private
-
siteUid
Parameters:
-
siteUidString
Returns:
Boolean:
modifyLoadOptions
(
Object
private
static
-
site -
options
Parameters:
-
siteString -
optionsObject
Returns:
Object:
modifyLoadWhere
(
Object
private
static
-
site -
where
Parameters:
-
siteString -
whereObject
Returns:
Object:
modifySave
(
Object
private
-
site -
objectToSave
Parameters:
-
siteString -
objectToSaveObject
Returns:
Object:
The object to save
save
(
-
dbObj -
[options] -
callback
Wrapper for site-aware DAO.save. Saves object to database
Parameters:
-
dbObjObject -
[options]Object optional -
callbackFunction
