|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthudson.model.Descriptor<GerritServer>
com.sonyericsson.hudson.plugins.gerrit.trigger.GerritServer.DescriptorImpl
@Extension public static final class GerritServer.DescriptorImpl
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 |
---|
public GerritServer.DescriptorImpl()
Method Detail |
---|
public String getDisplayName()
getDisplayName
in class hudson.model.Descriptor<GerritServer>
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)
gerritHostName
- the hostnamegerritSshPort
- the ssh-portgerritProxy
- the proxy urlgerritUserName
- the usernamegerritAuthKeyFile
- the private key filegerritAuthKeyFilePassword
- the password for the keyfile or null if there is none.
FormValidation.ok()
if can be done,
FormValidation.error(java.lang.String)
otherwise.public hudson.util.FormValidation doTestRestConnection(@QueryParameter(value="gerritFrontEndUrl") String gerritFrontEndUrl, @QueryParameter(value="gerritHttpUserName") String gerritHttpUserName, @QueryParameter(value="gerritHttpPassword") String gerritHttpPassword)
gerritFrontEndUrl
- the urlgerritHttpUserName
- the user namegerritHttpPassword
- the password
FormValidation.ok()
if it works.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |