Class TemplateConfig
- java.lang.Object
-
- org.exoplatform.commons.api.notification.plugin.config.TemplateConfig
-
public class TemplateConfig extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_SRC_RESOURCE_BUNDLE_KEYstatic StringDEFAULT_SRC_RESOURCE_TEMPLATE_KEYstatic StringDIGEST_KEYstatic StringDIGEST_MORE_KEYstatic StringDIGEST_ONE_KEYstatic StringDIGEST_THREE_KEYstatic StringFOOTER_KEYstatic StringSUBJECT_KEY
-
Constructor Summary
Constructors Constructor Description TemplateConfig()TemplateConfig(String providerId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TemplateConfigaddKeyMapping(String key, String value)booleanequals(Object obj)StringgetBundlePath()Map<String,String>getKeyMapping()StringgetKeyValue(String key, String defaultValue)StringgetProviderId()StringgetTemplatePath()inthashCode()voidsetBundlePath(String bundlePath)voidsetKeyMapping(Map<String,String> keyMapping)TemplateConfigsetProviderId(String providerId)voidsetTemplatePath(String templatePath)
-
-
-
Field Detail
-
DEFAULT_SRC_RESOURCE_BUNDLE_KEY
public static final String DEFAULT_SRC_RESOURCE_BUNDLE_KEY
- See Also:
- Constant Field Values
-
DEFAULT_SRC_RESOURCE_TEMPLATE_KEY
public static final String DEFAULT_SRC_RESOURCE_TEMPLATE_KEY
- See Also:
- Constant Field Values
-
SUBJECT_KEY
public static final String SUBJECT_KEY
- See Also:
- Constant Field Values
-
DIGEST_KEY
public static final String DIGEST_KEY
- See Also:
- Constant Field Values
-
DIGEST_ONE_KEY
public static final String DIGEST_ONE_KEY
- See Also:
- Constant Field Values
-
DIGEST_THREE_KEY
public static final String DIGEST_THREE_KEY
- See Also:
- Constant Field Values
-
DIGEST_MORE_KEY
public static final String DIGEST_MORE_KEY
- See Also:
- Constant Field Values
-
FOOTER_KEY
public static final String FOOTER_KEY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TemplateConfig
public TemplateConfig()
-
TemplateConfig
public TemplateConfig(String providerId)
-
-
Method Detail
-
getProviderId
public String getProviderId()
- Returns:
- the providerId
-
setProviderId
public TemplateConfig setProviderId(String providerId)
- Parameters:
providerId- the providerId to set
-
getBundlePath
public String getBundlePath()
- Returns:
- the bundlePath
-
setBundlePath
public void setBundlePath(String bundlePath)
- Parameters:
bundlePath- the bundlePath to set
-
getTemplatePath
public String getTemplatePath()
- Returns:
- the templatePath
-
setTemplatePath
public void setTemplatePath(String templatePath)
- Parameters:
templatePath- the templatePath to set
-
setKeyMapping
public void setKeyMapping(Map<String,String> keyMapping)
- Parameters:
keyMapping- the keyMapping to set
-
addKeyMapping
public TemplateConfig addKeyMapping(String key, String value)
-
-