|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.jobConfigHistory.JobConfigHistoryBaseAction
hudson.plugins.jobConfigHistory.JobConfigHistoryProjectAction
public class JobConfigHistoryProjectAction
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class hudson.plugins.jobConfigHistory.JobConfigHistoryBaseAction |
|---|
JobConfigHistoryBaseAction.SideBySideView |
| Constructor Summary | |
|---|---|
JobConfigHistoryProjectAction(hudson.model.AbstractItem project)
|
|
| Method Summary | |
|---|---|
protected void |
checkConfigurePermission()
See whether the current user may read configurations in the object returned by JobConfigHistoryBaseAction.getAccessControlledObject(). |
void |
doForwardToRestoreQuestion(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Action when 'restore' button in showDiffFiles.jelly is pressed. |
void |
doRestore(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Action when 'restore' button is pressed. |
protected hudson.security.AccessControlled |
getAccessControlledObject()
Returns the object for which we want to provide access control. |
String |
getIconFileName()
Make method final, as we always want the same icon file. |
List<ConfigInfo> |
getJobConfigs()
Returns the configuration history entries for one AbstractItem. |
hudson.model.AbstractItem |
getProject()
Returns the project for which we want to see the config history, the config files or the diff. |
protected boolean |
hasConfigurePermission()
Returns whether the current user may read configurations in the object returned by JobConfigHistoryBaseAction.getAccessControlledObject(). |
| Methods inherited from class hudson.plugins.jobConfigHistory.JobConfigHistoryBaseAction |
|---|
doDiffFiles, getConfigXml, getDiff, getDiffFile, getDiffLines, getDisplayName, getFile, getHudson, getPlugin, getRequestParameter, getUrlName, wantRawOutput, wantXmlOutput |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JobConfigHistoryProjectAction(hudson.model.AbstractItem project)
project - for which configurations should be returned.| Method Detail |
|---|
public final String getIconFileName()
null to hide the icon if the user is not allowed to configure
jobs.
public final List<ConfigInfo> getJobConfigs()
throws IOException
AbstractItem.
AbstractItem.
IOException - if JobConfigHistoryConsts.HISTORY_FILE might not be read or the path might not be urlencoded.public final hudson.model.AbstractItem getProject()
protected hudson.security.AccessControlled getAccessControlledObject()
getAccessControlledObject in class JobConfigHistoryBaseActionprotected void checkConfigurePermission()
JobConfigHistoryBaseActionJobConfigHistoryBaseAction.getAccessControlledObject().
checkConfigurePermission in class JobConfigHistoryBaseActionprotected boolean hasConfigurePermission()
JobConfigHistoryBaseActionJobConfigHistoryBaseAction.getAccessControlledObject().
hasConfigurePermission in class JobConfigHistoryBaseAction
public final void doRestore(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException
req - Incoming StaplerRequestrsp - Outgoing StaplerResponse
IOException - If something goes wrong
public final void doForwardToRestoreQuestion(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException
req - StaplerRequest created by pressing the buttonrsp - outgoing StaplerResponse
IOException - If XML file can't be read
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||