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, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
equals, hashCode, toString
public final String suggesterGroup
public final Principal principal
public transient CoreSession session
public DocumentModel currentDocument
public Locale locale
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 © 2015 Nuxeo SA. All rights reserved.