au.com.centrumsystems.hudson.plugin.buildpipeline
Class BuildPipelineForm

java.lang.Object
  extended by au.com.centrumsystems.hudson.plugin.buildpipeline.BuildPipelineForm

public class BuildPipelineForm
extends Object

Author:
Centrum Systems Representation of the projects and their related builds making up the build pipeline view

Constructor Summary
BuildPipelineForm(ProjectForm projectForm, BuildForm... buildForms)
           
BuildPipelineForm(ProjectForm projectForm, List<BuildForm> buildForms)
           
 
Method Summary
 List<Map<Integer,Map<Integer,BuildForm>>> getBuildGrids()
           
 Boolean getDisplayTrigger(int row, int height)
          Gets a display value to determine whether a manual jobs 'trigger' button will be shown.
 Integer getGridHeight()
           
 Integer getGridWidth()
          grid width is the longest column map counting empties (keys represent position, so they are used to determine width)
 Map<Integer,Map<Integer,ProjectForm>> getProjectGrid()
           
 void setDisplayTrigger(int row, int height, boolean display)
          Sets a display value to determine whether a manual jobs 'trigger' button will be shown.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuildPipelineForm

public BuildPipelineForm(ProjectForm projectForm,
                         BuildForm... buildForms)
Parameters:
projectForm - Project to be laid out in a grid
buildForms - builds to be laid out in a grid

BuildPipelineForm

public BuildPipelineForm(ProjectForm projectForm,
                         List<BuildForm> buildForms)
Parameters:
projectForm - Project to be laid out in a grid
buildForms - builds to be laid out in a grid
Method Detail

getProjectGrid

public Map<Integer,Map<Integer,ProjectForm>> getProjectGrid()

getGridWidth

public Integer getGridWidth()
grid width is the longest column map counting empties (keys represent position, so they are used to determine width)

Returns:
width

getGridHeight

public Integer getGridHeight()

getDisplayTrigger

public Boolean getDisplayTrigger(int row,
                                 int height)
Gets a display value to determine whether a manual jobs 'trigger' button will be shown. This is used along with isTriggerOnlyLatestJob property allow only the latest version of a job to run. Works by: Initially always defaulted to true. If isTriggerOnlyLatestJob is set to true then as the html code is rendered the first job which should show the trigger button will render and then a call will be made to 'setDisplayTrigger' to change the value to both so all future jobs will not display the trigger. see main.jelly

Parameters:
row - the row of the job
height - the height of the job
Returns:
boolean whether to display or not

setDisplayTrigger

public void setDisplayTrigger(int row,
                              int height,
                              boolean display)
Sets a display value to determine whether a manual jobs 'trigger' button will be shown. This is used along with isTriggerOnlyLatestJob property allow only the latest version of a job to run. Works by: Initially always defaulted to true. If isTriggerOnlyLatestJob is set to true then as the html code is rendered the first job which should show the trigger button will render and then a call will be made to 'setDisplayTrigger' to change the value to both so all future jobs will not display the trigger. see main.jelly

Parameters:
row - the row of the job
height - the height of the job
display - - boolean to indicate whether the trigger button should be shown

getBuildGrids

public List<Map<Integer,Map<Integer,BuildForm>>> getBuildGrids()


Copyright © 2004-2012. All Rights Reserved.