org.jenkinsci.plugins.readonly
Class JobConfiguration

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

public class JobConfiguration
extends Object
implements hudson.model.ProminentProjectAction

Display Job configuration page in read-only form

Author:
Lucie Votypkova

Constructor Summary
JobConfiguration(hudson.model.AbstractProject<?,?> project)
           
 
Method Summary
 org.apache.commons.jelly.Script compileScript()
          Compile script with a context for Job class
 String getConfigContent()
           
 String getDisplayName()
           
 String getIconFileName()
           
 String getUrlName()
           
 void transformToReadOnly()
          Transformation of html code which modify all formular's items to read-only
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JobConfiguration

public JobConfiguration(hudson.model.AbstractProject<?,?> project)
Method Detail

compileScript

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

Returns:
compiled script

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

getConfigContent

public String getConfigContent()

transformToReadOnly

public void transformToReadOnly()
                         throws IOException,
                                org.apache.commons.jelly.JellyException,
                                SAXException,
                                ParserConfigurationException,
                                TransformerConfigurationException,
                                TransformerException
Transformation of html code which modify all formular's items to read-only

Throws:
IOException
org.apache.commons.jelly.JellyException
SAXException
ParserConfigurationException
TransformerConfigurationException
TransformerException


Copyright © 2004-2012. All Rights Reserved.