hudson.plugins.analysis.graph
Class DefaultGraphConfigurationView

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

public class DefaultGraphConfigurationView
extends GraphConfigurationView

Configures the default values for the trend graph of this plug-in.


Constructor Summary
DefaultGraphConfigurationView(GraphConfiguration configuration, hudson.model.AbstractProject<?,?> project, String pluginName, BuildHistory buildHistory)
          Creates a new instance of DefaultGraphConfigurationView.
DefaultGraphConfigurationView(GraphConfiguration configuration, hudson.model.AbstractProject<?,?> project, String pluginName, BuildHistory buildHistory, String url)
          Creates a new instance of DefaultGraphConfigurationView.
 
Method Summary
 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

DefaultGraphConfigurationView

public DefaultGraphConfigurationView(GraphConfiguration configuration,
                                     hudson.model.AbstractProject<?,?> project,
                                     String pluginName,
                                     BuildHistory buildHistory,
                                     String url)
Creates a new instance of DefaultGraphConfigurationView.

Parameters:
configuration - the graph configuration
project - the owning project to configure the graphs for
pluginName - The URL of the project action (there might be a one to many mapping to this defaults view)
buildHistory - the build history for this project
url - The URL of this view

DefaultGraphConfigurationView

public DefaultGraphConfigurationView(GraphConfiguration configuration,
                                     hudson.model.AbstractProject<?,?> project,
                                     String pluginName,
                                     BuildHistory buildHistory)
Creates a new instance of DefaultGraphConfigurationView.

Parameters:
configuration - the graph configuration
project - the owning project to configure the graphs for
pluginName - The name of the plug-in.
buildHistory - the build history for this project
Method Detail

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)
                     throws FileNotFoundException,
                            IOException
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
Throws:
IOException - if the values could not be persisted
FileNotFoundException


Copyright © 2004-2012 Hudson. All Rights Reserved.