public class SuggestionContext extends HashMap<String,Object>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier and Type | Field and Description |
---|---|
DocumentModel |
currentDocument |
Locale |
locale |
Map<String,String> |
messages |
Principal |
principal |
CoreSession |
session |
String |
suggesterGroup |
Constructor and Description |
---|
SuggestionContext(String suggesterGroup,
Principal principal) |
Modifier and Type | Method and Description |
---|---|
SuggestionContext |
withCurrentDocument(DocumentModel currentDocument) |
SuggestionContext |
withLocale(Locale locale) |
SuggestionContext |
withMessages(Map<String,String> messages) |
SuggestionContext |
withSession(CoreSession session) |
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
equals, hashCode, toString
public final String suggesterGroup
public transient CoreSession session
public DocumentModel currentDocument
public SuggestionContext(String suggesterGroup, Principal principal) throws IllegalArgumentException
IllegalArgumentException
public SuggestionContext withSession(CoreSession session)
public SuggestionContext withCurrentDocument(DocumentModel currentDocument)
public SuggestionContext withLocale(Locale locale)
public SuggestionContext withMessages(Map<String,String> messages)
Copyright © 2016 Nuxeo SA. All rights reserved.