public class MockAutoCompleteApi extends Object implements AutoCompleteApi
| Constructor and Description |
|---|
MockAutoCompleteApi() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addProvider(String name,
AutoCompleteProvider provider)
Add a provider to use for testing
|
List<String> |
getProviderNames()
Get a list of all the
autocomplete provider names registered in Attivio |
List<AutoCompleteSuggestion> |
getSuggestions(String providerName,
QueryRequest req)
Get all suggestions from a certain
autocomplete provider given its name and
a query request |
void |
resourceModified(String uri)
Notifies all
autocomplete providers that share resources
that their resource has been modified. |
public static void addProvider(String name, AutoCompleteProvider provider)
name - name of providerprovider - provider objectpublic List<AutoCompleteSuggestion> getSuggestions(String providerName, QueryRequest req) throws AttivioException
AutoCompleteApiautocomplete provider given its name and
a query requestgetSuggestions in interface AutoCompleteApiproviderName - name of autocomplete provider to usereq - query requestAttivioExceptionpublic void resourceModified(String uri) throws AttivioException
AutoCompleteApiautocomplete providers that share resources
that their resource has been modified.resourceModified in interface AutoCompleteApiuri - resource as a uri stringAttivioExceptionpublic List<String> getProviderNames() throws AttivioException
AutoCompleteApiautocomplete provider names registered in AttiviogetProviderNames in interface AutoCompleteApiAttivioExceptionCopyright © 2018 Attivio, Inc. All Rights Reserved.
PATENT NOTICE: Attivio, Inc. Software Related Patents. With respect to the Attivio software product(s) being used, the following patents apply: Querying Joined Data Within A Search Engine Index: United States Patent No.(s): 8,073,840. Ordered Processing of Groups of Messages: U.S. Patent No.(s) 8,495,656. Signal processing approach to sentiment analysis for entities in documents: U.S. Patent No.(s) 8,725,494. Other U.S. and International Patents Pending.