com.atlassian.confluence.mail
Class VelocityRenderedQueueItem
java.lang.Object
com.atlassian.confluence.mail.VelocityRenderedQueueItem
- All Implemented Interfaces:
- Task, Serializable
- Direct Known Subclasses:
- AbstractMailNotificationQueueItem
public abstract class VelocityRenderedQueueItem
- extends Object
- implements Task
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.atlassian.core.task.Task |
execute |
body
protected String body
VelocityRenderedQueueItem
protected VelocityRenderedQueueItem(String templateLocation,
String templateFileName)
VelocityRenderedQueueItem
protected VelocityRenderedQueueItem(String templateContent)
addVelocityContextParam
public void addVelocityContextParam(String name,
Object value)
removeVelocityContextParam
public Object removeVelocityContextParam(String name)
clearContext
public void clearContext()
getVelocityContextParam
public Object getVelocityContextParam(String name)
preRenderBody
public void preRenderBody(Map contextMap)
- This method will not retain a local copy of the contextMap - making it advantageous for pre-rendering templates
with contexts comprising of transient or session-based data.
- Parameters:
contextMap -
getRenderedContent
public String getRenderedContent(String content)
getRenderedContent
public String getRenderedContent()
getTemplateFileName
public String getTemplateFileName()
setTemplateFileName
public void setTemplateFileName(String templateFileName)
getTemplateContent
public String getTemplateContent()
setTemplateContent
public void setTemplateContent(String templateContent)
getTemplateLocation
public String getTemplateLocation()
setTemplateLocation
public void setTemplateLocation(String templateLocation)
getBody
public String getBody()
setBody
public void setBody(String body)