Class IssuesTotalColumn
- java.lang.Object
-
- hudson.views.ListViewColumn
-
- io.jenkins.plugins.analysis.core.columns.IssuesTotalColumn
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<ListViewColumn>
public class IssuesTotalColumn extends ListViewColumn
Shows the number of issues of a job in a column of a Jenkins view. This column provides an auto-selection mode that selects all tools that are available for a job. If you are interested in individual results you can also select the participating tools one by one.- Author:
- Ullrich Hafner
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
IssuesTotalColumn.AnalysisResultDescription
Model for oneAnalysisResult
in a job.static class
IssuesTotalColumn.IssuesTablePortletDescriptor
Extension point registration.-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description IssuesTotalColumn()
Creates a new instance ofToolSelection
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<IssuesTotalColumn.AnalysisResultDescription>
getDetails(Job<?,?> job)
Returns the total number of issues for the selected static analysis tool in a given job.String
getName()
boolean
getSelectTools()
List<ToolSelection>
getTools()
OptionalInt
getTotal(Job<?,?> job)
Returns the total number of issues for the selected static analysis tool in a given job.IssuesStatistics.StatisticProperties
getType()
String
getUrl(Job<?,?> job)
Returns the URL to the selected static analysis results, if unique.protected Object
readResolve()
Called after de-serialization to retain backward compatibility..void
setName(String name)
Sets the display name of the column.void
setSelectTools(boolean selectTools)
Determines whether all available tools should be selected or if the selection should be done individually.void
setTools(List<ToolSelection> tools)
Returns the tools that should be taken into account when summing up the totals of a job.void
setType(IssuesStatistics.StatisticProperties type)
Defines which value should be shown in the column.-
Methods inherited from class hudson.views.ListViewColumn
all, createDefaultInitialColumnList, createDefaultInitialColumnList, createDefaultInitialColumnList, getColumnCaption, getDescriptor, shownByDefault
-
-
-
-
Constructor Detail
-
IssuesTotalColumn
@DataBoundConstructor public IssuesTotalColumn()
Creates a new instance ofToolSelection
.
-
-
Method Detail
-
readResolve
protected Object readResolve()
Called after de-serialization to retain backward compatibility..- Returns:
- this
-
getSelectTools
public boolean getSelectTools()
-
setSelectTools
@DataBoundSetter public void setSelectTools(boolean selectTools)
Determines whether all available tools should be selected or if the selection should be done individually.- Parameters:
selectTools
- iftrue
the selection of tools can be done manually by selecting the corresponding ID, otherwise all available tools in a job are automatically selected
-
getTools
public List<ToolSelection> getTools()
-
setTools
@DataBoundSetter public void setTools(List<ToolSelection> tools)
Returns the tools that should be taken into account when summing up the totals of a job.- Parameters:
tools
- the tools to select- See Also:
setSelectTools(boolean)
-
getName
public String getName()
-
setName
@DataBoundSetter public void setName(String name)
Sets the display name of the column.- Parameters:
name
- the name of the column
-
getType
public IssuesStatistics.StatisticProperties getType()
-
setType
@DataBoundSetter public void setType(IssuesStatistics.StatisticProperties type)
Defines which value should be shown in the column.- Parameters:
type
- the type of the values to show
-
getTotal
public OptionalInt getTotal(Job<?,?> job)
Returns the total number of issues for the selected static analysis tool in a given job.- Parameters:
job
- the job to select- Returns:
- the number of issues for a tool in a given job
-
getDetails
public List<IssuesTotalColumn.AnalysisResultDescription> getDetails(Job<?,?> job)
Returns the total number of issues for the selected static analysis tool in a given job.- Parameters:
job
- the job to select- Returns:
- the number of issues for a tool in a given job
-
-