hudson.plugins.analysis.collector.dashboard
Class WarningsTablePortlet

java.lang.Object
  extended by hudson.plugins.view.dashboard.DashboardPortlet
      extended by hudson.plugins.analysis.collector.dashboard.WarningsTablePortlet
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.plugins.view.dashboard.DashboardPortlet>, hudson.model.ModelObject

public class WarningsTablePortlet
extends hudson.plugins.view.dashboard.DashboardPortlet

A dashboard that shows a table with the number of warnings in a job.

Author:
Ulli Hafner

Nested Class Summary
static class WarningsTablePortlet.WarningsPerJobDescriptor
          Extension point registration.
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Constructor Summary
WarningsTablePortlet(java.lang.String name)
          Creates a new instance of WarningsTablePortlet.
 
Method Summary
 java.lang.String getCheckStyle(hudson.model.Job<?,?> job)
          Returns the number of Checkstyle warnings for the specified job.
 java.lang.String getDry(hudson.model.Job<?,?> job)
          Returns the number of duplicate code warnings for the specified job.
 java.lang.String getFindBugs(hudson.model.Job<?,?> job)
          Returns the number of FindBugs warnings for the specified job.
 java.lang.String getPmd(hudson.model.Job<?,?> job)
          Returns the number of PMD warnings for the specified job.
 java.lang.String getTasks(hudson.model.Job<?,?> job)
          Returns the number of open tasks for the specified job.
 java.lang.String getTotal(hudson.model.Job<?,?> job)
          Returns the number of compiler warnings for the specified job.
 java.lang.String getWarnings(hudson.model.Job<?,?> job)
          Returns the total number of warnings for the specified job.
 
Methods inherited from class hudson.plugins.view.dashboard.DashboardPortlet
all, getDashboard, getDescriptor, getDisplayName, getJob, getName, getUrl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WarningsTablePortlet

@DataBoundConstructor
public WarningsTablePortlet(java.lang.String name)
Creates a new instance of WarningsTablePortlet.

Parameters:
name - the name of the dashboard
Method Detail

getCheckStyle

public java.lang.String getCheckStyle(hudson.model.Job<?,?> job)
Returns the number of Checkstyle warnings for the specified job.

Parameters:
job - the job to get the warnings for
Returns:
the number of Checkstyle warnings

getDry

public java.lang.String getDry(hudson.model.Job<?,?> job)
Returns the number of duplicate code warnings for the specified job.

Parameters:
job - the job to get the warnings for
Returns:
the number of duplicate code warnings

getFindBugs

public java.lang.String getFindBugs(hudson.model.Job<?,?> job)
Returns the number of FindBugs warnings for the specified job.

Parameters:
job - the job to get the warnings for
Returns:
the number of FindBugs warnings

getPmd

public java.lang.String getPmd(hudson.model.Job<?,?> job)
Returns the number of PMD warnings for the specified job.

Parameters:
job - the job to get the warnings for
Returns:
the number of PMD warnings

getTasks

public java.lang.String getTasks(hudson.model.Job<?,?> job)
Returns the number of open tasks for the specified job.

Parameters:
job - the job to get the tasks for
Returns:
the number of open tasks

getWarnings

public java.lang.String getWarnings(hudson.model.Job<?,?> job)
Returns the total number of warnings for the specified job.

Parameters:
job - the job to get the warnings for
Returns:
the number of compiler warnings

getTotal

public java.lang.String getTotal(hudson.model.Job<?,?> job)
Returns the number of compiler warnings for the specified job.

Parameters:
job - the job to get the warnings for
Returns:
the number of compiler warnings


Copyright © 2010. All Rights Reserved.