hudson.plugins.sauce_ondemand
Class PluginImpl

java.lang.Object
  extended by hudson.Plugin
      extended by 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 Class Summary
static class PluginImpl.DescriptorImpl
           
 
Nested classes/interfaces inherited from class hudson.Plugin
hudson.Plugin.DummyImpl
 
Field Summary
 
Fields inherited from interface hudson.model.Saveable
NOOP
 
Constructor Summary
PluginImpl()
           
 
Method Summary
 String applyUpdates()
           
 String checkForUpdates()
           
 void configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData)
           
static PluginImpl get()
           
 hudson.util.Secret getApiKey()
           
 PluginImpl.DescriptorImpl getDescriptor()
           
 String getSauceConnectDirectory()
           
 String getUsername()
           
 boolean isDisableStatusColumn()
           
 boolean isReuseSauceAuth()
           
 void setCredential(String username, String apiKey)
           
 void setDisableStatusColumn(boolean disableStatusColumn)
           
 void setSauceConnectDirectory(String sauceConnectDirectory)
           
 void start()
           
 
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
 

Constructor Detail

PluginImpl

public PluginImpl()
Method Detail

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()

getSauceConnectDirectory

public String getSauceConnectDirectory()

setSauceConnectDirectory

public void setSauceConnectDirectory(String sauceConnectDirectory)

checkForUpdates

@JavaScriptMethod
public String checkForUpdates()
Returns:

applyUpdates

@JavaScriptMethod
public String applyUpdates()
Returns:

isDisableStatusColumn

public boolean isDisableStatusColumn()

setDisableStatusColumn

public void setDisableStatusColumn(boolean disableStatusColumn)


Copyright © 2004-2013. All Rights Reserved.