hudson.plugins.javanet
Class JavaNetStatsAction

java.lang.Object
  extended by hudson.plugins.javanet.JavaNetStatsAction
All Implemented Interfaces:
hudson.model.Action, hudson.model.ModelObject, java.io.Serializable

public class JavaNetStatsAction
extends java.lang.Object
implements hudson.model.Action

UI for java.net stats. Added to the project.

Author:
Kohsuke Kawaguchi
See Also:
Serialized Form

Field Summary
static hudson.security.Permission CONFIGURE
          Permission to change project.
 hudson.model.AbstractProject<?,?> project
          Project that owns this action.
 
Constructor Summary
JavaNetStatsAction(hudson.model.AbstractProject<?,?> project, java.lang.String projectName)
           
 
Method Summary
 void doChangeProject(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp, java.lang.String name)
           
 void doDynamic(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
          Serves static files in the report directory.
 void doRegenerate(org.kohsuke.stapler.StaplerResponse rsp)
          Manually trigger the regeneration.
 java.lang.String getDisplayName()
           
 java.lang.String getIconFileName()
           
 java.net.URL getIssueStatsIndexHtml()
           
 java.lang.String getProjectName()
           
 java.lang.String getUrlName()
           
 boolean hasConfigurePermission()
          Returns true if the current user has a permission to reconfigure this action.
 boolean isReportReady()
           
 void scheduleGeneration()
           
 void upToDateCheck()
          Schedules the re-generation of the report if the report is too old.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

project

public final hudson.model.AbstractProject<?,?> project
Project that owns this action.


CONFIGURE

public static final hudson.security.Permission CONFIGURE
Permission to change project.

Constructor Detail

JavaNetStatsAction

public JavaNetStatsAction(hudson.model.AbstractProject<?,?> project,
                          java.lang.String projectName)
Method Detail

getProjectName

public java.lang.String getProjectName()

scheduleGeneration

public void scheduleGeneration()

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

isReportReady

public boolean isReportReady()

upToDateCheck

public void upToDateCheck()
Schedules the re-generation of the report if the report is too old.


getIssueStatsIndexHtml

public java.net.URL getIssueStatsIndexHtml()

doDynamic

public void doDynamic(org.kohsuke.stapler.StaplerRequest req,
                      org.kohsuke.stapler.StaplerResponse rsp)
               throws java.io.IOException,
                      javax.servlet.ServletException
Serves static files in the report directory.

Throws:
java.io.IOException
javax.servlet.ServletException

doChangeProject

public void doChangeProject(org.kohsuke.stapler.StaplerRequest req,
                            org.kohsuke.stapler.StaplerResponse rsp,
                            @QueryParameter(value="name")
                            java.lang.String name)
                     throws java.io.IOException,
                            javax.servlet.ServletException
Throws:
java.io.IOException
javax.servlet.ServletException

doRegenerate

public void doRegenerate(org.kohsuke.stapler.StaplerResponse rsp)
                  throws java.io.IOException,
                         javax.servlet.ServletException
Manually trigger the regeneration.

Throws:
java.io.IOException
javax.servlet.ServletException

hasConfigurePermission

public boolean hasConfigurePermission()
Returns true if the current user has a permission to reconfigure this action.



Copyright © 2008. All Rights Reserved.