com.pmease.quickbuild.setting.configuration.promotion
Class Promotion
java.lang.Object
com.pmease.quickbuild.setting.configuration.promotion.Promotion
- All Implemented Interfaces:
- Validatable, java.io.Serializable
public class Promotion
- extends java.lang.Object
- implements java.io.Serializable, Validatable
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VARIABLE_PROMPT_BEAN_PREFIX
public static final java.lang.String VARIABLE_PROMPT_BEAN_PREFIX
- See Also:
- Constant Field Values
Promotion
public Promotion()
getName
@NotEmpty
public java.lang.String getName()
setName
public void setName(java.lang.String name)
getCondition
@NotNull
public PromoteCondition getCondition()
- Get promote condition.
setCondition
public void setCondition(PromoteCondition condition)
getServer
public PromoteServer getServer()
- Get the server to which builds of this configuration will be promoted to.
setServer
public void setServer(PromoteServer server)
getConfigurationPath
@NotEmpty
public java.lang.String getConfigurationPath()
- Get path of the configuration to which builds of this configuration should be promoted to.
setConfigurationPath
public void setConfigurationPath(java.lang.String configurationPath)
isAutoPromote
public boolean isAutoPromote()
setAutoPromote
public void setAutoPromote(boolean autoPromote)
isPromptConfVars
public boolean isPromptConfVars()
setPromptConfVars
public void setPromptConfVars(boolean promptConfVars)
getVariables
public java.util.List<Variable> getVariables()
setVariables
public void setVariables(java.util.List<Variable> variables)
getDeliveries
public java.util.List<FileDelivery> getDeliveries()
- Get files to promote.
setDeliveries
public void setDeliveries(java.util.List<FileDelivery> deliveries)
getVariablePromptBeanClass
public java.lang.Class<?> getVariablePromptBeanClass(Build build)
getVar
public Variable getVar(java.lang.String varName)
- Get variable of specified name. Null if not found.
contains
public static boolean contains(java.util.Collection<Promotion> promotions,
Promotion promotion)
getBuildId
public static java.lang.Long getBuildId(java.lang.String variablePromptBeanClassName)
getName
public static java.lang.String getName(java.lang.String variablePromptBeanClassName)
promote
public void promote(Build build)
- Promote specified build.
promote
public Configuration promote(Build build,
java.util.Map<java.lang.String,java.lang.String> promptVarValues)
- Promote specified build with specified variables.
promote
public Configuration promote(Build build,
java.util.Map<java.lang.String,java.lang.String> promptVarValues,
boolean autoPromote)
- Promote specified build with specified variables. The third param tells QB whether this is an automated promotion.
validate
public void validate(java.util.Set<java.lang.String> properties,
ErrorContext errorContext)
- Specified by:
validate
in interface Validatable
getVariablePromptBeanClassCache
public java.util.Map<java.lang.Long,java.lang.Class<?>> getVariablePromptBeanClassCache()
Copyright © 2005-2010 PMEase Inc. All Rights Reserved.