hudson.plugins.klaros
Class KlarosTestResultPublisher.DescriptorImpl

java.lang.Object
  extended by hudson.model.Descriptor<T>
      extended by hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher>
          extended by hudson.plugins.klaros.KlarosTestResultPublisher.DescriptorImpl
All Implemented Interfaces:
hudson.model.Saveable
Enclosing class:
KlarosTestResultPublisher

@Extension
public static final class KlarosTestResultPublisher.DescriptorImpl
extends hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher>

Descriptor for KlarosImportPublisher class. 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
KlarosTestResultPublisher.DescriptorImpl()
          Instantiates a new descriptor impl.
 
Method Summary
 boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json)
          
 hudson.util.FormValidation doCheck(hudson.model.AbstractProject<?,?> project, java.lang.String value)
          Performs on-the-fly validation on the file mask wildcard.
 hudson.util.FormValidation doCheckInstallation(java.lang.String value)
          Performs on-the-fly validation on the server installation.
 hudson.util.FormValidation doCheckUrl(java.lang.String value)
          Performs on-the-fly validation on a Klaros application URL.
 hudson.util.FormValidation doTestConnection(java.lang.String url, java.lang.String username, java.lang.String password)
          Test the connection with the given parameters.
 java.lang.String getDisplayName()
          This human readable name is used in the configuration screen.
 java.lang.String getHelpFile()
          
 java.util.List<java.lang.String> getUrls()
          Gets the urls.
 boolean isApplicable(java.lang.Class<? extends hudson.model.AbstractProject> jobType)
          
 void setUrls(java.util.List<java.lang.String> setUrls)
          Sets the URLs.
 
Methods inherited from class hudson.tasks.BuildStepDescriptor
filter
 
Methods inherited from class hudson.model.Descriptor
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

KlarosTestResultPublisher.DescriptorImpl

public KlarosTestResultPublisher.DescriptorImpl()
Instantiates a new descriptor impl.

Method Detail

getDisplayName

public java.lang.String getDisplayName()
This human readable name is used in the configuration screen.

Specified by:
getDisplayName in class hudson.model.Descriptor<hudson.tasks.Publisher>

configure

public boolean configure(org.kohsuke.stapler.StaplerRequest req,
                         net.sf.json.JSONObject json)
                  throws hudson.model.Descriptor.FormException

Overrides:
configure in class hudson.model.Descriptor<hudson.tasks.Publisher>
Throws:
hudson.model.Descriptor.FormException

isApplicable

public boolean isApplicable(java.lang.Class<? extends hudson.model.AbstractProject> jobType)

Specified by:
isApplicable in class hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher>

getHelpFile

public java.lang.String getHelpFile()

Overrides:
getHelpFile in class hudson.model.Descriptor<hudson.tasks.Publisher>

getUrls

public java.util.List<java.lang.String> getUrls()
Gets the urls.

Returns:
the urls

setUrls

public void setUrls(java.util.List<java.lang.String> setUrls)
Sets the URLs.

Parameters:
setUrls - the new URLs

doCheckUrl

public hudson.util.FormValidation doCheckUrl(java.lang.String value)
                                      throws java.io.IOException,
                                             javax.servlet.ServletException
Performs on-the-fly validation on a Klaros application URL.

Parameters:
value - the url value to check
Returns:
the form validation result
Throws:
java.io.IOException - Signals that an I/O exception has occurred.
javax.servlet.ServletException - the servlet exception

doCheck

public hudson.util.FormValidation doCheck(@AncestorInPath
                                          hudson.model.AbstractProject<?,?> project,
                                          @QueryParameter
                                          java.lang.String value)
                                   throws java.io.IOException,
                                          javax.servlet.ServletException
Performs on-the-fly validation on the file mask wildcard.

Parameters:
project - the current project
value - the mask value to check
Returns:
the form validation result
Throws:
java.io.IOException - Signals that an I/O exception has occurred.
javax.servlet.ServletException - the servlet exception

doCheckInstallation

public hudson.util.FormValidation doCheckInstallation(@QueryParameter
                                                      java.lang.String value)
                                               throws java.io.IOException,
                                                      javax.servlet.ServletException
Performs on-the-fly validation on the server installation.

Parameters:
value - the mask value to check
Returns:
the form validation result
Throws:
java.io.IOException - Signals that an I/O exception has occurred.
javax.servlet.ServletException - the servlet exception

doTestConnection

public hudson.util.FormValidation doTestConnection(@QueryParameter
                                                   java.lang.String url,
                                                   @QueryParameter
                                                   java.lang.String username,
                                                   @QueryParameter
                                                   java.lang.String password)
                                            throws java.io.IOException,
                                                   javax.servlet.ServletException
Test the connection with the given parameters.

Parameters:
url - the url
username - the username
password - the password
Returns:
the form validation
Throws:
java.io.IOException - Signals that an I/O exception has occurred.
javax.servlet.ServletException - the servlet exception


Copyright © 2009-2010 verit Informationssysteme GmbH. All Rights Reserved.