Class TemplateContext
java.lang.Object
java.util.AbstractMap<String,Object>
java.util.HashMap<String,Object>
org.exoplatform.commons.api.notification.service.template.TemplateContext
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,Object>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchannelKey(ChannelKey channelKey) digestType(int digestSize) end()intstatic TemplateContextnewChannelInstance(ChannelKey channelKey, String pluginId, String language) 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, newHashMap, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Constructor Details
-
TemplateContext
public TemplateContext() -
TemplateContext
-
-
Method Details
-
newChannelInstance
public static TemplateContext newChannelInstance(ChannelKey channelKey, String pluginId, String language) -
setException
Holds the exception if have any on transform processing.- Parameters:
exception-
-
getException
-
digestType
-
channelKey
-
pluginId
-
language
-
end
- Returns:
- the TemplateContext
-
getPluginId
- Returns:
- the pluginId
-
getChannelKey
- Returns:
- the channelId
-
getLanguage
- Returns:
- the language
-
getDigestSize
public int getDigestSize()- Returns:
- the digestSize
-