hudson.plugins.sauce_ondemand
Class PluginImpl
java.lang.Object
hudson.Plugin
hudson.plugins.sauce_ondemand.PluginImpl
- All Implemented Interfaces:
- hudson.model.Describable<PluginImpl>, hudson.model.Saveable
@Extension
public class PluginImpl
- extends hudson.Plugin
- implements hudson.model.Describable<PluginImpl>
Persists the access credential to Sauce OnDemand.
- Author:
- Kohsuke Kawaguchi
| Nested classes/interfaces inherited from class hudson.Plugin |
hudson.Plugin.DummyImpl |
| Fields inherited from interface hudson.model.Saveable |
NOOP |
| Methods inherited from class hudson.Plugin |
configure, doDynamic, getConfigXml, getWrapper, load, postInitialize, save, setServletContext, stop |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PluginImpl
public PluginImpl()
getUsername
public String getUsername()
getApiKey
public hudson.util.Secret getApiKey()
start
public void start()
throws Exception
- Overrides:
start in class hudson.Plugin
- Throws:
Exception
setCredential
public void setCredential(String username,
String apiKey)
throws IOException
- Throws:
IOException
configure
public void configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData)
throws IOException,
javax.servlet.ServletException,
hudson.model.Descriptor.FormException
- Overrides:
configure in class hudson.Plugin
- Throws:
IOException
javax.servlet.ServletException
hudson.model.Descriptor.FormException
getDescriptor
public PluginImpl.DescriptorImpl getDescriptor()
- Specified by:
getDescriptor in interface hudson.model.Describable<PluginImpl>
get
public static PluginImpl get()
isReuseSauceAuth
public boolean isReuseSauceAuth()
checkForUpdates
@JavaScriptMethod
public String checkForUpdates()
- Returns:
applyUpdates
@JavaScriptMethod
public String applyUpdates()
- Returns:
Copyright © 2004-2012. All Rights Reserved.