Interface EmailTools
public interface EmailTools
Defines interface for all the tools that are supported by external mail provider.
These tools are basically a mapping of a name with the corresponding HTML
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddMapping(String toolName, String toolHtml, String toolText) This function adds a tool mapping.getHtmlMapping(String toolName) This method returns a HTML mapping associated with the tool.This method returns all the tool-HTMl mappings.getTextMapping(String toolName) This method returns the text mapping associated with the tool.This method returns all tool-Text mappings.voidremoveMapping(String toolName) This method removes a tool mapping.
-
Method Details
-
addMapping
This function adds a tool mapping.- Parameters:
toolName- name of the tooltoolHtml- The HTML associated with the tool.toolText- The text associated with the tool.
-
removeMapping
This method removes a tool mapping.- Parameters:
toolName- the name of the tool.
-
getHtmlMapping
This method returns a HTML mapping associated with the tool.- Parameters:
toolName- name of the tool.- Returns:
- The HTMl mapping with the tool.
-
getHtmlMappings
This method returns all the tool-HTMl mappings.- Returns:
- a map containing tool name and HTML mapping.
-
getTextMapping
This method returns the text mapping associated with the tool.- Parameters:
toolName- the name of the tool.- Returns:
- The text associated with the tool.
-
getTextMappings
This method returns all tool-Text mappings.- Returns:
- A map containing tool name and text mapping.
-