org.nuxeo.ecm.platform.suggestbox.service
Interface Suggester
- All Known Implementing Classes:
- DocumentLookupSuggester, DocumentSearchByDateSuggester, DocumentSearchByPropertySuggester, UserGroupLookupSuggester
public interface Suggester
suggest
List<Suggestion> suggest(String userInput,
SuggestionContext context)
throws SuggestionException
- Compute a list of possible user actions or intents given their input and
context.
- Parameters:
userInput
- text typed by the usercontext
- user context
- Returns:
- generated suggestion for the given input and context
- Throws:
SuggestionException
- if the configuration or context are
inconsistent, or a backing service is failing.
initWithParameters
void initWithParameters(SuggesterDescriptor descriptor)
throws ComponentInitializationException
- Configure the Suggester instance with the parameters from the XML
descriptor.
- Parameters:
descriptor
- XMap descriptor with the aggregate configuration
information of the component.
- Throws:
ComponentInitializationException
Copyright © 2012 Nuxeo SA. All Rights Reserved.