com.xebialabs.deployit.plugin.trigger.action
Class EmailNotification

java.lang.Object
  extended by com.xebialabs.deployit.plugin.api.udm.base.BaseConfigurationItem
      extended by 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

Field Summary
 
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
 
Constructor Summary
EmailNotification()
           
 
Method Summary
 void execute(java.util.Map<java.lang.String,java.lang.Object> ctx)
           
 java.lang.String getBody()
           
 java.lang.String getBodyTemplatePath()
           
 java.lang.String getFromAddress()
           
 com.xebialabs.deployit.plugin.mail.SmtpServer getMailServer()
           
 java.lang.String getSubject()
           
 java.util.List<java.lang.String> getToAddresses()
           
protected  java.lang.String renderEmailTemplate(java.lang.String template, java.util.Map<java.lang.String,java.lang.Object> vars, boolean inlineTemplate)
           
 void setBody(java.lang.String body)
           
 void setBodyTemplatePath(java.lang.String bodyTemplatePath)
           
 void setFromAddress(java.lang.String fromAddress)
           
 void setMailServer(com.xebialabs.deployit.plugin.mail.SmtpServer mailServer)
           
 void setSubject(java.lang.String subject)
           
 void setToAddresses(java.util.List<java.lang.String> toAddresses)
           
 
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
 

Constructor Detail

EmailNotification

public EmailNotification()
Method Detail

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)