com.michelin.cio.hudson.plugins.clearcaseucmbaseline
Class ClearCaseUcmBaselineParameterValue

java.lang.Object
  extended by hudson.model.ParameterValue
      extended by com.michelin.cio.hudson.plugins.clearcaseucmbaseline.ClearCaseUcmBaselineParameterValue
All Implemented Interfaces:
java.io.Serializable

public class ClearCaseUcmBaselineParameterValue
extends hudson.model.ParameterValue

This class represents the actual ParameterValue for the ClearCaseUcmBaselineParameterDefinition parameter.

This value holds the following information:

  • The ClearCase UCM PVOB name (which is actually defined at config-time — cf. ClearCaseUcmBaselineParameterDefinition);
  • The ClearCase UCM component name (which is actually defined at config-time — cf. ClearCaseUcmBaselineParameterDefinition);
  • The ClearCase UCM promotion level (which is actually defined at config-time — cf. ClearCaseUcmBaselineParameterDefinition);
  • The ClearCase UCM view to create name (which is actually defined at config-time — cf. ClearCaseUcmBaselineParameterDefinition);
  • The ClearCase UCM baseline (this is the only one information which is asked at build-time)
  • Author:
    Romain Seguy (http://davadoc.deviantart.com)
    See Also:
    Serialized Form

    Field Summary
     
    Fields inherited from class hudson.model.ParameterValue
    name
     
    Constructor Summary
    ClearCaseUcmBaselineParameterValue(java.lang.String name, java.lang.String baseline, boolean forceRmview)
               
    ClearCaseUcmBaselineParameterValue(java.lang.String name, java.lang.String pvob, java.lang.String component, java.lang.String promotionLevel, java.lang.String viewName, java.lang.String baseline, boolean forceRmview, boolean snapshotView)
               
     
    Method Summary
     hudson.tasks.BuildWrapper createBuildWrapper(hudson.model.AbstractBuild<?,?> build)
              Returns the BuildWrapper (defined as an inner class) which does the "checkout" from the ClearCase UCM baseline selected by the user.
     java.lang.String getBaseline()
               
     java.lang.String getComponent()
               
     boolean getForceRmview()
               
     java.lang.String getPromotionLevel()
               
     java.lang.String getPvob()
               
     boolean getSnapshotView()
               
     java.lang.String getViewName()
               
     void setBaseline(java.lang.String baseline)
               
     void setComponent(java.lang.String component)
               
     void setForceRmview(boolean forceRmview)
               
     void setPromotionLevel(java.lang.String promotionLevel)
               
     void setPvob(java.lang.String pvob)
               
     void setRestrictions(java.util.List<java.lang.String> restrictions)
               
     void setSnapshotView(boolean snapshotView)
               
     void setViewName(java.lang.String viewName)
               
     
    Methods inherited from class hudson.model.ParameterValue
    buildEnvVars, createVariableResolver, equals, getDefinition, getDescription, getName, hashCode, setDescription
     
    Methods inherited from class java.lang.Object
    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
     

    Constructor Detail

    ClearCaseUcmBaselineParameterValue

    @DataBoundConstructor
    public ClearCaseUcmBaselineParameterValue(java.lang.String name,
                                                                   java.lang.String baseline,
                                                                   boolean forceRmview)

    ClearCaseUcmBaselineParameterValue

    public ClearCaseUcmBaselineParameterValue(java.lang.String name,
                                              java.lang.String pvob,
                                              java.lang.String component,
                                              java.lang.String promotionLevel,
                                              java.lang.String viewName,
                                              java.lang.String baseline,
                                              boolean forceRmview,
                                              boolean snapshotView)
    Method Detail

    createBuildWrapper

    public hudson.tasks.BuildWrapper createBuildWrapper(hudson.model.AbstractBuild<?,?> build)
    Returns the BuildWrapper (defined as an inner class) which does the "checkout" from the ClearCase UCM baseline selected by the user.

    If a ClearCaseUcmBaselineParameterDefinition is added for the build but the SCM is not ClearCaseUcmBaselineSCM, then the BuildWrapper which is returned will make the build fail.

    Overrides:
    createBuildWrapper in class hudson.model.ParameterValue

    getBaseline

    public java.lang.String getBaseline()

    setBaseline

    public void setBaseline(java.lang.String baseline)

    getComponent

    public java.lang.String getComponent()

    setComponent

    public void setComponent(java.lang.String component)

    getForceRmview

    public boolean getForceRmview()

    setForceRmview

    public void setForceRmview(boolean forceRmview)

    getPromotionLevel

    public java.lang.String getPromotionLevel()

    setPromotionLevel

    public void setPromotionLevel(java.lang.String promotionLevel)

    getPvob

    public java.lang.String getPvob()

    setPvob

    public void setPvob(java.lang.String pvob)

    setRestrictions

    public void setRestrictions(java.util.List<java.lang.String> restrictions)

    getSnapshotView

    public boolean getSnapshotView()

    setSnapshotView

    public void setSnapshotView(boolean snapshotView)

    getViewName

    public java.lang.String getViewName()

    setViewName

    public void setViewName(java.lang.String viewName)


    Copyright © 2010. All Rights Reserved.