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

@Extension
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
 
Constructor Summary
PblUploader.DescriptorImpl()
           
 
Method Summary
 hudson.util.FormValidation doHostUrlCheck(java.lang.String value)
          Form validation for the host_url
 hudson.util.FormValidation doKeyCheck(org.kohsuke.stapler.StaplerRequest req)
          Form validation for the API key.
 hudson.util.FormValidation doRegexPrefixCheck(java.lang.String value)
          Form validation for the path.
 hudson.util.FormValidation doRequiredCheck(java.lang.String value, java.lang.String name)
          Form validation for the user and project
 hudson.util.FormValidation doRequiredInterpretedCheck(java.lang.String value, java.lang.String name)
          Form validation for the path.
 hudson.util.FormValidation doUnRequiredInterpretedCheck(java.lang.String value, java.lang.String name)
          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, isSubTypeOf, 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

PblUploader.DescriptorImpl

public PblUploader.DescriptorImpl()
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 hudson.util.FormValidation doHostUrlCheck(@QueryParameter
                                                 java.lang.String value)
Form validation for the host_url

Parameters:
value - url

doRequiredCheck

public hudson.util.FormValidation doRequiredCheck(@QueryParameter
                                                  java.lang.String value,
                                                  @QueryParameter
                                                  java.lang.String name)
Form validation for the user and project

Parameters:
value -
name - of field

doKeyCheck

public hudson.util.FormValidation doKeyCheck(org.kohsuke.stapler.StaplerRequest req)
Form validation for the API key.

Parameters:
req - StaplerRequest which contains parameters from the config.jelly.

doRequiredInterpretedCheck

public hudson.util.FormValidation doRequiredInterpretedCheck(@QueryParameter
                                                             java.lang.String value,
                                                             @QueryParameter
                                                             java.lang.String name)
Form validation for the path.

Parameters:
value -
name - of field

doRegexPrefixCheck

public hudson.util.FormValidation doRegexPrefixCheck(@QueryParameter
                                                     java.lang.String value)
Form validation for the path.

Parameters:
value -

doUnRequiredInterpretedCheck

public hudson.util.FormValidation doUnRequiredInterpretedCheck(@QueryParameter
                                                               java.lang.String value,
                                                               @QueryParameter
                                                               java.lang.String name)
Form validation for the comment and description.

Parameters:
value -
name - of field


Copyright © 2010. All Rights Reserved.