hudson.plugins.findbugs.util
Class DefaultGraphConfigurationDetail

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

public class DefaultGraphConfigurationDetail
extends GraphConfigurationDetail

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


Field Summary
 
Fields inherited from class hudson.plugins.findbugs.util.GraphConfiguration
DEFAULT_HEIGHT, DEFAULT_WIDTH
 
Constructor Summary
DefaultGraphConfigurationDetail(hudson.model.AbstractProject<?,?> project, java.lang.String fileName)
          Creates a new instance of DefaultGraphConfigurationDetail.
DefaultGraphConfigurationDetail(hudson.model.AbstractProject<?,?> project, java.lang.String fileName, ResultAction<?> lastAction)
          Creates a new instance of DefaultGraphConfigurationDetail.
 
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.findbugs.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.findbugs.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

DefaultGraphConfigurationDetail

public DefaultGraphConfigurationDetail(hudson.model.AbstractProject<?,?> project,
                                       java.lang.String fileName)
Creates a new instance of DefaultGraphConfigurationDetail.

Parameters:
project - the owning project to configure the graphs for
fileName - the file name that is used to persist the configuration

DefaultGraphConfigurationDetail

public DefaultGraphConfigurationDetail(hudson.model.AbstractProject<?,?> project,
                                       java.lang.String fileName,
                                       ResultAction<?> lastAction)
Creates a new instance of DefaultGraphConfigurationDetail.

Parameters:
project - the owning project to configure the graphs for
fileName - the file name that is used to persist the configuration
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)
                     throws java.io.FileNotFoundException,
                            java.io.IOException
Persists the configured values.

Specified by:
persistValue in class GraphConfigurationDetail
Parameters:
value - the values configured by the user.
request - Stapler request
response - Stapler response
Throws:
java.io.IOException - if the values could not be persisted
java.io.FileNotFoundException


Copyright © 2009. All Rights Reserved.