hudson.plugins.robot
Class RobotProjectAction

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

public class RobotProjectAction
extends AbstractRobotAction


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.
 RobotBuildAction getLastBuildAction()
          Return the action of last build associated with robot
 hudson.model.AbstractProject<?,?> getProject()
          Get associated project.
 boolean isDisplayGraph()
          Returns true if there are any builds in the associated project.
 
Methods inherited from class hudson.plugins.robot.AbstractRobotAction
getDisplayName, getIconFileName, getUrlName
 
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 java.io.IOException,
                    javax.servlet.ServletException
Return robot trend graph in the request.

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

doIndex

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

Parameters:
req -
rsp -
Throws:
java.io.IOException


Copyright © 2011. All Rights Reserved.