hudson.plugins.collabnet.pblupload
Class PblUploader.DescriptorImpl

java.lang.Object
  extended by hudson.model.Descriptor<T>
      extended by hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher>
          extended by hudson.plugins.collabnet.pblupload.PblUploader.DescriptorImpl
All Implemented Interfaces:
hudson.model.Saveable
Enclosing class:
PblUploader

public static final class PblUploader.DescriptorImpl
extends hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher>

Descriptor for PblUploader. Used as a singleton. The class is marked as public so that it can be accessed from views.


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
 
Method Summary
 void doHostUrlCheck(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
          Form validation for the host_url
 void doKeyCheck(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
          Form validation for the API key.
 void doRegexPrefixCheck(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
          Form validation for the path.
 void doRequiredCheck(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
          Form validation for the user and project
 void doRequiredInterpretedCheck(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
          Form validation for the path.
 void doUnRequiredInterpretedCheck(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
          Form validation for the comment and description.
 java.lang.String getDisplayName()
           
 java.lang.String getHelpFile()
           
 java.lang.String getHelpUrl()
           
 int getUniqueId()
           
 boolean isApplicable(java.lang.Class<? extends hudson.model.AbstractProject> jobType)
          The PblUploader can be used as a post-promotion task.
 PblUploader newInstance(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData)
          Creates a new instance of PblUploader from a submitted form.
 
Methods inherited from class hudson.tasks.BuildStepDescriptor
filter
 
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
 

Method Detail

getUniqueId

public int getUniqueId()
Returns:
a unique integer, used to identify an instance of the PBLUploader plugin on a page.

getDisplayName

public java.lang.String getDisplayName()
Specified by:
getDisplayName in class hudson.model.Descriptor<hudson.tasks.Publisher>
Returns:
human-readable name used in the configuration screen.

getHelpUrl

public java.lang.String getHelpUrl()
Returns:
the path to the help files.

getHelpFile

public java.lang.String getHelpFile()
Overrides:
getHelpFile in class hudson.model.Descriptor<hudson.tasks.Publisher>
Returns:
url for the generic help-file for this plug-in.

isApplicable

public boolean isApplicable(java.lang.Class<? extends hudson.model.AbstractProject> jobType)
The PblUploader can be used as a post-promotion task.

Specified by:
isApplicable in class hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher>
Parameters:
jobType -
Returns:
true

newInstance

public PblUploader newInstance(org.kohsuke.stapler.StaplerRequest req,
                               net.sf.json.JSONObject formData)
                        throws hudson.model.Descriptor.FormException
Creates a new instance of PblUploader from a submitted form.

Overrides:
newInstance in class hudson.model.Descriptor<hudson.tasks.Publisher>
Parameters:
req - config page parameters.
formData - data specific to this section, in json form.
Returns:
new PblUploader instance.
Throws:
FormException
hudson.model.Descriptor.FormException

doHostUrlCheck

public void doHostUrlCheck(org.kohsuke.stapler.StaplerRequest req,
                           org.kohsuke.stapler.StaplerResponse rsp)
                    throws java.io.IOException,
                           javax.servlet.ServletException
Form validation for the host_url

Parameters:
req - StaplerRequest which contains parameters from the config.jelly.
rsp - contains http response data (unused).
Throws:
java.io.IOException
javax.servlet.ServletException

doRequiredCheck

public void doRequiredCheck(org.kohsuke.stapler.StaplerRequest req,
                            org.kohsuke.stapler.StaplerResponse rsp)
                     throws java.io.IOException,
                            javax.servlet.ServletException
Form validation for the user and project

Parameters:
req - StaplerRequest which contains parameters from the config.jelly.
rsp - contains http response data (unused).
Throws:
java.io.IOException
javax.servlet.ServletException

doKeyCheck

public void doKeyCheck(org.kohsuke.stapler.StaplerRequest req,
                       org.kohsuke.stapler.StaplerResponse rsp)
                throws java.io.IOException,
                       javax.servlet.ServletException
Form validation for the API key.

Parameters:
req - StaplerRequest which contains parameters from the config.jelly.
rsp - contains http response data (unused).
Throws:
java.io.IOException
javax.servlet.ServletException

doRequiredInterpretedCheck

public void doRequiredInterpretedCheck(org.kohsuke.stapler.StaplerRequest req,
                                       org.kohsuke.stapler.StaplerResponse rsp)
                                throws java.io.IOException,
                                       javax.servlet.ServletException
Form validation for the path.

Parameters:
req - StaplerRequest which contains parameters from the config.jelly.
rsp - contains http response data (unused).
Throws:
java.io.IOException
javax.servlet.ServletException

doRegexPrefixCheck

public void doRegexPrefixCheck(org.kohsuke.stapler.StaplerRequest req,
                               org.kohsuke.stapler.StaplerResponse rsp)
                        throws java.io.IOException,
                               javax.servlet.ServletException
Form validation for the path.

Parameters:
req - StaplerRequest which contains parameters from the config.jelly.
rsp - contains http response data (unused).
Throws:
java.io.IOException
javax.servlet.ServletException

doUnRequiredInterpretedCheck

public void doUnRequiredInterpretedCheck(org.kohsuke.stapler.StaplerRequest req,
                                         org.kohsuke.stapler.StaplerResponse rsp)
                                  throws java.io.IOException,
                                         javax.servlet.ServletException
Form validation for the comment and description.

Parameters:
req - StaplerRequest which contains parameters from the config.jelly.
rsp - contains http response data (unused).
Throws:
java.io.IOException
javax.servlet.ServletException


Copyright © 2009. All Rights Reserved.