hudson.plugins.clover
Class CloverProjectAction

java.lang.Object
  extended by hudson.model.AbstractModelObject
      extended by hudson.model.Actionable
          extended by hudson.plugins.clover.CloverProjectAction
All Implemented Interfaces:
hudson.model.Action, hudson.model.ModelObject, hudson.model.ProminentProjectAction, hudson.search.SearchableModelObject, hudson.search.SearchItem

public class CloverProjectAction
extends hudson.model.Actionable
implements hudson.model.ProminentProjectAction

Project level action. TODO: refactor this action in a similar manner to JavadocArchiver and BaseJavadocAction etc to avoid duplication.

Author:
Stephen Connolly

Constructor Summary
CloverProjectAction(hudson.model.Project project)
           
 
Method Summary
 hudson.model.DirectoryBrowserSupport doDynamic(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
           
 void doGraph(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
           
 String getDisplayName()
           
 String getIconFileName()
           
 CloverBuildAction getLastSuccessfulResult()
          Returns the last Result that was successful.
 String getSearchUrl()
           
 String getUrlName()
           
 
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, sendError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CloverProjectAction

public CloverProjectAction(hudson.model.Project project)
Method Detail

getIconFileName

public String getIconFileName()
Specified by:
getIconFileName in interface hudson.model.Action

getDisplayName

public String getDisplayName()
Specified by:
getDisplayName in interface hudson.model.Action
Specified by:
getDisplayName in interface hudson.model.ModelObject

getUrlName

public String getUrlName()
Specified by:
getUrlName in interface hudson.model.Action

getLastSuccessfulResult

public CloverBuildAction getLastSuccessfulResult()
Returns the last Result that was successful. WARNING: this method is invoked dynamically from CloverProjectAction/floatingBox.jelly

Returns:
the last successful build result

doGraph

public void doGraph(org.kohsuke.stapler.StaplerRequest req,
                    org.kohsuke.stapler.StaplerResponse rsp)
             throws IOException
Throws:
IOException

doDynamic

public hudson.model.DirectoryBrowserSupport doDynamic(org.kohsuke.stapler.StaplerRequest req,
                                                      org.kohsuke.stapler.StaplerResponse rsp)
                                               throws IOException,
                                                      javax.servlet.ServletException,
                                                      InterruptedException
Throws:
IOException
javax.servlet.ServletException
InterruptedException

getSearchUrl

public String getSearchUrl()
Specified by:
getSearchUrl in interface hudson.search.SearchItem


Copyright © 2004-2012 Hudson. All Rights Reserved.