|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecthudson.Plugin
hudson.plugins.jobConfigHistory.JobConfigHistory
public class JobConfigHistory
Class supporting global configuration settings, along with methods associated with the plugin itself.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class hudson.Plugin |
|---|
hudson.Plugin.DummyImpl |
| Field Summary |
|---|
| Fields inherited from interface hudson.model.Saveable |
|---|
NOOP |
| Constructor Summary | |
|---|---|
JobConfigHistory()
|
|
| Method Summary | |
|---|---|
void |
configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData)
|
hudson.util.FormValidation |
doCheckExcludePattern(String value)
Validates the user entry for the regular expression of system file names to exclude from saving. |
hudson.util.FormValidation |
doCheckMaxDaysToKeepEntries(String value)
Validates the user entry for the maximum number of days to keep history items. |
hudson.util.FormValidation |
doCheckMaxEntriesPerPage(String value)
Validates the user entry for the maximum number of history items to show per site. |
hudson.util.FormValidation |
doCheckMaxHistoryEntries(String value)
Validates the user entry for the maximum number of history items to keep. |
protected File |
getConfigFile(File historyDir)
|
protected File |
getConfiguredHistoryRootDir()
Returns the File object representing the configured root history directory. |
String |
getDefaultExcludePattern()
Used by the configuration page. |
String |
getDefaultRootDir()
|
String |
getExcludePattern()
|
protected Pattern |
getExcludeRegexpPattern()
Used for testing to verify invalid pattern not loaded. |
String |
getHistoryRootDir()
|
String |
getMaxDaysToKeepEntries()
|
String |
getMaxEntriesPerPage()
|
String |
getMaxHistoryEntries()
|
boolean |
getSaveItemGroupConfiguration()
Deprecated. since version 2.9 |
boolean |
getSaveModuleConfiguration()
|
String |
getShowBuildBadges()
|
boolean |
getSkipDuplicateHistory()
|
protected void |
setMaxEntriesPerPage(String maxEntryInput)
Set the maximum number of history entries to show per site. |
protected void |
setMaxHistoryEntries(String maxEntryInput)
Set the maximum number of history entries per item. |
void |
setShowBuildBadges(String showBadges)
Used for testing only. |
void |
start()
|
| Methods inherited from class hudson.Plugin |
|---|
configure, doDynamic, getConfigXml, getWrapper, load, postInitialize, save, setServletContext, stop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JobConfigHistory()
| Method Detail |
|---|
public void start()
throws Exception
start in class hudson.PluginException
public void configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData)
throws IOException,
javax.servlet.ServletException,
hudson.model.Descriptor.FormException
configure in class hudson.PluginIOException
javax.servlet.ServletException
hudson.model.Descriptor.FormExceptionpublic String getHistoryRootDir()
public String getDefaultRootDir()
public String getMaxHistoryEntries()
protected void setMaxHistoryEntries(String maxEntryInput)
maxEntryInput - The maximum number of history entries to keeppublic String getMaxEntriesPerPage()
protected void setMaxEntriesPerPage(String maxEntryInput)
maxEntryInput - The maximum number of history entries to show per sitepublic String getMaxDaysToKeepEntries()
@Deprecated public boolean getSaveItemGroupConfiguration()
public boolean getSkipDuplicateHistory()
public String getExcludePattern()
public String getDefaultExcludePattern()
public boolean getSaveModuleConfiguration()
public String getShowBuildBadges()
public void setShowBuildBadges(String showBadges)
showBadges - Never, always, userWithConfigPermission or adminUser.protected Pattern getExcludeRegexpPattern()
protected File getConfiguredHistoryRootDir()
protected File getConfigFile(File historyDir)
historyDir - The history directory to look under.
FileHistoryDao.getConfigFile(java.io.File).
public hudson.util.FormValidation doCheckMaxHistoryEntries(@QueryParameter
String value)
value - The form input entered by the user.
public hudson.util.FormValidation doCheckMaxEntriesPerPage(@QueryParameter
String value)
value - The form input entered by the user.
public hudson.util.FormValidation doCheckMaxDaysToKeepEntries(@QueryParameter
String value)
value - The form input entered by the user.
public hudson.util.FormValidation doCheckExcludePattern(@QueryParameter
String value)
value - The form input entered by the user.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||