WL.Client.invokeProcedure(invocationData, options)
Invoke a procedure exposed by an adapter.
• invocationData – Data passed in to control the request to the adapter. This object
contains the following properties:
◦ adapter – The name of the adapter which is to be invoked. This is a mandatory
property.
◦ procedure – The name of the procedure exposed by the adapter that is to be invoked.
This is a mandatory property.
◦ parameters – An optional array of parameters that is to be passed through the adapter
to the back-end.
◦ compressResponse – An optional indication as to whether the response should be
compressed.
• options – Options used to handle the response from the adapater call. This object contains
the following properties:
◦ timeout – The number of milliseconds to wait before timing out the request.
◦ onSuccess – A function which will be invoked when the adapter response is available
and the adapter indicates that it was successful. The response function receives an
object parameter with the following properties
▪ invocationContext – An optional invocation context object that was passed in
with the original procedure invocation.
▪ status – The HTTP status code.
▪ invocationResult – A description of the results of performing the request.
◦ onFailure – A function which will be invoked when the adapter returns an error
indication. The error response function receives the same types of parameters as the
successful response.
▪ invocationContext
WL.Client.isUserAuthenticated(realm)
Determines whether or not the client is currently authenticated.
• realm – ???
WL.Client.logActivity(activityType)
A function which when called will log that the client has performed some activity. This is used for
auditing and reporting.
• activityType – A text string that describes the activity being performed by the client.
WL.Client.login(realm, options)
A function which when called will login a user.
Page 107
Comentários a estes Manuais