@Extension
public final class VCommanderConfig
extends jenkins.model.GlobalConfiguration
| Constructor and Description |
|---|
VCommanderConfig()
Constructor, initializes the fields from saved json data
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject json) |
hudson.util.FormValidation |
doCheckAddress(String value)
Called by jelly, to validate address field
|
hudson.util.FormValidation |
doCheckCredentialsId(hudson.model.Item item,
String address,
String credentialsId)
Called by jelly, to validate credential field
|
hudson.util.ListBoxModel |
doFillCredentialsIdItems(hudson.model.Item item,
String credentialsId,
String address)
Called by jelly, to populate credentials drop-down
|
hudson.util.FormValidation |
doTestConnection(String address,
String credentialsId,
String orgName)
Called by jelly, to validate credentials
|
String |
getAddress() |
String |
getCredentialsId() |
String |
getOrgName() |
static VCommanderClient |
getVCommanderClient()
Creates a vComamnder rest client based on the global configuration
|
void |
setAddress(String address) |
void |
setCredentialsId(String credentialsId) |
void |
setOrgName(String orgName) |
protected void |
setvCommanderClient(VCommanderClient vCommanderClient)
Inject a rest client
Useful for unit testing
|
all, getCategory, getDescriptor, getGlobalConfigPageaddHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, findByDescribableClassName, findById, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMappublic VCommanderConfig()
public static VCommanderClient getVCommanderClient() throws VCommanderException
VCommanderExceptionprotected void setvCommanderClient(VCommanderClient vCommanderClient)
vCommanderClient - vCommadner rest clientpublic boolean configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject json)
throws hudson.model.Descriptor.FormException
configure in class hudson.model.Descriptor<jenkins.model.GlobalConfiguration>hudson.model.Descriptor.FormExceptionpublic hudson.util.ListBoxModel doFillCredentialsIdItems(@AncestorInPath
hudson.model.Item item,
@QueryParameter
String credentialsId,
@QueryParameter
String address)
public hudson.util.FormValidation doCheckAddress(@QueryParameter
String value)
throws IOException,
javax.servlet.ServletException
IOExceptionjavax.servlet.ServletExceptionpublic hudson.util.FormValidation doCheckCredentialsId(@AncestorInPath
hudson.model.Item item,
@QueryParameter
String address,
@QueryParameter
String credentialsId)
public hudson.util.FormValidation doTestConnection(@QueryParameter(value="address")
String address,
@QueryParameter(value="credentialsId")
String credentialsId,
@QueryParameter(value="orgName")
String orgName)
throws IOException,
javax.servlet.ServletException
IOExceptionjavax.servlet.ServletExceptionpublic String getAddress()
public void setAddress(String address)
public String getCredentialsId()
public void setCredentialsId(String credentialsId)
public String getOrgName()
public void setOrgName(String orgName)
Copyright © 2016–2018. All rights reserved.