Class IssuesTablePortlet
java.lang.Object
hudson.plugins.view.dashboard.DashboardPortlet
io.jenkins.plugins.analysis.core.portlets.IssuesTablePortlet
- All Implemented Interfaces:
ExtensionPoint,Describable<hudson.plugins.view.dashboard.DashboardPortlet>,ModelObject
public class IssuesTablePortlet
extends hudson.plugins.view.dashboard.DashboardPortlet
A dashboard view portlet that renders a two-dimensional table of issues per type and job.
- Author:
- Ullrich Hafner
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProperties of a column in the table.static classExtension point registration.static classProvides the model for the two-dimensional table of issues per type and job.static classProvides the model for a cell of the table, that contains the static analysis result.static classProvides the model for a row of the table.Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
ConstructorsConstructorDescriptionIssuesTablePortlet(String name) Creates a new instance ofIssuesTablePortlet. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns a model for the table with the results per job.booleanbooleangetTools()voidsetHideCleanJobs(boolean hideCleanJobs) Determines if all jobs that have no issues from the selected static analysis tools should be hidden.voidsetSelectTools(boolean selectTools) Determines whether all available tools should be selected or if the selection should be done individually.voidsetShowIcons(boolean showIcons) Determines if the table column headers should show icons or text.voidsetTools(List<ToolSelection> tools) Returns the tools that should be taken into account when summing up the totals of a job.Methods inherited from class hudson.plugins.view.dashboard.DashboardPortlet
all, getComparator, getDashboard, getDescriptor, getDisplayName, getId, getJob, getName, getUrl
-
Constructor Details
-
IssuesTablePortlet
Creates a new instance ofIssuesTablePortlet.- Parameters:
name- the name of the portlet
-
-
Method Details
-
getHideCleanJobs
public boolean getHideCleanJobs() -
setHideCleanJobs
@DataBoundSetter public void setHideCleanJobs(boolean hideCleanJobs) Determines if all jobs that have no issues from the selected static analysis tools should be hidden.- Parameters:
hideCleanJobs- iftruethen all jobs with no issues will be hidden,falseotherwise
-
getShowIcons
public boolean getShowIcons() -
setShowIcons
@DataBoundSetter public void setShowIcons(boolean showIcons) Determines if the table column headers should show icons or text.- Parameters:
showIcons- iftruethe table column headers will show the tool icon, otherwise the name of the tool is shown
-
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- iftruethe selection of tools can be done manually by selecting the corresponding ID, otherwise all available tools in a job are automatically selected
-
getTools
-
setTools
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:
-
getModel
Returns a model for the table with the results per job.- Parameters:
jobs- the jobs that will be rendered in the rows- Returns:
- the table model
-