CDA Class
The CDA class provides a javascript API to communicate Pentaho Community Data Access plugin (CDA) over HTTP.
Constructor
Item Index
Properties
- DEFAULT_OPTIONS static
Methods
clearCache
-
callback -
options
Invokes the /cda/clearCache endpoint of CDA.
Parameters:
-
callbackFunction()Function to be called for cda query done.
-
optionsObjectOptions to use on http request.
doQuery
-
callback -
options
Invokes the /cda/doQuery endpoint of CDA.
Parameters:
-
callbackFunction()Function to be called for cda query done.
-
optionsObjectOptions to use on http request.
getCdaFile
-
callback -
options
Invokes the /cda/getCdaFile endpoint of CDA.
Parameters:
-
callbackFunction()Function to be called for cda query done.
-
optionsObjectOptions to use on http request.
getCdaList
-
callback -
options
Invokes the /cda/getCdaList endpoint of CDA.
Parameters:
-
callbackFunction()Function to be called for cda query done.
-
optionsObjectOptions to use on http request.
listDataAccessTypes
-
callback -
options
Invokes the /cda/listDataAccessTypes endpoint of CDA.
Parameters:
-
callbackFunction()Function to be called for cda query done.
-
optionsObjectOptions to use on http request.
listParameters
-
callback -
options
Invokes the /cda/listParameters endpoint of CDA.
Parameters:
-
callbackFunction()Function to be called for cda query done.
-
optionsObjectOptions to use on http request.
listQueries
-
callback -
options
Invokes the /cda/listQueries endpoint of CDA.
Parameters:
-
callbackFunction()Function to be called for cda query done.
-
optionsObjectOptions to use on http request.
Properties
DEFAULT_OPTIONS
Object
static
These are the default options used for new CDA instances in case no custom properties are set. It sets the following properties:
REQUEST_TIMEOUTint: 60000 - number of milliseconds before a request to the Pentaho server will timeoutASYNCboolean: true - determines whether synchronous or asynchronous communication with the Pentaho server will be used.ACCEPTstring: text/xml, application/json - determines the accept header on http request with the Pentaho server will be used.CONTENT_TYPEstring: application/json - determines the content-type header on http request with the Pentaho server will be used.METHODstring: GET - determines the method on http request with the Pentaho server will be used.
