@StepMetadata(name="manual")
public class InstructionStep
extends java.lang.Object
implements com.xebialabs.deployit.plugin.api.flow.Step, com.xebialabs.deployit.plugin.api.flow.PreviewStep, com.xebialabs.xlplatform.satellite.SatelliteAware
| Constructor and Description |
|---|
InstructionStep() |
InstructionStep(int order,
java.lang.String description,
com.xebialabs.deployit.plugin.overthere.HostContainer container,
java.util.Map<java.lang.String,java.lang.Object> vars,
java.lang.String templatePath) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkMailProperties() |
protected void |
doPostConstruct(com.xebialabs.deployit.plugin.api.rules.StepPostConstructContext ctx) |
com.xebialabs.deployit.plugin.api.flow.StepExitCode |
execute(com.xebialabs.deployit.plugin.api.flow.ExecutionContext ctx) |
java.lang.String |
getDescription() |
java.lang.String |
getFromAddress() |
SmtpServer |
getMailServer() |
int |
getOrder() |
com.xebialabs.deployit.plugin.api.flow.Preview |
getPreview() |
com.xebialabs.xlplatform.satellite.Satellite |
getSatellite() |
java.lang.String |
getSubject() |
java.util.List<java.lang.String> |
getToAddresses() |
protected void |
mailInstructions(java.lang.String instructions,
com.xebialabs.deployit.plugin.api.flow.ExecutionContext ctx) |
protected java.lang.String |
renderEmailTemplate(java.lang.String template,
java.util.Map<java.lang.String,java.lang.Object> vars) |
void |
setFromAddress(java.lang.String fromAddress) |
void |
setMailServer(SmtpServer mailServer) |
void |
setSubject(java.lang.String subject) |
void |
setToAddresses(java.util.List<java.lang.String> toAddresses) |
public InstructionStep()
public InstructionStep(int order,
java.lang.String description,
com.xebialabs.deployit.plugin.overthere.HostContainer container,
java.util.Map<java.lang.String,java.lang.Object> vars,
java.lang.String templatePath)
@RulePostConstruct protected void doPostConstruct(com.xebialabs.deployit.plugin.api.rules.StepPostConstructContext ctx)
protected void checkMailProperties()
public int getOrder()
getOrder in interface com.xebialabs.deployit.plugin.api.flow.Steppublic java.lang.String getDescription()
getDescription in interface com.xebialabs.deployit.plugin.api.flow.Steppublic com.xebialabs.deployit.plugin.api.flow.StepExitCode execute(com.xebialabs.deployit.plugin.api.flow.ExecutionContext ctx)
throws java.lang.Exception
execute in interface com.xebialabs.deployit.plugin.api.flow.Stepjava.lang.Exceptionprotected void mailInstructions(java.lang.String instructions,
com.xebialabs.deployit.plugin.api.flow.ExecutionContext ctx)
protected java.lang.String renderEmailTemplate(java.lang.String template,
java.util.Map<java.lang.String,java.lang.Object> vars)
throws java.io.IOException,
freemarker.template.TemplateException
java.io.IOExceptionfreemarker.template.TemplateExceptionpublic com.xebialabs.deployit.plugin.api.flow.Preview getPreview()
getPreview in interface com.xebialabs.deployit.plugin.api.flow.PreviewSteppublic java.util.List<java.lang.String> getToAddresses()
public void setToAddresses(java.util.List<java.lang.String> toAddresses)
public java.lang.String getSubject()
public void setSubject(java.lang.String subject)
public java.lang.String getFromAddress()
public void setFromAddress(java.lang.String fromAddress)
public SmtpServer getMailServer()
public void setMailServer(SmtpServer mailServer)
public com.xebialabs.xlplatform.satellite.Satellite getSatellite()
getSatellite in interface com.xebialabs.xlplatform.satellite.SatelliteAware