com.xebialabs.deployit.plugin.powershell
Class PowerShellVarsConverter

java.lang.Object
  extended by com.xebialabs.deployit.plugin.remoting.vars.VarsConverter
      extended by com.xebialabs.deployit.plugin.powershell.PowerShellVarsConverter

public class PowerShellVarsConverter
extends com.xebialabs.deployit.plugin.remoting.vars.VarsConverter


Method Summary
protected  void createObject(java.lang.String variableName)
           
protected  void createObjectAndSetObjectProperty(java.lang.String objectName, java.lang.String propertyName)
           
static java.lang.String javaToPowerShell(com.xebialabs.overthere.OverthereConnection connection, java.util.Map<java.lang.String,java.lang.Object> pythonVars)
           
static java.lang.String javaToPowerShell(com.xebialabs.overthere.OverthereConnection connection, java.util.Map<java.lang.String,java.lang.Object> pythonVars, boolean uploadArtifactData)
           
protected  void setBooleanProperty(java.lang.String objectName, java.lang.String propertyName, boolean propertyValue)
           
protected  void setBooleanVariable(java.lang.String variableName, boolean variableValue)
           
protected  void setCiReferenceProperty(java.lang.String objectName, java.lang.String propertyName, com.xebialabs.deployit.plugin.api.udm.ConfigurationItem propertyValue)
           
protected  void setCollectionOfCiReferencesProperty(java.lang.String objectName, java.lang.String propertyName, java.util.Collection<com.xebialabs.deployit.plugin.api.udm.ConfigurationItem> propertyValue)
           
protected  void setCollectionOfStringsProperty(java.lang.String objectName, java.lang.String propertyName, java.util.Collection<?> propertyValue)
           
protected  void setCollectionOfStringsVariable(java.lang.String variableName, java.util.Collection<?> variableValue)
           
protected  void setEmptyCollectionProperty(java.lang.String objectName, java.lang.String propertyName)
           
protected  void setEmptyMapProperty(java.lang.String objectName, java.lang.String propertyName)
           
protected  void setIntegerProperty(java.lang.String objectName, java.lang.String propertyName, int propertyValue)
           
protected  void setIntegerVariable(java.lang.String variableName, int variableValue)
           
protected  void setLongVariable(java.lang.String variableName, long variableValue)
           
protected  void setMapOfStringToStringReferencesProperty(java.lang.String objectName, java.lang.String propertyName, java.util.Map<java.lang.String,java.lang.String> propertyValue)
           
protected  void setNullProperty(java.lang.String objectName, java.lang.String propertyName)
           
protected  void setNullVariable(java.lang.String variableName)
           
protected  void setPasswordProperty(java.lang.String objectName, java.lang.String propertyName, java.lang.String propertyValue)
           
protected  void setStringProperty(java.lang.String objectName, java.lang.String propertyName, java.lang.String propertyValue)
           
protected  void setStringVariable(java.lang.String variableName, java.lang.String variableValue)
           
static java.lang.String toPowerShellBoolean(java.lang.Boolean bool)
           
static java.lang.String toPowerShellCollectionOfStrings(java.util.Collection<?> variableValue)
           
static java.lang.String toPowerShellString(java.lang.String str)
           
 
Methods inherited from class com.xebialabs.deployit.plugin.remoting.vars.VarsConverter
add, convert, generateUniqueVariableName, getConfigurationItemVariableName, getDerivedPropertyName, setUploadArtifactData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

javaToPowerShell

public static java.lang.String javaToPowerShell(com.xebialabs.overthere.OverthereConnection connection,
                                                java.util.Map<java.lang.String,java.lang.Object> pythonVars)

javaToPowerShell

public static java.lang.String javaToPowerShell(com.xebialabs.overthere.OverthereConnection connection,
                                                java.util.Map<java.lang.String,java.lang.Object> pythonVars,
                                                boolean uploadArtifactData)

setNullVariable

protected void setNullVariable(java.lang.String variableName)
Specified by:
setNullVariable in class com.xebialabs.deployit.plugin.remoting.vars.VarsConverter

setBooleanVariable

protected void setBooleanVariable(java.lang.String variableName,
                                  boolean variableValue)
Specified by:
setBooleanVariable in class com.xebialabs.deployit.plugin.remoting.vars.VarsConverter

setIntegerVariable

protected void setIntegerVariable(java.lang.String variableName,
                                  int variableValue)
Specified by:
setIntegerVariable in class com.xebialabs.deployit.plugin.remoting.vars.VarsConverter

setLongVariable

protected void setLongVariable(java.lang.String variableName,
                               long variableValue)
