Class PluginConfig
- java.lang.Object
-
- org.exoplatform.commons.api.notification.plugin.config.PluginConfig
-
public class PluginConfig extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_SRC_RESOURCE_BUNDLE_KEYstatic StringDIGEST_KEYstatic StringDIGEST_MORE_KEYstatic StringDIGEST_ONE_KEYstatic StringDIGEST_THREE_KEYstatic StringFOOTER_KEYstatic StringSUBJECT_KEY
-
Constructor Summary
Constructors Constructor Description PluginConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PluginConfigaddKeyMapping(String key, String value)StringgetBundlePath()List<String>getDefaultConfig()GroupConfiggetGroupConfig()StringgetGroupId()Map<String,String>getKeyMapping()StringgetKeyValue(String key, String defaultValue)StringgetOrder()StringgetPluginId()StringgetResourceBundleKey()TemplateConfiggetTemplateConfig()booleanisChildPlugin()PluginConfigisChildPlugin(boolean isChildPlugin)voidsetBundlePath(String bundlePath)voidsetDefaultConfig(List<String> defaultConfig)voidsetGroupConfig(GroupConfig groupConfig)voidsetGroupId(String groupId)voidsetKeyMapping(Map<String,String> keyMapping)voidsetOrder(String order)voidsetPluginId(String pluginId)voidsetResourceBundleKey(String resourceBundleKey)voidsetTemplateConfig(TemplateConfig templateConfig)
-
-
-
Field Detail
-
DEFAULT_SRC_RESOURCE_BUNDLE_KEY
public static final String DEFAULT_SRC_RESOURCE_BUNDLE_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
-
-
Method Detail
-
getPluginId
public String getPluginId()
- Returns:
- the pluginId
-
setPluginId
public void setPluginId(String pluginId)
- Parameters:
pluginId- the pluginId to set
-
getResourceBundleKey
public String getResourceBundleKey()
- Returns:
- the resourceBundleKey
-
setResourceBundleKey
public void setResourceBundleKey(String resourceBundleKey)
- Parameters:
resourceBundleKey- the resourceBundleKey to set
-
getOrder
public String getOrder()
- Returns:
- the order
-
setOrder
public void setOrder(String order)
- Parameters:
order- the order to set
-
setDefaultConfig
public void setDefaultConfig(List<String> defaultConfig)
- Parameters:
defaultConfig- the defaultConfig to set
-
getGroupId
public String getGroupId()
- Returns:
- the groupId
-
setGroupId
public void setGroupId(String groupId)
- Parameters:
groupId- the groupId to set
-
isChildPlugin
public boolean isChildPlugin()
- Returns:
- the isChildPlugin
-
isChildPlugin
public PluginConfig isChildPlugin(boolean isChildPlugin)
- Parameters:
isChildPlugin- the isChildPlugin to set return the PluginConfig
-
getGroupConfig
public GroupConfig getGroupConfig()
- Returns:
- the groupConfig
-
setGroupConfig
public void setGroupConfig(GroupConfig groupConfig)
- Parameters:
groupConfig- the groupConfig to set
-
getBundlePath
public String getBundlePath()
- Returns:
- the bundlePath
-
setBundlePath
public void setBundlePath(String bundlePath)
- Parameters:
bundlePath- the bundlePath to set
-
setKeyMapping
public void setKeyMapping(Map<String,String> keyMapping)
- Parameters:
keyMapping- the keyMapping to set
-
addKeyMapping
public PluginConfig addKeyMapping(String key, String value)
-
getTemplateConfig
public TemplateConfig getTemplateConfig()
- Returns:
- the templateConfig
-
setTemplateConfig
public void setTemplateConfig(TemplateConfig templateConfig)
- Parameters:
templateConfig- the templateConfig to set
-
-