Class Index | File Index

Classes


Class finesse.clientservices.ClientServices

Allow clients to make Finesse API requests and consume Finesse events by calling a set of exposed functions. The Services layer will do the dirty work of establishing a shared BOSH connection (for designated Master modules), consuming events for client subscriptions, and constructing API requests.
Defined in: finesse.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
 
init(config)
Initiates the Client Services with the specified config parameters.
Class Detail
finesse.clientservices.ClientServices()
Method Detail
init(config)
Initiates the Client Services with the specified config parameters. Enabling the Client Services as Master will trigger the establishment of a BOSH event connection.
     finesse.clientservices.ClientServices.init(finesse.gadget.Config);
Parameters:
{Object} config
Configuration object containing properties used for making REST requests:
  • host: The Finesse server IP/host as reachable from the browser
  • restHost: The Finesse API IP/host as reachable from the gadget container
  • id: The ID of the user. This is an optional param as long as the appropriate authorization string is provided, otherwise it is required.
  • password: The password belonging to the user. This is an optional param as long as the appropriate authorization string is provided, otherwise it is required.
  • authorization: The base64 encoded "id:password" authentication string. This param is provided to allow the ability to hide the password param. If provided, the id and the password extracted from this string will be used over the config.id and config.password.
Throws:
{Error}
If required constructor parameter is missing.

Documentation generated by JsDoc Toolkit 2.3.2 on Tue May 27 2014 20:34:35 GMT-0400 (EDT)