|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objecthudson.Plugin
hudson.plugins.jobConfigHistory.JobConfigHistory
public class JobConfigHistory
Class supporting global configuration settings, along with methods associated with the plugin itself.
| 入れ子のクラスの概要 |
|---|
| クラス hudson.Plugin から継承された入れ子のクラス/インタフェース |
|---|
hudson.Plugin.DummyImpl |
| フィールドの概要 | |
|---|---|
static FileFilter |
HISTORY_FILTER
A filter to return only those directories of a file listing that represent configuration history directories. |
| インタフェース hudson.model.Saveable から継承されたフィールド |
|---|
NOOP |
| コンストラクタの概要 | |
|---|---|
JobConfigHistory()
|
|
| メソッドの概要 | |
|---|---|
protected void |
checkForPurgeByQuantity(File itemHistoryRoot)
Checks if we should purge old history entries under the specified root using the maxHistoryEntries value as the criteria, and if required
calls the appropriate method to perform the purge. |
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 |
doCheckMaxHistoryEntries(String value)
Validates the user entry for the maximum number of history items to keep. |
protected File |
getConfigFile(File historyDir)
Returns the configuration data file stored in the specified history directory. |
protected File |
getConfiguredHistoryRootDir()
Returns the File object representing the configured root history directory. |
String |
getDefaultExcludePattern()
Used by the configuration page. |
String |
getExcludePattern()
|
protected Pattern |
getExcludeRegexpPattern()
Used for testing to verify invalid pattern not loaded. |
protected File |
getHistoryDir(hudson.XmlFile xmlFile)
Returns the configuration history directory for the given configuration file. |
String |
getHistoryRootDir()
|
String |
getMaxHistoryEntries()
|
boolean |
getSaveSystemConfiguration()
|
boolean |
getSkipDuplicateHistory()
|
protected File |
getSystemHistoryDir()
Returns the directory for storing system configurations. |
protected boolean |
isSaveable(hudson.model.Saveable item,
hudson.XmlFile xmlFile)
Returns true if configuration for this item should be saved, based on the plugin settings, the type of item and the configuration file specified. |
protected void |
setMaxHistoryEntries(String maxHistoryEntries)
This method is for convenience in testing. |
void |
start()
|
| クラス hudson.Plugin から継承されたメソッド |
|---|
configure, doDynamic, getConfigXml, getWrapper, load, postInitialize, save, setServletContext, stop |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| フィールドの詳細 |
|---|
public static final FileFilter HISTORY_FILTER
| コンストラクタの詳細 |
|---|
public JobConfigHistory()
| メソッドの詳細 |
|---|
public void start()
throws Exception
hudson.Plugin 内の startException
public void configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData)
throws IOException,
javax.servlet.ServletException,
hudson.model.Descriptor.FormException
hudson.Plugin 内の configureIOException
javax.servlet.ServletException
hudson.model.Descriptor.FormExceptionpublic String getHistoryRootDir()
public String getMaxHistoryEntries()
protected void setMaxHistoryEntries(String maxHistoryEntries)
maxHistoryEntries - The maximum number of history entries to keeppublic boolean getSaveSystemConfiguration()
public boolean getSkipDuplicateHistory()
public String getExcludePattern()
public String getDefaultExcludePattern()
protected Pattern getExcludeRegexpPattern()
protected File getConfiguredHistoryRootDir()
protected File getHistoryDir(hudson.XmlFile xmlFile)
xmlFile - The configuration file whose content we are saving.
protected File getSystemHistoryDir()
protected File getConfigFile(File historyDir)
JobConfigHistoryConsts.HISTORY_FILE.
Relies on the assumption that random '.xml' files will not appear in the history directories.
Checks that we are in an actual 'history directory' to prevent use for getting random xml files.
historyDir - The history directory to look under.
protected boolean isSaveable(hudson.model.Saveable item,
hudson.XmlFile xmlFile)
If the item is an instance of AbstractProject or the configuration
file is stored directly in HUDSON_ROOT, it is considered for saving.
If the plugin is configured to skip saving duplicated history, we also evaluate
if this configuration duplicates the previous saved history (if such history exists).
item - The item whose configuration is under consideration.xmlFile - The configuration file for the above item.
protected void checkForPurgeByQuantity(File itemHistoryRoot)
maxHistoryEntries value as the criteria, and if required
calls the appropriate method to perform the purge.
itemHistoryRoot - The directory to consider purging history under.
public hudson.util.FormValidation doCheckMaxHistoryEntries(@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.
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||