Package com.attivio.sdk.client
Interface AutoCompleteApi
-
- All Superinterfaces:
ExposedApi
- All Known Implementing Classes:
MockAutoCompleteApi
public interface AutoCompleteApi extends ExposedApi
API for the retrieving of query completion suggestions based on a current query request.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<java.lang.String>getProviderNames()Get a list of all theautocomplete providernames registered in Attiviojava.util.List<AutoCompleteSuggestion>getSuggestions(java.lang.String providerName, QueryRequest req)Get all suggestions from a certainautocomplete providergiven its name and a query requestvoidresourceModified(java.lang.String uri)Notifies allautocomplete providersthat share resources that their resource has been modified.
-
-
-
Method Detail
-
getSuggestions
java.util.List<AutoCompleteSuggestion> getSuggestions(java.lang.String providerName, QueryRequest req) throws AttivioException
Get all suggestions from a certainautocomplete providergiven its name and a query request- Parameters:
providerName- name ofautocomplete providerto usereq- query request- Returns:
- list of suggestions for completion
- Throws:
AttivioException
-
resourceModified
void resourceModified(java.lang.String uri) throws AttivioExceptionNotifies allautocomplete providersthat share resources that their resource has been modified.- Parameters:
uri- resource as a uri string- Throws:
AttivioException
-
getProviderNames
java.util.List<java.lang.String> getProviderNames() throws AttivioExceptionGet a list of all theautocomplete providernames registered in Attivio- Returns:
- list of provider names
- Throws:
AttivioException
-
-