hudson.plugins.collabnet.share
Class TeamForgeShare.TeamForgeShareDescriptor

java.lang.Object
  extended by hudson.model.Descriptor<hudson.model.JobProperty<?>>
      extended by hudson.model.JobPropertyDescriptor
          extended by hudson.plugins.collabnet.share.TeamForgeShare.TeamForgeShareDescriptor
All Implemented Interfaces:
hudson.model.Saveable
Enclosing class:
TeamForgeShare

@Extension
public static final class TeamForgeShare.TeamForgeShareDescriptor
extends hudson.model.JobPropertyDescriptor


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
TeamForgeShare.TeamForgeShareDescriptor()
           
 
Method Summary
 boolean configure(org.kohsuke.stapler.StaplerRequest staplerRequest, net.sf.json.JSONObject json)
           
 hudson.util.FormValidation doCollabNetUrlCheck(java.lang.String value)
          Form validation for the CollabNet URL.
 hudson.util.FormValidation doPasswordCheck(org.kohsuke.stapler.StaplerRequest req)
          Check that a password is present and allows login.
 hudson.util.FormValidation doRequiredCheck(java.lang.String value, java.lang.String name)
          Form validation for username.
 java.lang.String getCollabNetUrl()
           
 java.lang.String getDisplayName()
           
 java.lang.String getPassword()
           
 java.lang.String getUsername()
           
 boolean isApplicable(java.lang.Class<? extends hudson.model.Job> jobType)
          This should never show up in any jobs since it's only for global configuration.
 boolean useGlobal()
           
 
Methods inherited from class hudson.model.JobPropertyDescriptor
all, getPropertyDescriptors, newInstance
 
Methods inherited from class hudson.model.Descriptor
configure, configure, convert, doHelp, find, find, getCheckUrl, getConfigPage, getGlobalConfigPage, getHelpFile, 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

TeamForgeShare.TeamForgeShareDescriptor

public TeamForgeShare.TeamForgeShareDescriptor()
Method Detail

getDisplayName

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

isApplicable

public boolean isApplicable(java.lang.Class<? extends hudson.model.Job> jobType)
This should never show up in any jobs since it's only for global configuration.

Overrides:
isApplicable in class hudson.model.JobPropertyDescriptor

configure

public boolean configure(org.kohsuke.stapler.StaplerRequest staplerRequest,
                         net.sf.json.JSONObject json)
                  throws hudson.model.Descriptor.FormException
Overrides:
configure in class hudson.model.Descriptor<hudson.model.JobProperty<?>>
Throws:
hudson.model.Descriptor.FormException

useGlobal

public boolean useGlobal()

getCollabNetUrl

public java.lang.String getCollabNetUrl()

getUsername

public java.lang.String getUsername()

getPassword

public java.lang.String getPassword()

doCollabNetUrlCheck

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

Parameters:
value - url

doRequiredCheck

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

Parameters:
value -
name - of field

doPasswordCheck

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

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


Copyright © 2010. All Rights Reserved.