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:
  • Constructor Details

    • TemplateContext

      public TemplateContext()
    • TemplateContext

      public TemplateContext(String pluginId, String language)
  • Method Details

    • 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