com.sonyericsson.hudson.plugins.gerrit.trigger
Class GerritServer.DescriptorImpl

java.lang.Object
  extended by hudson.model.Descriptor<GerritServer>
      extended by com.sonyericsson.hudson.plugins.gerrit.trigger.GerritServer.DescriptorImpl
All Implemented Interfaces:
hudson.model.Saveable
Enclosing class:
GerritServer

@Extension
public static final class GerritServer.DescriptorImpl
extends hudson.model.Descriptor<GerritServer>

Descriptor is only used for UI form bindings.


Nested Class Summary
 
Nested classes/interfaces inherited from class hudson.model.Descriptor
hudson.model.Descriptor.FormException, hudson.model.Descriptor.PropertyType, hudson.model.Descriptor.Self
 
Field Summary
 
Fields inherited from class hudson.model.Descriptor
clazz
 
Fields inherited from interface hudson.model.Saveable
NOOP
 
Constructor Summary
GerritServer.DescriptorImpl()
           
 
Method Summary
 hudson.util.FormValidation doTestConnection(String gerritHostName, int gerritSshPort, String gerritProxy, String gerritUserName, String gerritAuthKeyFile, String gerritAuthKeyFilePassword)
          Tests if the provided parameters can connect to Gerrit.
 hudson.util.FormValidation doTestRestConnection(String gerritFrontEndUrl, String gerritHttpUserName, String gerritHttpPassword)
          Tests if the REST API settings can connect to Gerrit.
 String getDisplayName()
           
 
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, getCheckUrl, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GerritServer.DescriptorImpl

public GerritServer.DescriptorImpl()
Method Detail

getDisplayName

public String getDisplayName()
Specified by:
getDisplayName in class hudson.model.Descriptor<GerritServer>

doTestConnection

public hudson.util.FormValidation doTestConnection(@QueryParameter(value="gerritHostName")
                                                   String gerritHostName,
                                                   @QueryParameter(value="gerritSshPort")
                                                   int gerritSshPort,
                                                   @QueryParameter(value="gerritProxy")
                                                   String gerritProxy,
                                                   @QueryParameter(value="gerritUserName")
                                                   String gerritUserName,
                                                   @QueryParameter(value="gerritAuthKeyFile")
                                                   String gerritAuthKeyFile,
                                                   @QueryParameter(value="gerritAuthKeyFilePassword")
                                                   String gerritAuthKeyFilePassword)
Tests if the provided parameters can connect to Gerrit.

Parameters:
gerritHostName - the hostname
gerritSshPort - the ssh-port
gerritProxy - the proxy url
gerritUserName - the username
gerritAuthKeyFile - the private key file
gerritAuthKeyFilePassword - the password for the keyfile or null if there is none.
Returns:
FormValidation.ok() if can be done, FormValidation.error(java.lang.String) otherwise.

doTestRestConnection

public hudson.util.FormValidation doTestRestConnection(@QueryParameter(value="gerritFrontEndUrl")
                                                       String gerritFrontEndUrl,
                                                       @QueryParameter(value="gerritHttpUserName")
                                                       String gerritHttpUserName,
                                                       @QueryParameter(value="gerritHttpPassword")
                                                       String gerritHttpPassword)
Tests if the REST API settings can connect to Gerrit.

Parameters:
gerritFrontEndUrl - the url
gerritHttpUserName - the user name
gerritHttpPassword - the password
Returns:
FormValidation.ok() if it works.


Copyright © 2004-2013. All Rights Reserved.