hudson.plugins.analysis.collector.dashboard
Class WarningsOriginGraphPortlet

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

public final class WarningsOriginGraphPortlet
extends hudson.plugins.analysis.dashboard.AbstractWarningsGraphPortlet

A portlet that shows the warnings trend graph of warnings by type.

Author:
Ulli Hafner

Nested Class Summary
static class WarningsOriginGraphPortlet.WarningsGraphDescriptor
          Extension point registration.
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Constructor Summary
WarningsOriginGraphPortlet(String name, String width, String height, String dayCountString, boolean isCheckStyleActivated, boolean isDryActivated, boolean isFindBugsActivated, boolean isPmdActivated, boolean isOpenTasksActivated, boolean isWarningsActivated)
          Creates a new instance of WarningsOriginGraphPortlet.
 
Method Summary
protected  Class<? extends hudson.plugins.analysis.core.AbstractProjectAction<?>> getAction()
           
protected  hudson.plugins.analysis.graph.BuildResultGraph getGraphType()
           
protected  String getPluginName()
           
 boolean isCheckStyleActivated()
          Returns whether CheckStyle results should be collected.
 boolean isDryActivated()
          Returns whether DRY results should be collected.
 boolean isFindBugsActivated()
          Returns whether FindBugs results should be collected.
 boolean isOpenTasksActivated()
          Returns whether open tasks should be collected.
 boolean isPmdActivated()
          Returns whether PMD results should be collected.
 boolean isWarningsActivated()
          Returns whether compiler warnings results should be collected.
 
Methods inherited from class hudson.plugins.analysis.dashboard.AbstractWarningsGraphPortlet
configureGraph, getDayCountString, getDescription, getHeight, getWarningsGraph, getWidth, isEmpty, selectAction
 
Methods inherited from class hudson.plugins.view.dashboard.DashboardPortlet
all, getComparator, getDashboard, getDescriptor, getDisplayName, getId, getJob, getName, getUrl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WarningsOriginGraphPortlet

@DataBoundConstructor
public WarningsOriginGraphPortlet(String name,
                                                       String width,
                                                       String height,
                                                       String dayCountString,
                                                       boolean isCheckStyleActivated,
                                                       boolean isDryActivated,
                                                       boolean isFindBugsActivated,
                                                       boolean isPmdActivated,
                                                       boolean isOpenTasksActivated,
                                                       boolean isWarningsActivated)
Creates a new instance of WarningsOriginGraphPortlet.

Parameters:
name - the name of the portlet
width - width of the graph
height - height of the graph
dayCountString - number of days to consider
isCheckStyleActivated - determines whether to show the warnings from Checkstyle
isDryActivated - determines whether to show the warnings from DRY
isFindBugsActivated - determines whether to show the warnings from FindBugs
isPmdActivated - determines whether to show the warnings from PMD
isOpenTasksActivated - determines whether to show open tasks
isWarningsActivated - determines whether to show compiler warnings
Method Detail

isCheckStyleActivated

public boolean isCheckStyleActivated()
Returns whether CheckStyle results should be collected.

Returns:
true if CheckStyle results should be collected, false otherwise

isDryActivated

public boolean isDryActivated()
Returns whether DRY results should be collected.

Returns:
true if DRY results should be collected, false otherwise

isFindBugsActivated

public boolean isFindBugsActivated()
Returns whether FindBugs results should be collected.

Returns:
true if FindBugs results should be collected, false otherwise

isPmdActivated

public boolean isPmdActivated()
Returns whether PMD results should be collected.

Returns:
true if PMD results should be collected, false otherwise

isOpenTasksActivated

public boolean isOpenTasksActivated()
Returns whether open tasks should be collected.

Returns:
true if open tasks should be collected, false otherwise

isWarningsActivated

public boolean isWarningsActivated()
Returns whether compiler warnings results should be collected.

Returns:
true if compiler warnings results should be collected, false otherwise

getAction

protected Class<? extends hudson.plugins.analysis.core.AbstractProjectAction<?>> getAction()
Specified by:
getAction in class hudson.plugins.analysis.dashboard.AbstractPortlet

getPluginName

protected String getPluginName()
Specified by:
getPluginName in class hudson.plugins.analysis.dashboard.AbstractWarningsGraphPortlet

getGraphType

protected hudson.plugins.analysis.graph.BuildResultGraph getGraphType()
Specified by:
getGraphType in class hudson.plugins.analysis.dashboard.AbstractWarningsGraphPortlet


Copyright © 2004-2012 Hudson. All Rights Reserved.