hudson.plugins.analysis.graph
Class UserGraphConfigurationView

java.lang.Object
  extended by hudson.plugins.analysis.graph.GraphConfigurationView
      extended by hudson.plugins.analysis.graph.UserGraphConfigurationView
All Implemented Interfaces:
hudson.model.ModelObject

public class UserGraphConfigurationView
extends GraphConfigurationView

Configures the trend graph of this plug-in for the current user and job using a cookie.


Constructor Summary
UserGraphConfigurationView(GraphConfiguration configuration, hudson.model.AbstractProject<?,?> project, String projectActionUrl, javax.servlet.http.Cookie[] cookies, BuildHistory buildHistory)
          Creates a new instance of UserGraphConfigurationView.
UserGraphConfigurationView(GraphConfiguration configuration, hudson.model.AbstractProject<?,?> project, String projectActionUrl, String globalFileName, javax.servlet.http.Cookie[] cookies, BuildHistory buildHistory)
          Creates a new instance of UserGraphConfigurationView.
 
Method Summary
protected static CookieHandler createCookieHandler(String cookieName)
          Creates a new cookie handler to convert the cookie to a string value.
 String getDescription()
          Returns the description for this view.
 String getDisplayName()
          
 String getUrl()
          Returns the URL of this object.
protected  void persistValue(String value, String pluginName, org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response)
          Persists the configured values.
 
Methods inherited from class hudson.plugins.analysis.graph.GraphConfigurationView
createDefaultsFile, doSave, getAvailableGraphs, getBuildCount, getBuildCountString, getDayCount, getDayCountString, getDynamic, getGraphRenderer, getGraphRenderer, getGraphRenderer, getGraphType, getHealthDescriptor, getHeight, getKey, getOwner, getTimestamp, getUseBuildDateAsDomain, getWidth, hasMeaningfulGraph, isDeactivated, isHealthGraphAvailable, isVisible, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UserGraphConfigurationView

public UserGraphConfigurationView(GraphConfiguration configuration,
                                  hudson.model.AbstractProject<?,?> project,
                                  String projectActionUrl,
                                  String globalFileName,
                                  javax.servlet.http.Cookie[] cookies,
                                  BuildHistory buildHistory)
Creates a new instance of UserGraphConfigurationView.

Parameters:
configuration - the graph configuration
project - the owning project to configure the graphs for
projectActionUrl - The URL of the project action (used as cookie ID)
globalFileName - The file name of the global configuration
cookies - the cookies containing the graph configuration
buildHistory - the build history for this project

UserGraphConfigurationView

public UserGraphConfigurationView(GraphConfiguration configuration,
                                  hudson.model.AbstractProject<?,?> project,
                                  String projectActionUrl,
                                  javax.servlet.http.Cookie[] cookies,
                                  BuildHistory buildHistory)
Creates a new instance of UserGraphConfigurationView.

Parameters:
configuration - the graph configuration
project - the owning project to configure the graphs for
projectActionUrl - The URL of the project action
cookies - the cookies containing the graph configuration
buildHistory - the build history for this project
Method Detail

createCookieHandler

protected static CookieHandler createCookieHandler(String cookieName)
Creates a new cookie handler to convert the cookie to a string value.

Parameters:
cookieName - the suffix of the cookie name that is used to persist the configuration per user
Returns:
the new cookie handler

getDisplayName

public String getDisplayName()


getDescription

public String getDescription()
Description copied from class: GraphConfigurationView
Returns the description for this view.

Specified by:
getDescription in class GraphConfigurationView
Returns:
the description for this view

getUrl

public String getUrl()
Returns the URL of this object.

Returns:
the URL of this object

persistValue

protected void persistValue(String value,
                            String pluginName,
                            org.kohsuke.stapler.StaplerRequest request,
                            org.kohsuke.stapler.StaplerResponse response)
Description copied from class: GraphConfigurationView
Persists the configured values.

Specified by:
persistValue in class GraphConfigurationView
Parameters:
value - the values configured by the user.
pluginName - the name of the plug-in
request - Stapler request
response - Stapler response


Copyright © 2004-2012 Hudson. All Rights Reserved.