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
 String getConfigContent()
           
 String getDisplayName()
           
 String getIconFileName()
           
 String getUrlName()
           
 boolean isAvailable()
          Determine if the read-only configuration is available for current user
 void transformToReadOnly()
           
 
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()

transformToReadOnly

public void transformToReadOnly()
                         throws IOException,
                                org.apache.commons.jelly.JellyException,
                                SAXException,
                                ParserConfigurationException,
                                TransformerConfigurationException,
                                TransformerException
Throws:
IOException
org.apache.commons.jelly.JellyException
SAXException
ParserConfigurationException
TransformerConfigurationException
TransformerException


Copyright © 2004-2012. All Rights Reserved.