public class UserGroupLookupSuggester extends Object implements Suggester
| Modifier and Type | Field and Description | 
|---|---|
protected SuggesterDescriptor | 
descriptor  | 
protected String | 
groupIconURL  | 
protected int | 
groupSuggestionsLimit  | 
protected List<String> | 
searchFields  | 
protected String | 
searchIconURL  | 
protected String | 
searchLabelPrefix  | 
protected String | 
suggesterId  | 
protected String | 
userIconURL  | 
protected int | 
userSuggestionsLimit  | 
| Constructor and Description | 
|---|
UserGroupLookupSuggester()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
initWithParameters(SuggesterDescriptor descriptor)
Configure the Suggester instance with the parameters from the XML descriptor. 
 | 
List<Suggestion> | 
suggest(String userInput,
       SuggestionContext context)
Compute a list of possible user actions or intents given their input and context. 
 | 
protected String userIconURL
protected String groupIconURL
protected String searchIconURL
protected SuggesterDescriptor descriptor
protected List<String> searchFields
protected final String searchLabelPrefix
protected int userSuggestionsLimit
protected int groupSuggestionsLimit
protected String suggesterId
public UserGroupLookupSuggester()
public List<Suggestion> suggest(String userInput, SuggestionContext context) throws SuggestionException
Suggestersuggest in interface SuggesteruserInput - text typed by the usercontext - user contextSuggestionException - if the configuration or context are inconsistent, or a backing service is failing.public void initWithParameters(SuggesterDescriptor descriptor)
SuggesterinitWithParameters in interface Suggesterdescriptor - XMap descriptor with the aggregate configuration information of the component.Copyright © 2016 Nuxeo SA. All rights reserved.