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

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

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

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
 
Field Summary
 
Fields inherited from class hudson.model.Descriptor
clazz
 
Fields inherited from interface hudson.model.Saveable
NOOP
 
Constructor Summary
GerritManagement.DescriptorImpl()
           
 
Method Summary
 hudson.util.FormValidation doRestartConnection()
          Stops the event connection to Gerrit.
 hudson.util.FormValidation doStartConnection()
          Starts the event connection to Gerrit.
 hudson.util.FormValidation doStopConnection()
          Stops the event connection to Gerrit.
 hudson.util.FormValidation doTestConnection(String gerritHostName, int gerritSshPort, String gerritUserName, String gerritAuthKeyFile, String gerritAuthKeyFilePassword)
          Tests if the provided parameters can connect to Gerrit.
 String getDisplayName()
           
 
Methods inherited from class hudson.model.Descriptor
calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, getCheckUrl, getConfigPage, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getPropertyType, getPropertyType, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, 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

GerritManagement.DescriptorImpl

public GerritManagement.DescriptorImpl()
Method Detail

getDisplayName

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

doStartConnection

public hudson.util.FormValidation doStartConnection()
Starts the event connection to Gerrit.

Returns:
ok or error.

doStopConnection

public hudson.util.FormValidation doStopConnection()
Stops the event connection to Gerrit.

Returns:
ok or error.

doRestartConnection

public hudson.util.FormValidation doRestartConnection()
Stops the event connection to Gerrit.

Returns:
ok or error.

doTestConnection

public hudson.util.FormValidation doTestConnection(@QueryParameter(value="gerritHostName")
                                                   String gerritHostName,
                                                   @QueryParameter(value="gerritSshPort")
                                                   int gerritSshPort,
                                                   @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
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.


Copyright © 2004-2011. All Rights Reserved.