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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addMapping(java.lang.String toolName, java.lang.String toolHtml, java.lang.String toolText)
This function adds a tool mapping.java.lang.String
getHtmlMapping(java.lang.String toolName)
This method returns a HTML mapping associated with the tool.java.util.Map<java.lang.String,java.lang.String>
getHtmlMappings()
This method returns all the tool-HTMl mappings.java.lang.String
getTextMapping(java.lang.String toolName)
This method returns the text mapping associated with the tool.java.util.Map<java.lang.String,java.lang.String>
getTextMappings()
This method returns all tool-Text mappings.void
removeMapping(java.lang.String toolName)
This method removes a tool mapping.
-
-
-
Method Detail
-
addMapping
void addMapping(java.lang.String toolName, java.lang.String toolHtml, java.lang.String toolText)
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
void removeMapping(java.lang.String toolName)
This method removes a tool mapping.- Parameters:
toolName
- the name of the tool.
-
getHtmlMapping
java.lang.String getHtmlMapping(java.lang.String toolName)
This method returns a HTML mapping associated with the tool.- Parameters:
toolName
- name of the tool.- Returns:
- The HTMl mapping with the tool.
-
getHtmlMappings
java.util.Map<java.lang.String,java.lang.String> getHtmlMappings()
This method returns all the tool-HTMl mappings.- Returns:
- a map containing tool name and HTML mapping.
-
getTextMapping
java.lang.String getTextMapping(java.lang.String toolName)
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
java.util.Map<java.lang.String,java.lang.String> getTextMappings()
This method returns all tool-Text mappings.- Returns:
- A map containing tool name and text mapping.
-
-