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:
-
callback
Function()Function to be called for cda query done.
-
options
ObjectOptions to use on http request.
doQuery
-
callback
-
options
Invokes the /cda/doQuery
endpoint of CDA.
Parameters:
-
callback
Function()Function to be called for cda query done.
-
options
ObjectOptions to use on http request.
getCdaFile
-
callback
-
options
Invokes the /cda/getCdaFile
endpoint of CDA.
Parameters:
-
callback
Function()Function to be called for cda query done.
-
options
ObjectOptions to use on http request.
getCdaList
-
callback
-
options
Invokes the /cda/getCdaList
endpoint of CDA.
Parameters:
-
callback
Function()Function to be called for cda query done.
-
options
ObjectOptions to use on http request.
listDataAccessTypes
-
callback
-
options
Invokes the /cda/listDataAccessTypes
endpoint of CDA.
Parameters:
-
callback
Function()Function to be called for cda query done.
-
options
ObjectOptions to use on http request.
listParameters
-
callback
-
options
Invokes the /cda/listParameters
endpoint of CDA.
Parameters:
-
callback
Function()Function to be called for cda query done.
-
options
ObjectOptions to use on http request.
listQueries
-
callback
-
options
Invokes the /cda/listQueries
endpoint of CDA.
Parameters:
-
callback
Function()Function to be called for cda query done.
-
options
ObjectOptions 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_TIMEOUT
int: 60000 - number of milliseconds before a request to the Pentaho server will timeoutASYNC
boolean: true - determines whether synchronous or asynchronous communication with the Pentaho server will be used.ACCEPT
string: text/xml, application/json - determines the accept header on http request with the Pentaho server will be used.CONTENT_TYPE
string: application/json - determines the content-type header on http request with the Pentaho server will be used.METHOD
string: GET - determines the method on http request with the Pentaho server will be used.