Class TemplateContext
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<String,Object>
-
- org.exoplatform.commons.api.notification.service.template.TemplateContext
-
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,Object>
public class TemplateContext extends HashMap<String,Object>
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Constructor Summary
Constructors Constructor Description TemplateContext()TemplateContext(String pluginId, String language)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TemplateContextchannelKey(ChannelKey channelKey)TemplateContextdigestType(int digestSize)TemplateContextend()ChannelKeygetChannelKey()intgetDigestSize()ThrowablegetException()StringgetLanguage()StringgetPluginId()TemplateContextlanguage(String language)static TemplateContextnewChannelInstance(ChannelKey channelKey, String pluginId, String language)TemplateContextpluginId(String pluginId)voidsetException(Throwable exception)Holds the exception if have any on transform processing.-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
-
-
-
Method Detail
-
newChannelInstance
public static TemplateContext newChannelInstance(ChannelKey channelKey, String pluginId, String language)
-
setException
public void setException(Throwable exception)
Holds the exception if have any on transform processing.- Parameters:
exception-
-
getException
public Throwable getException()
-
digestType
public TemplateContext digestType(int digestSize)
-
channelKey
public TemplateContext channelKey(ChannelKey channelKey)
-
pluginId
public TemplateContext pluginId(String pluginId)
-
language
public TemplateContext language(String language)
-
end
public TemplateContext end()
- Returns:
- the TemplateContext
-
getPluginId
public String getPluginId()
- Returns:
- the pluginId
-
getChannelKey
public ChannelKey getChannelKey()
- Returns:
- the channelId
-
getLanguage
public String getLanguage()
- Returns:
- the language
-
getDigestSize
public int getDigestSize()
- Returns:
- the digestSize
-
-