@Extension public static class BeakerBuilder.DescriptorImpl extends BuildStepDescriptor<Builder>
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
clazz
Constructor and Description |
---|
DescriptorImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData) |
FormValidation |
doTestConnection(String beakerURL,
String login,
Secret password)
Tries to connect to Beaker server and verify that provided credential works.
|
com.github.vjuranek.beaker4j.client.BeakerClient |
getBeakerClient() |
String |
getBeakerURL() |
protected XmlFile |
getConfigFile() |
String |
getDisplayName() |
com.github.vjuranek.beaker4j.remote_model.Identity |
getIdentity()
Beaker identity.
|
String |
getLogin() |
Secret |
getPassword() |
boolean |
isApplicable(Class<? extends AbstractProject> aClass) |
void |
setBeakerURL(String beakerURL) |
void |
setLogin(String login) |
void |
setPassword(Secret secret) |
filter
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, findByDescribableClassName, findById, getCheckMethod, getCheckUrl, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, 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, toMap
public boolean isApplicable(Class<? extends AbstractProject> aClass)
isApplicable
in class BuildStepDescriptor<Builder>
public String getDisplayName()
getDisplayName
in class Descriptor<Builder>
public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData) throws Descriptor.FormException
configure
in class Descriptor<Builder>
Descriptor.FormException
@Restricted(value=org.kohsuke.accmod.restrictions.DoNotUse.class) public void setBeakerURL(String beakerURL)
@Restricted(value=org.kohsuke.accmod.restrictions.DoNotUse.class) public void setLogin(String login)
@Restricted(value=org.kohsuke.accmod.restrictions.DoNotUse.class) public void setPassword(Secret secret)
@Restricted(value=org.kohsuke.accmod.restrictions.DoNotUse.class) public FormValidation doTestConnection(@QueryParameter(value="beakerURL") String beakerURL, @QueryParameter(value="login") String login, @QueryParameter(value="password") Secret password)
public String getBeakerURL()
public String getLogin()
public Secret getPassword()
@CheckForNull public com.github.vjuranek.beaker4j.client.BeakerClient getBeakerClient()
@CheckForNull public com.github.vjuranek.beaker4j.remote_model.Identity getIdentity()
Identity.authenticate()
as previous
authentication authentication of the same identity can be expired.protected XmlFile getConfigFile()
getConfigFile
in class Descriptor<Builder>
Copyright © 2016–2019. All rights reserved.