hudson.plugins.jobConfigHistory
Class JobConfigHistoryRootAction
java.lang.Object
hudson.plugins.jobConfigHistory.JobConfigHistoryBaseAction
hudson.plugins.jobConfigHistory.JobConfigHistoryRootAction
- All Implemented Interfaces:
- hudson.ExtensionPoint, hudson.model.Action, hudson.model.ModelObject, hudson.model.RootAction
@Extension
public class JobConfigHistoryRootAction
- extends JobConfigHistoryBaseAction
- implements hudson.model.RootAction
- Author:
- Stefan Brausch, mfriedenhagen
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Methods inherited from class hudson.plugins.jobConfigHistory.JobConfigHistoryBaseAction |
doDiffFiles, getConfigXml, getDiff, getDiffFile, getDiffLines, getDisplayName, getFile, getHudson, getIconFileName, getPlugin, getRequestParameter, wantRawOutput, wantXmlOutput |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface hudson.model.Action |
getDisplayName, getIconFileName |
JobConfigHistoryRootAction
public JobConfigHistoryRootAction()
getUrlName
public final String getUrlName()
-
Do not make this method final as
JobConfigHistoryRootAction
overrides this method.
This actions always starts from the context directly, so prefix JobConfigHistoryConsts.URLNAME with a
slash.
- Specified by:
getUrlName in interface hudson.model.Action- Overrides:
getUrlName in class JobConfigHistoryBaseAction
getConfigs
public final List<ConfigInfo> getConfigs()
throws IOException
- Returns the configuration history entries for all
AbstractProjects and System files in this Hudson instance.
- Returns:
- list for all
AbstractProjects.
- Throws:
IOException - if one of the history entries might not be read.
getSystemConfigs
protected List<ConfigInfo> getSystemConfigs(String filter)
throws IOException
- Returns the configuration history entries for all System files in this Hudson instance.
- Parameters:
filter - name of the system configuration entity to show
- Returns:
- list for all System configuration files.
- Throws:
IOException - if one of the history entries might not be read.
isFiltered
public boolean isFiltered()
- Returns:
- true is the page is loaded with a filter applied
getFilter
public String getFilter()
- Returns:
- the filter text used when loading the page, or null if not filtered
getAccessControlledObject
protected hudson.security.AccessControlled getAccessControlledObject()
- Returns the object for which we want to provide access control.
Returns the hudson instance.
- Specified by:
getAccessControlledObject in class JobConfigHistoryBaseAction
- Returns:
- the access controlled object.
checkConfigurePermission
protected void checkConfigurePermission()
- Description copied from class:
JobConfigHistoryBaseAction
- See whether the current user may read configurations in the object
returned by
JobConfigHistoryBaseAction.getAccessControlledObject().
- Specified by:
checkConfigurePermission in class JobConfigHistoryBaseAction
hasConfigurePermission
protected boolean hasConfigurePermission()
- Description copied from class:
JobConfigHistoryBaseAction
- Returns whether the current user may read configurations in the object
returned by
JobConfigHistoryBaseAction.getAccessControlledObject().
- Specified by:
hasConfigurePermission in class JobConfigHistoryBaseAction
- Returns:
- true if the current user may read configurations.
Copyright © 2004-2012. All Rights Reserved.