public interface SuggestionService
Modifier and Type | Method and Description |
---|---|
Object |
handleSelection(Suggestion suggestion,
SuggestionContext context)
Call the Content Automation Operation chain matching the suggestion
selected by the user.
|
List<Suggestion> |
suggest(String userInput,
SuggestionContext context)
Call the suggesters registered for the given suggestion point mentioned
in the context and aggregate the results.
|
List<Suggestion> |
suggest(String searchKeywords,
SuggestionContext suggestionContext,
String suggester)
Call a single suggester registered under the provided name.
|
List<Suggestion> suggest(String userInput, SuggestionContext context) throws SuggestionException
userInput
- text typed by the usercontext
- user context (with suggestPoint name and more)SuggestionException
List<Suggestion> suggest(String searchKeywords, SuggestionContext suggestionContext, String suggester) throws SuggestionException
userInput
- text typed by the usercontext
- user context (with suggestPoint name and more)suggester
- the registration name of the suggester to useSuggestionException
Object handleSelection(Suggestion suggestion, SuggestionContext context) throws SuggestionHandlingException
suggestion
- the selected suggestion to executecontext
- the suggestion context that is also passed to as Content
Automation context.SuggestionHandlingException
Copyright © 2011 Nuxeo SA. All Rights Reserved.