hudson.plugins.warnings.util
Class ReporterDescriptor

java.lang.Object
  extended by hudson.model.Descriptor<hudson.maven.MavenReporter>
      extended by hudson.maven.MavenReporterDescriptor
          extended by hudson.plugins.warnings.util.ReporterDescriptor
All Implemented Interfaces:
hudson.model.Saveable

public abstract class ReporterDescriptor
extends hudson.maven.MavenReporterDescriptor

A maven reporter descriptor that uses a publisher descriptor as delegate to obtain the relevant configuration data.

Author:
Ulli Hafner

Nested Class Summary
 
Nested classes/interfaces inherited from class hudson.model.Descriptor
hudson.model.Descriptor.FormException, hudson.model.Descriptor.PropertyType
 
Field Summary
 
Fields inherited from class hudson.model.Descriptor
clazz
 
Fields inherited from interface hudson.model.Saveable
NOOP
 
Constructor Summary
ReporterDescriptor(java.lang.Class<? extends hudson.maven.MavenReporter> clazz, PluginDescriptor pluginDescriptor)
          Creates a new instance of ReporterDescriptor.
 
Method Summary
 hudson.util.FormValidation doCheckHeight(java.lang.String height)
          Performs on-the-fly validation on the trend graph height.
 void doCheckThreshold(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response)
          Performs on-the-fly validation on the annotations threshold.
 java.lang.String getDisplayName()
          
 java.lang.String getHelpFile()
          
 PluginDescriptor getPublisherDescriptor()
          Gets the publisher descriptor.
 
Methods inherited from class hudson.maven.MavenReporterDescriptor
all, hasConfigScreen, newAutoInstance, newInstance
 
Methods inherited from class hudson.model.Descriptor
configure, configure, configure, convert, doHelp, find, find, getCheckUrl, getConfigPage, getGlobalConfigPage, getHelpFile, getJsonSafeClassName, getPropertyType, getViewPage, isInstance, load, newInstance, newInstancesFromHeteroList, save, toArray, toList, toMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReporterDescriptor

public ReporterDescriptor(java.lang.Class<? extends hudson.maven.MavenReporter> clazz,
                          PluginDescriptor pluginDescriptor)
Creates a new instance of ReporterDescriptor.

Parameters:
clazz - class of the reporter
pluginDescriptor - the plug-in descriptor of the publisher
Method Detail

getDisplayName

public final java.lang.String getDisplayName()

Specified by:
getDisplayName in class hudson.model.Descriptor<hudson.maven.MavenReporter>

getHelpFile

public final java.lang.String getHelpFile()

Overrides:
getHelpFile in class hudson.model.Descriptor<hudson.maven.MavenReporter>

getPublisherDescriptor

public final PluginDescriptor getPublisherDescriptor()
Gets the publisher descriptor.

Returns:
the publisher descriptor

doCheckThreshold

public final void doCheckThreshold(org.kohsuke.stapler.StaplerRequest request,
                                   org.kohsuke.stapler.StaplerResponse response)
                            throws java.io.IOException,
                                   javax.servlet.ServletException
Performs on-the-fly validation on the annotations threshold.

Parameters:
request - Stapler request
response - Stapler response
Throws:
java.io.IOException
javax.servlet.ServletException

doCheckHeight

public final hudson.util.FormValidation doCheckHeight(@QueryParameter
                                                      java.lang.String height)
Performs on-the-fly validation on the trend graph height.

Parameters:
height - the height
Returns:
the form validation


Copyright © 2009. All Rights Reserved.