hudson.plugins.collabnet.tracker
Class CNTracker.DescriptorImpl

java.lang.Object
  extended by hudson.model.Descriptor<hudson.tasks.Publisher>
      extended by hudson.plugins.collabnet.tracker.CNTracker.DescriptorImpl
All Implemented Interfaces:
hudson.model.Saveable
Enclosing class:
CNTracker

public static final class CNTracker.DescriptorImpl
extends hudson.model.Descriptor<hudson.tasks.Publisher>


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
 
Method Summary
 void doAssignCheck(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
          Form validation for "assign issue to".
 void doCollabNetUrlCheck(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
          Form validation for the CollabNet URL.
 void doGetProjects(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
          Gets a list of projects to choose from and write them as a JSON string into the response data.
 void doGetProjectUsers(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
          Gets a list of projectUsers to choose from and write them as a JSON string into the response data.
 void doGetReleases(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
          Gets a list of releases to choose from and write them as a JSON string into the response data.
 void doGetTrackers(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
          Gets a list of trackers to choose from and write them as a JSON string into the response data.
 void doPasswordCheck(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
          Check that a password is present and allows login.
 void doProjectCheck(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
          Form validation for the project field.
 void doReleaseCheck(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
          Form validation for the release field.
 void doRequiredCheck(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
          Form validation for username.
 void doRequiredInterpretedCheck(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
          Form validation for the comment and description.
 void doTrackerCheck(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
          Form validation for the tracker field.
 java.lang.String getDisplayName()
           
 java.lang.String getHelpFile()
           
static java.lang.String getHelpUrl()
           
 CNTracker newInstance(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData)
          Creates a new instance of CNTracker from a submitted form.
 
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

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 static java.lang.String getHelpUrl()
Returns:
the url for the help files.

getHelpFile

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

newInstance

public CNTracker newInstance(org.kohsuke.stapler.StaplerRequest req,
                             net.sf.json.JSONObject formData)
                      throws hudson.model.Descriptor.FormException
Creates a new instance of CNTracker 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 CNTracker instance.
Throws:
FormException
hudson.model.Descriptor.FormException

doCollabNetUrlCheck

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

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

doPasswordCheck

public void doPasswordCheck(org.kohsuke.stapler.StaplerRequest req,
                            org.kohsuke.stapler.StaplerResponse rsp)
                     throws java.io.IOException,
                            javax.servlet.ServletException
Check that a password is present and allows login.

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

doProjectCheck

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

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

doTrackerCheck

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

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

doAssignCheck

public void doAssignCheck(org.kohsuke.stapler.StaplerRequest req,
                          org.kohsuke.stapler.StaplerResponse rsp)
                   throws java.io.IOException,
                          javax.servlet.ServletException
Form validation for "assign issue to".

Parameters:
req - StaplerRequest which contains parameters from the config.jelly.
rsp - contains http response data.
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 username.

Parameters:
req - StaplerRequest which contains parameters from the config.jelly.
rsp - contains http response data.
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 comment and description.

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

doReleaseCheck

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

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

doGetProjects

public void doGetProjects(org.kohsuke.stapler.StaplerRequest req,
                          org.kohsuke.stapler.StaplerResponse rsp)
                   throws java.io.IOException
Gets a list of projects to choose from and write them as a JSON string into the response data.

Parameters:
req - contains parameters from the config.jelly.
rsp - http response data.
Throws:
java.io.IOException

doGetTrackers

public void doGetTrackers(org.kohsuke.stapler.StaplerRequest req,
                          org.kohsuke.stapler.StaplerResponse rsp)
                   throws java.io.IOException
Gets a list of trackers to choose from and write them as a JSON string into the response data.

Parameters:
req - contains parameters from the config.jelly.
rsp - http response data.
Throws:
java.io.IOException

doGetProjectUsers

public void doGetProjectUsers(org.kohsuke.stapler.StaplerRequest req,
                              org.kohsuke.stapler.StaplerResponse rsp)
                       throws java.io.IOException
Gets a list of projectUsers to choose from and write them as a JSON string into the response data.

Parameters:
req - contains parameters from the config.jelly.
rsp - http response data.
Throws:
java.io.IOException

doGetReleases

public void doGetReleases(org.kohsuke.stapler.StaplerRequest req,
                          org.kohsuke.stapler.StaplerResponse rsp)
                   throws java.io.IOException
Gets a list of releases to choose from and write them as a JSON string into the response data.

Parameters:
req - contains parameters from the config.jelly.
rsp - http response data.
Throws:
java.io.IOException


Copyright © 2009. All Rights Reserved.