org.jenkinsci.plugins.readonly
Class SlaveConfiguration

java.lang.Object
  extended by org.jenkinsci.plugins.readonly.SlaveConfiguration
All Implemented Interfaces:
hudson.model.Action, hudson.model.ModelObject

public class SlaveConfiguration
extends Object
implements hudson.model.Action

Read-only configuration for computers (@link Computer)

Author:
Lucie Votypkova

Constructor Summary
SlaveConfiguration(hudson.model.Computer computer)
           
 
Method Summary
 org.apache.commons.jelly.Script compileScript()
          Compile script with a context for Job class
 void doIndex(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response)
           
 String getConfigContent()
           
 String getDisplayName()
           
 String getIconFileName()
           
 String getUrlName()
           
 boolean isAvailable()
          Determine if the read-only configuration is available for current user
 void transformToReadOnly(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SlaveConfiguration

public SlaveConfiguration(hudson.model.Computer computer)
Method Detail

getIconFileName

public String getIconFileName()
Specified by:
getIconFileName in interface hudson.model.Action

getDisplayName

public String getDisplayName()
Specified by:
getDisplayName in interface hudson.model.Action
Specified by:
getDisplayName in interface hudson.model.ModelObject

getUrlName

public String getUrlName()
Specified by:
getUrlName in interface hudson.model.Action

isAvailable

public boolean isAvailable()
Determine if the read-only configuration is available for current user

Returns:
true if the current user does not have permission to configure computers (@link Computer)

compileScript

public org.apache.commons.jelly.Script compileScript()
Compile script with a context for Job class

Returns:
compiled script

getConfigContent

public String getConfigContent()

doIndex

public void doIndex(org.kohsuke.stapler.StaplerRequest request,
                    org.kohsuke.stapler.StaplerResponse response)
             throws IOException
Throws:
IOException

transformToReadOnly

public void transformToReadOnly(org.kohsuke.stapler.StaplerRequest request,
                                org.kohsuke.stapler.StaplerResponse response)
                         throws IOException
Throws:
IOException


Copyright © 2004-2012. All Rights Reserved.