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

public class JobConfiguration
extends Object
implements hudson.model.Action

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
 void doIndex(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response)
           
 String getConfigContent()
           
 String getDisplayName()
           
 String getIconFileName()
           
 String getUrlName()
           
 boolean isAvailable()
           
 void transformToReadOnly(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response)
          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

isAvailable

public boolean isAvailable()
                    throws IOException,
                           javax.servlet.ServletException
Throws:
IOException
javax.servlet.ServletException

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
Transformation of html code which modify all formular's items to read-only

Throws:
IOException


Copyright © 2004-2012. All Rights Reserved.