API Docs for: 0.8.0
Show:

SiteQueryService Class

Create an instance of the site query service specific to the given site

Methods

_doQuery

(
  • options
  • callback
)
protected

Overriding protected method of DAO to achieve site-aware query

Parameters:

  • options Object
  • callback Function

addToAnd

(
  • whereClause
  • conditions
)
private static

Parameters:

  • whereClause Object
  • conditions Array

addToOr

(
  • whereClause
  • conditions
)
private static

Parameters:

  • whereClause Object
  • conditions Array

applySiteOperation

(
  • self
  • callback
  • delegate
)
private static

Parameters:

getCollections

(
  • cb
)

Gets all collection names

Parameters:

  • cb Function

isGlobal

(
  • siteUid
)
Boolean private

Parameters:

  • siteUid String

Returns:

Boolean:

modifyLoadOptions

(
  • site
  • options
)
Object private static

Parameters:

  • site String
  • options Object

Returns:

Object:

modifyLoadWhere

(
  • site
  • where
)
Object private static

Parameters:

  • site String
  • where Object

Returns:

Object:

modifySave

(
  • site
  • objectToSave
)
Object private

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

siteSpecific

(
  • self
)
Boolean private

Parameters:

Returns:

Boolean:

Properties

GLOBAL_SITE

String private static

onlyThisSite

Boolean

SITE_FIELD

String private static