com.xebialabs.deployit.plugin.cloud.step
Class ValidateDescriptorStep

java.lang.Object
  extended by com.xebialabs.deployit.plugin.cloud.step.ValidateDescriptorStep
All Implemented Interfaces:
com.xebialabs.deployit.plugin.api.flow.Step, java.io.Serializable
Direct Known Subclasses:
ValidateEnvironmentDescriptorStep, ValidateHostDescriptorStep

public abstract class ValidateDescriptorStep
extends java.lang.Object
implements com.xebialabs.deployit.plugin.api.flow.Step

See Also:
Serialized Form

Field Summary
protected  CiParser ciParser
           
protected  InstanceDescriptorResolver descriptorResolver
           
protected  java.util.Map<java.lang.Object,java.lang.Object> scope
           
 
Fields inherited from interface com.xebialabs.deployit.plugin.api.flow.Step
DEFAULT_ORDER
 
Constructor Summary
ValidateDescriptorStep(java.lang.String descriptorTemplate, java.lang.String templateName, ResultCheck resultCheck)
           
 
Method Summary
 com.xebialabs.deployit.plugin.api.flow.StepExitCode execute(com.xebialabs.deployit.plugin.api.flow.ExecutionContext ctx)
           
 java.lang.String getDescription()
           
 int getOrder()
           
protected  void outputDescriptor(java.lang.String descriptor, com.xebialabs.deployit.plugin.api.flow.ExecutionContext ctx)
          Outputs parsed descriptor to the context
protected abstract  java.util.List<com.xebialabs.deployit.plugin.api.udm.ConfigurationItem> parseCis(java.lang.String tpl, com.xebialabs.deployit.plugin.api.flow.ExecutionContext ctx)
           
protected abstract  java.lang.String resolveTemplate(java.lang.String tpl, java.util.Map<java.lang.Object,java.lang.Object> initialScope, com.xebialabs.deployit.plugin.api.flow.ExecutionContext ctx)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

descriptorResolver

protected InstanceDescriptorResolver descriptorResolver

ciParser

protected CiParser ciParser

scope

protected java.util.Map<java.lang.Object,java.lang.Object> scope
Constructor Detail

ValidateDescriptorStep

public ValidateDescriptorStep(java.lang.String descriptorTemplate,
                              java.lang.String templateName,
                              ResultCheck resultCheck)
Method Detail

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface com.xebialabs.deployit.plugin.api.flow.Step

getOrder

public int getOrder()
Specified by:
getOrder in interface com.xebialabs.deployit.plugin.api.flow.Step

execute

public com.xebialabs.deployit.plugin.api.flow.StepExitCode execute(com.xebialabs.deployit.plugin.api.flow.ExecutionContext ctx)
                                                            throws java.lang.Exception
Specified by:
execute in interface com.xebialabs.deployit.plugin.api.flow.Step
Throws:
java.lang.Exception

resolveTemplate

protected abstract java.lang.String resolveTemplate(java.lang.String tpl,
                                                    java.util.Map<java.lang.Object,java.lang.Object> initialScope,
                                                    com.xebialabs.deployit.plugin.api.flow.ExecutionContext ctx)
                                             throws freemarker.template.TemplateException
Throws:
freemarker.template.TemplateException

parseCis

protected abstract java.util.List<com.xebialabs.deployit.plugin.api.udm.ConfigurationItem> parseCis(java.lang.String tpl,
                                                                                                    com.xebialabs.deployit.plugin.api.flow.ExecutionContext ctx)

outputDescriptor

protected void outputDescriptor(java.lang.String descriptor,
                                com.xebialabs.deployit.plugin.api.flow.ExecutionContext ctx)
Outputs parsed descriptor to the context