com.xebialabs.deployit.plugin.trigger.action
Class EmailNotification
java.lang.Object
com.xebialabs.deployit.plugin.api.udm.base.BaseConfigurationItem
com.xebialabs.deployit.plugin.trigger.action.EmailNotification
- All Implemented Interfaces:
- com.xebialabs.deployit.plugin.api.udm.ConfigurationItem, Action, java.io.Serializable, java.lang.Comparable<com.xebialabs.deployit.plugin.api.udm.base.BaseConfigurationItem>
@Metadata(root=CONFIGURATION,
description="Email Action")
public class EmailNotification- extends com.xebialabs.deployit.plugin.api.udm.base.BaseConfigurationItem
- implements Action
- See Also:
- Serialized Form
| Fields inherited from class com.xebialabs.deployit.plugin.api.udm.base.BaseConfigurationItem |
id, syntheticProperties, type |
| Fields inherited from interface com.xebialabs.deployit.plugin.api.udm.ConfigurationItem |
SYNTHETIC_PROPERTIES_FIELD, TYPE_FIELD |
| Methods inherited from class com.xebialabs.deployit.plugin.api.udm.base.BaseConfigurationItem |
compareTo, equals, get$token, getId, getName, getProperty, getPropertyDescriptor, getSyntheticProperties, getSyntheticProperty, getType, hashCode, hasProperty, hasSyntheticProperty, putSyntheticProperties, putSyntheticProperty, set$token, setId, setProperty, setSyntheticProperties, setType, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.xebialabs.deployit.plugin.api.udm.ConfigurationItem |
getId, getName, getProperty, getSyntheticProperties, getSyntheticProperty, getType, hasProperty, putSyntheticProperty, setId, setProperty |
EmailNotification
public EmailNotification()
execute
public void execute(java.util.Map<java.lang.String,java.lang.Object> ctx)
- Specified by:
execute in interface Action
renderEmailTemplate
protected java.lang.String renderEmailTemplate(java.lang.String template,
java.util.Map<java.lang.String,java.lang.Object> vars,
boolean inlineTemplate)
throws java.io.IOException,
freemarker.template.TemplateException
- Throws:
java.io.IOException
freemarker.template.TemplateException
getToAddresses
public java.util.List<java.lang.String> getToAddresses()
setToAddresses
public void setToAddresses(java.util.List<java.lang.String> toAddresses)
getFromAddress
public java.lang.String getFromAddress()
setFromAddress
public void setFromAddress(java.lang.String fromAddress)
getSubject
public java.lang.String getSubject()
setSubject
public void setSubject(java.lang.String subject)
getBody
public java.lang.String getBody()
setBody
public void setBody(java.lang.String body)
getBodyTemplatePath
public java.lang.String getBodyTemplatePath()
setBodyTemplatePath
public void setBodyTemplatePath(java.lang.String bodyTemplatePath)
getMailServer
public com.xebialabs.deployit.plugin.mail.SmtpServer getMailServer()
setMailServer
public void setMailServer(com.xebialabs.deployit.plugin.mail.SmtpServer mailServer)
isSendContentAsHtml
public boolean isSendContentAsHtml()
setSendContentAsHtml
public void setSendContentAsHtml(boolean sendContentAsHtml)