hudson.plugins.collabnet.browser
Class TeamForge.DescriptorImpl

java.lang.Object
  extended by hudson.model.Descriptor<hudson.scm.RepositoryBrowser<?>>
      extended by hudson.plugins.collabnet.browser.TeamForge.DescriptorImpl
All Implemented Interfaces:
hudson.model.Saveable
Enclosing class:
TeamForge

public static final class TeamForge.DescriptorImpl
extends hudson.model.Descriptor<hudson.scm.RepositoryBrowser<?>>


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
TeamForge.DescriptorImpl()
           
 
Method Summary
 boolean canInheritAuth()
           
 hudson.util.FormValidation doCollabNetUrlCheck(java.lang.String value)
          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 doGetRepos(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
          Gets a list of repos to choose from and write them as a JSON string into the response data.
 hudson.util.FormValidation doPasswordCheck(org.kohsuke.stapler.StaplerRequest req)
          Check that a password is present and allows login.
 hudson.util.FormValidation doProjectCheck(org.kohsuke.stapler.StaplerRequest req)
          Form validation for the project field.
 hudson.util.FormValidation doRepoCheck(org.kohsuke.stapler.StaplerRequest req)
          Form validation for the repo field.
 hudson.util.FormValidation doRequiredCheck(java.lang.String value, java.lang.String name)
          Form validation for username.
 java.lang.String getDisplayName()
           
 java.lang.String getHelpFile()
           
static java.lang.String getHelpUrl()
           
 
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, 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

TeamForge.DescriptorImpl

public TeamForge.DescriptorImpl()
Method Detail

getDisplayName

public java.lang.String getDisplayName()
Specified by:
getDisplayName in class hudson.model.Descriptor<hudson.scm.RepositoryBrowser<?>>

getHelpUrl

public static java.lang.String getHelpUrl()
Returns:
the url that contains the help files.

getHelpFile

public java.lang.String getHelpFile()
Overrides:
getHelpFile in class hudson.model.Descriptor<hudson.scm.RepositoryBrowser<?>>
Returns:
a relative url to the main help file.

canInheritAuth

public boolean canInheritAuth()
Returns:
true if there is auth data that can be inherited.

doCollabNetUrlCheck

public hudson.util.FormValidation doCollabNetUrlCheck(@QueryParameter
                                                      java.lang.String value)
Form validation for the CollabNet URL.

Parameters:
value - the value

doRequiredCheck

public hudson.util.FormValidation doRequiredCheck(@QueryParameter
                                                  java.lang.String value,
                                                  @QueryParameter
                                                  java.lang.String name)
Form validation for username.

Parameters:
value -
name -

doPasswordCheck

public hudson.util.FormValidation doPasswordCheck(org.kohsuke.stapler.StaplerRequest req)
Check that a password is present and allows login.

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

doProjectCheck

public hudson.util.FormValidation doProjectCheck(org.kohsuke.stapler.StaplerRequest req)
Form validation for the project field.

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

doRepoCheck

public hudson.util.FormValidation doRepoCheck(org.kohsuke.stapler.StaplerRequest req)
Form validation for the repo field.

Parameters:
req - contains parameters from the config.jelly.
Throws:
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

doGetRepos

public void doGetRepos(org.kohsuke.stapler.StaplerRequest req,
                       org.kohsuke.stapler.StaplerResponse rsp)
                throws java.io.IOException
Gets a list of repos 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 © 2010. All Rights Reserved.