hudson.plugins.robot
Class RobotProjectAction

java.lang.Object
  extended by hudson.plugins.robot.RobotProjectAction
All Implemented Interfaces:
hudson.model.Action, hudson.model.ModelObject

public class RobotProjectAction
extends Object
implements hudson.model.Action


Constructor Summary
RobotProjectAction(hudson.model.AbstractProject<?,?> project)
          Create new Robot project action
 
Method Summary
 void doGraph(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
          Return robot trend graph in the request.
 void doIndex(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
          Show Robot html report of the latest build.
 String getDisplayName()
          
 String getIconFileName()
          
 RobotBuildAction getLastBuildAction()
          Return the action of last build associated with robot
 hudson.model.AbstractProject<?,?> getProject()
          Get associated project.
 String getUrlName()
          
 boolean isDisplayGraph()
          Returns true if there are any builds in the associated project.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RobotProjectAction

public RobotProjectAction(hudson.model.AbstractProject<?,?> project)
Create new Robot project action

Parameters:
project - Project which this action will be applied to
Method Detail

getProject

public hudson.model.AbstractProject<?,?> getProject()
Get associated project.

Returns:

isDisplayGraph

public boolean isDisplayGraph()
Returns true if there are any builds in the associated project.

Returns:

getLastBuildAction

public RobotBuildAction getLastBuildAction()
Return the action of last build associated with robot

Returns:
null if action not found or no build

doGraph

public void doGraph(org.kohsuke.stapler.StaplerRequest req,
                    org.kohsuke.stapler.StaplerResponse rsp)
             throws IOException,
                    javax.servlet.ServletException
Return robot trend graph in the request.

Parameters:
req -
rsp -
Throws:
IOException
javax.servlet.ServletException

doIndex

public void doIndex(org.kohsuke.stapler.StaplerRequest req,
                    org.kohsuke.stapler.StaplerResponse rsp)
             throws IOException
Show Robot html report of the latest build. If no builds are associated with Robot, returns info page.

Parameters:
req -
rsp -
Throws:
IOException

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


Copyright © 2004-2013. All Rights Reserved.