hudson.plugins.testabilityexplorer.report
Class AbstractProjectReport<T extends hudson.model.AbstractProject<?,?>>

java.lang.Object
  extended by hudson.model.AbstractModelObject
      extended by hudson.model.Actionable
          extended by hudson.plugins.testabilityexplorer.helpers.AbstractProjectAction<T>
              extended by hudson.plugins.testabilityexplorer.report.AbstractProjectReport<T>
All Implemented Interfaces:
hudson.model.Action, hudson.model.ModelObject, hudson.model.ProminentProjectAction, hudson.search.SearchableModelObject, hudson.search.SearchItem
Direct Known Subclasses:
ProjectAggregatedReport, ProjectIndividualReport

public abstract class AbstractProjectReport<T extends hudson.model.AbstractProject<?,?>>
extends AbstractProjectAction<T>
implements hudson.model.ProminentProjectAction

Base class for project reports.

Author:
reik.schatz

Constructor Summary
AbstractProjectReport(T project)
           
 
Method Summary
protected  AbstractBuildReport getApplicableBuildAction()
          Returns the first applicable AbstractBuildReport action in any of the previous build.
protected abstract  java.lang.Class<? extends AbstractBuildReport> getBuildActionClass()
          Returns a AbstractBuildReport for rendering.
 java.lang.String getDisplayName()
          
 java.lang.String getIconFileName()
          
 java.util.Collection<Statistic> getResults()
           
 java.lang.String getSearchUrl()
          
 int getTotals()
           
 java.lang.String getUrlName()
          
 
Methods inherited from class hudson.plugins.testabilityexplorer.helpers.AbstractProjectAction
doTrend, getGraphName, getProject, isFloatingBoxActive, isGraphActive
 
Methods inherited from class hudson.model.Actionable
addAction, getAction, getAction, getActions, getActions, getDynamic
 
Methods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractProjectReport

public AbstractProjectReport(T project)
Method Detail

getIconFileName

public java.lang.String getIconFileName()

Specified by:
getIconFileName in interface hudson.model.Action

getDisplayName

public java.lang.String getDisplayName()

Specified by:
getDisplayName in interface hudson.model.Action
Specified by:
getDisplayName in interface hudson.model.ModelObject

getUrlName

public java.lang.String getUrlName()

Specified by:
getUrlName in interface hudson.model.Action

getSearchUrl

public java.lang.String getSearchUrl()

Specified by:
getSearchUrl in interface hudson.search.SearchItem

getResults

public java.util.Collection<Statistic> getResults()

getTotals

public int getTotals()

getApplicableBuildAction

protected AbstractBuildReport getApplicableBuildAction()
Returns the first applicable AbstractBuildReport action in any of the previous build. May return null.

Returns:
AbstractBuildReport or null

getBuildActionClass

protected abstract java.lang.Class<? extends AbstractBuildReport> getBuildActionClass()
Returns a AbstractBuildReport for rendering.

Returns:
AbstractBuildReport


Copyright © 2008. All Rights Reserved.