The dispatchJob() method handles job dispatch requests, dispatching a search job and flattening intentions as needed, if the job is not already dispatched.
Note: This method is called by pushContextToChildren() in modules derived from AbstractModule and should not be called directly.
results = dispatchJob( onSuccess , onFailure ), group)
|
onSuccess |
Object |
(Optional) Function to call on successful operation. |
|
onFailure |
Object |
(Optional) Function to call on unsuccessful operation. |
|
group |
String |
(Optional) group identifier for UI to display last refreshed text at the top of the appropriate group hierarchy. |
|
Boolean |
Job dispatch status: True = Search job successfully dispatched. False = Search job is already dispatched. |
search.dispatchJob(this._fireDispatchSuccessHandler.bind(this),
this._fireDispatchFailHandler.bind(this),
this.getGroupName());