Used by InputSearch's peer.
The class is to help manage asynchronicity of searchSection resource fetching
to return the data in a sequence same as the array sequence.
Method Summary |
private static Boolean |
_beforePrefilter(Object component, Object suggestions, Object isListComprehensive, Object options)
Callback before invoking the "filter" property.
|
private static Object |
_defaultFetchComplete(Object response, Object options)
The callback on successful REST call completion
|
private static Object |
_defaultFetchFailed(Object statusCode, Object response, Object options)
The callback on REST call failure
|
private Object |
_fetchComplete(Object response, Object options)
The callback for fetch completion of all the searchSections
|
private Object |
_fetchFailed(Object statusCode, Object response, Object options)
The failure callbcak for all the searchSections
|
private static Object |
_fetchingSpecificSuggestionsComplete(Object response, Object options)
|
private static Object |
_fetchingSpecificSuggestionsFailed(Object statusCode, Object response, Object options)
|
public static Object |
fetchSection(Object inputSearch, Object searchSection, Object isPrefetch, Object options)
Fetch the searchSection instance.
|
public static Object |
fetchSpecificSuggestions(Object inputSearch, Object values)
|
private static Object |
_getDefaultOptions(Object inputSearch, Object searchSection, Object isPrefetch, Object options)
Gets the options for the REST call
|
private Object |
_getIndexToStartNotify(Object fetchedIndex)
|
private Object |
_getOptions(Object inputSearch, Object searchSection, Object index)
|
private static Object |
_getPrefetchOptions(Object inputSearch, Object searchSection)
|
protected Object |
Init(Object searchSections)
Initializes the instance.
|
protected static Object |
InitClass()
|
private Object |
_notify(Object fetchedIndex, Object inputSearch)
The method that invokes the __sequencedCallback method on the peer
sequentially in the order of the searchSection array passed to the
constructor.
|
private static Object |
_parse(Object xhrResponse)
Parses the raw data after it's returned from the data service and returns the collection object
Invoke from peer file too.
|
private Object |
_popuplateNonUrlSections(Object inputSearch, Object masterSuggestions)
Popuplating data for searchSection which have "filter" attribute configured
instead of "dataUrl"
|
private static Object |
_prefetchComplete(Object response, Object options)
Callback only for non default searchSections on successful REST call
completion
|
private static Object |
_prefetchFailed(Object statusCode, Object response, Object options)
Callback only for non default searchSections on REST call failure
|
public static Array |
prefilter(AdfRichInputSearch|AdfRichSearchSection component, Array collection)
Excute Array.filter like operation on the collection object passed.
|
private Object |
_sendRequest(Object sectionalData)
|
public Object |
sendRequests()
The method to be invoked by the peer to make REST calls
to all the searchSections passed to the constructor.
|
private Object |
_shouldNotify(Object fetchedIndex)
|
private static Object |
_shouldProcessPrefetchRequests(Object inputSearch)
|
private static Object |
_wrapSuggestion(Object suggestionItem, Object index)
|
private static Object |
_wrapSuggestions(Object collection, Object keyAttribute)
|