hudson.plugins.pmd.util
Class UserGraphConfigurationDetail

java.lang.Object
  extended by hudson.plugins.pmd.util.GraphConfiguration
      extended by hudson.plugins.pmd.util.GraphConfigurationDetail
          extended by hudson.plugins.pmd.util.UserGraphConfigurationDetail
All Implemented Interfaces:
hudson.model.ModelObject

public class UserGraphConfigurationDetail
extends GraphConfigurationDetail

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


Field Summary
 
Fields inherited from class hudson.plugins.pmd.util.GraphConfiguration
DEFAULT_HEIGHT, DEFAULT_WIDTH
 
Constructor Summary
UserGraphConfigurationDetail(hudson.model.AbstractProject<?,?> project, java.lang.String pluginName, org.kohsuke.stapler.StaplerRequest request)
          Creates a new instance of UserGraphConfigurationDetail.
UserGraphConfigurationDetail(hudson.model.AbstractProject<?,?> project, java.lang.String pluginName, org.kohsuke.stapler.StaplerRequest request, ResultAction<?> lastAction)
          Creates a new instance of UserGraphConfigurationDetail.
 
Method Summary
 java.lang.String getDescription()
          Returns the description for this view.
 java.lang.String getDisplayName()
          
 java.lang.String getUrl()
          Returns the URL of this object.
protected  void persistValue(java.lang.String value, org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response)
          Persists the configured values.
 
Methods inherited from class hudson.plugins.pmd.util.GraphConfigurationDetail
checkHeight, createDefaultsFile, doDifference, doDifferenceMap, doFixed, doFixedMap, doHealth, doHealthMap, doPriority, doPriorityMap, doSave, getBuildCountString, getDayCountString, getOwner, getPluginName, getRootUrl, hasMeaningfulGraph, isHealthGraphAvailable
 
Methods inherited from class hudson.plugins.pmd.util.GraphConfiguration
createGraph, getBuildCount, getDayCount, getGraphType, getHeight, getWidth, isBuildCountDefined, isDayCountDefined, isDefault, isValid, isValidBuildCount, isValidHeight, isValidWidth, isVisible, serializeToString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UserGraphConfigurationDetail

public UserGraphConfigurationDetail(hudson.model.AbstractProject<?,?> project,
                                    java.lang.String pluginName,
                                    org.kohsuke.stapler.StaplerRequest request)
Creates a new instance of UserGraphConfigurationDetail.

Parameters:
project - the owning project to configure the graphs for
request - the request with the optional cookie to initialize this instance
pluginName - The name of the plug-in. Also used as the suffix of the cookie name that is used to persist the configuration per user.

UserGraphConfigurationDetail

public UserGraphConfigurationDetail(hudson.model.AbstractProject<?,?> project,
                                    java.lang.String pluginName,
                                    org.kohsuke.stapler.StaplerRequest request,
                                    ResultAction<?> lastAction)
Creates a new instance of UserGraphConfigurationDetail.

Parameters:
project - the owning project to configure the graphs for
request - the request with the optional cookie to initialize this instance
pluginName - The name of the plug-in. Also used as the suffix of the cookie name that is used to persist the configuration per user.
lastAction - the last valid action for this project
Method Detail

getDisplayName

public java.lang.String getDisplayName()


getDescription

public java.lang.String getDescription()
Returns the description for this view.

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

getUrl

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

Returns:
the URL of this object

persistValue

protected void persistValue(java.lang.String value,
                            org.kohsuke.stapler.StaplerRequest request,
                            org.kohsuke.stapler.StaplerResponse response)
Persists the configured values.

Specified by:
persistValue in class GraphConfigurationDetail
Parameters:
value - the values configured by the user.
request - Stapler request
response - Stapler response


Copyright © 2009. All Rights Reserved.