Specified by:
setLongVariable in class com.xebialabs.deployit.plugin.remoting.vars.VarsConverter

setStringVariable

protected void setStringVariable(java.lang.String variableName,
                                 java.lang.String variableValue)
Specified by:
setStringVariable in class com.xebialabs.deployit.plugin.remoting.vars.VarsConverter

setCollectionOfStringsVariable

protected void setCollectionOfStringsVariable(java.lang.String variableName,
                                              java.util.Collection<?> variableValue)
Specified by:
setCollectionOfStringsVariable in class com.xebialabs.deployit.plugin.remoting.vars.VarsConverter

createObject

protected void createObject(java.lang.String variableName)
Specified by:
createObject in class com.xebialabs.deployit.plugin.remoting.vars.VarsConverter

setNullProperty

protected void setNullProperty(java.lang.String objectName,
                               java.lang.String propertyName)
Specified by:
setNullProperty in class com.xebialabs.deployit.plugin.remoting.vars.VarsConverter

setEmptyCollectionProperty

protected void setEmptyCollectionProperty(java.lang.String objectName,
                                          java.lang.String propertyName)
Specified by:
setEmptyCollectionProperty in class com.xebialabs.deployit.plugin.remoting.vars.VarsConverter

setEmptyMapProperty

protected void setEmptyMapProperty(java.lang.String objectName,
                                   java.lang.String propertyName)
Specified by:
setEmptyMapProperty in class com.xebialabs.deployit.plugin.remoting.vars.VarsConverter

setBooleanProperty

protected void setBooleanProperty(java.lang.String objectName,
                                  java.lang.String propertyName,
                                  boolean propertyValue)
Specified by:
setBooleanProperty in class com.xebialabs.deployit.plugin.remoting.vars.VarsConverter

setIntegerProperty

protected void setIntegerProperty(java.lang.String objectName,
                                  java.lang.String propertyName,
                                  int propertyValue)
Specified by:
setIntegerProperty in class com.xebialabs.deployit.plugin.remoting.vars.VarsConverter

setStringProperty

protected void setStringProperty(java.lang.String objectName,
                                 java.lang.String propertyName,
                                 java.lang.String propertyValue)
Specified by:
setStringProperty in class com.xebialabs.deployit.plugin.remoting.vars.VarsConverter

setPasswordProperty

protected void setPasswordProperty(java.lang.String objectName,
                                   java.lang.String propertyName,
                                   java.lang.String propertyValue)
Specified by:
setPasswordProperty in class com.xebialabs.deployit.plugin.remoting.vars.VarsConverter

setCollectionOfStringsProperty

protected void setCollectionOfStringsProperty(java.lang.String objectName,
                                              java.lang.String propertyName,
                                              java.util.Collection<?> propertyValue)
Specified by:
setCollectionOfStringsProperty in class com.xebialabs.deployit.plugin.remoting.vars.VarsConverter

setCiReferenceProperty

protected void setCiReferenceProperty(java.lang.String objectName,
                                      java.lang.String propertyName,
                                      com.xebialabs.deployit.plugin.api.udm.ConfigurationItem propertyValue)
Specified by:
setCiReferenceProperty in class com.xebialabs.deployit.plugin.remoting.vars.VarsConverter

setCollectionOfCiReferencesProperty

protected void setCollectionOfCiReferencesProperty(java.lang.String objectName,
                                                   java.lang.String propertyName,
                                                   java.util.Collection<com.xebialabs.deployit.plugin.api.udm.ConfigurationItem> propertyValue)
Specified by:
setCollectionOfCiReferencesProperty in class com.xebialabs.deployit.plugin.remoting.vars.VarsConverter

setMapOfStringToStringReferencesProperty

protected void setMapOfStringToStringReferencesProperty(java.lang.String objectName,
                                                        java.lang.String propertyName,
                                                        java.util.Map<java.lang.String,java.lang.String> propertyValue)
Specified by:
setMapOfStringToStringReferencesProperty in class com.xebialabs.deployit.plugin.remoting.vars.VarsConverter

createObjectAndSetObjectProperty

protected void createObjectAndSetObjectProperty(java.lang.String objectName,
                                                java.lang.String propertyName)
Specified by:
createObjectAndSetObjectProperty in class com.xebialabs.deployit.plugin.remoting.vars.VarsConverter

toPowerShellBoolean

public static java.lang.String toPowerShellBoolean(java.lang.Boolean bool)

toPowerShellString

public static java.lang.String toPowerShellString(java.lang.String str)

toPowerShellCollectionOfStrings

public static java.lang.String toPowerShellCollectionOfStrings(java.util.Collection<?> variableValue)