hudson.plugins.bugzilla
Class BugzillaProjectProperty.DescriptorImpl

java.lang.Object
  extended by hudson.model.Descriptor<hudson.model.JobProperty<?>>
      extended by hudson.model.JobPropertyDescriptor
          extended by hudson.plugins.bugzilla.BugzillaProjectProperty.DescriptorImpl
All Implemented Interfaces:
hudson.model.Saveable
Enclosing class:
BugzillaProjectProperty

public static final class BugzillaProjectProperty.DescriptorImpl
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
BugzillaProjectProperty.DescriptorImpl()
           
 
Method Summary
 boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData)
           
 hudson.util.FormValidation doLoginCheck(java.lang.String url, java.lang.String user, java.lang.String pass)
          Checks if the user name and password are valid.
 hudson.util.FormValidation doRegexCheck(java.lang.String value)
          Checks if the Bugzilla URL is accessible and exists.
 hudson.util.FormValidation doUrlCheck(java.lang.String value)
          Checks if the Bugzilla URL is accessible and exists.
 java.lang.String getBaseUrl()
           
 BugzillaSession getBugzillaSession()
           
 java.lang.String getDisplayName()
           
 java.lang.String getPassword()
           
 java.lang.String getRegex()
           
 java.lang.String getUsername()
           
 boolean getUseToolTips()
           
 boolean isApplicable(java.lang.Class<? extends hudson.model.Job> jobType)
           
 BugzillaProjectProperty newInstance(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData)
           
 
Methods inherited from class hudson.model.JobPropertyDescriptor
all, getPropertyDescriptors
 
Methods inherited from class hudson.model.Descriptor
calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, getCheckUrl, getConfigPage, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getPropertyType, getPropertyType, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstancesFromHeteroList, 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

BugzillaProjectProperty.DescriptorImpl

public BugzillaProjectProperty.DescriptorImpl()
Method Detail

isApplicable

public boolean isApplicable(java.lang.Class<? extends hudson.model.Job> jobType)
Overrides:
isApplicable in class hudson.model.JobPropertyDescriptor

getDisplayName

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

newInstance

public BugzillaProjectProperty newInstance(org.kohsuke.stapler.StaplerRequest req,
                                           net.sf.json.JSONObject formData)
                                    throws hudson.model.Descriptor.FormException
Overrides:
newInstance in class hudson.model.JobPropertyDescriptor
Throws:
hudson.model.Descriptor.FormException

configure

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

getBaseUrl

public java.lang.String getBaseUrl()

getUsername

public java.lang.String getUsername()

getPassword

public java.lang.String getPassword()

getUseToolTips

public boolean getUseToolTips()

getRegex

public java.lang.String getRegex()

getBugzillaSession

public BugzillaSession getBugzillaSession()

doRegexCheck

public hudson.util.FormValidation doRegexCheck(@QueryParameter
                                               java.lang.String value)
Checks if the Bugzilla URL is accessible and exists.


doUrlCheck

public hudson.util.FormValidation doUrlCheck(@QueryParameter
                                             java.lang.String value)
                                      throws java.io.IOException,
                                             javax.servlet.ServletException
Checks if the Bugzilla URL is accessible and exists.

Throws:
java.io.IOException
javax.servlet.ServletException

doLoginCheck

public hudson.util.FormValidation doLoginCheck(@QueryParameter
                                               java.lang.String url,
                                               @QueryParameter
                                               java.lang.String user,
                                               @QueryParameter
                                               java.lang.String pass)
                                        throws java.io.IOException
Checks if the user name and password are valid.

Throws:
java.io.IOException


Copyright © 2011. All Rights Reserved.