public abstract class AbstractScmSyncStrategy extends Object implements ScmSyncStrategy
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractScmSyncStrategy.DefaultCommitMessageFactory |
ScmSyncStrategy.CommitMessageFactory| Modifier | Constructor and Description |
|---|---|
protected |
AbstractScmSyncStrategy(ConfigurationEntityMatcher _configEntityMatcher,
List<PageMatcher> _pageMatchers) |
| Modifier and Type | Method and Description |
|---|---|
List<File> |
collect()
Collects all files, from Jenkins' root directory, that match this strategy.
|
List<File> |
collect(File directory)
Collects all files in the given directory, which must be under Jenkins' root directory, that match this strategy.
|
protected ConfigurationEntityMatcher |
createConfigEntityMatcher() |
ScmSyncStrategy.CommitMessageFactory |
getCommitMessageFactory() |
PageMatcher |
getPageMatcherMatching(String url) |
List<String> |
getSyncIncludes() |
boolean |
isCurrentUrlApplicable(String url)
Is the given url eligible for the current strategy ?
|
boolean |
isSaveableApplicable(hudson.model.Saveable saveable,
File file)
Is the given Saveable eligible for the current strategy ?
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmightHaveBeenApplicableToDeletedSaveableprotected AbstractScmSyncStrategy(ConfigurationEntityMatcher _configEntityMatcher, List<PageMatcher> _pageMatchers)
protected ConfigurationEntityMatcher createConfigEntityMatcher()
public boolean isSaveableApplicable(hudson.model.Saveable saveable,
File file)
ScmSyncStrategyisSaveableApplicable in interface ScmSyncStrategysaveable - A saveable which is savedfile - Corresponding file to the given Saveable objectpublic PageMatcher getPageMatcherMatching(String url)
public List<File> collect()
ScmSyncStrategycollect in interface ScmSyncStrategypublic List<File> collect(File directory)
ScmSyncStrategycollect in interface ScmSyncStrategydirectory - to search inpublic boolean isCurrentUrlApplicable(String url)
ScmSyncStrategyisCurrentUrlApplicable in interface ScmSyncStrategyurl - Current url, where hudson root url has been truncatedpublic List<String> getSyncIncludes()
getSyncIncludes in interface ScmSyncStrategypublic ScmSyncStrategy.CommitMessageFactory getCommitMessageFactory()
getCommitMessageFactory in interface ScmSyncStrategyCopyright © 2004-2016. All Rights Reserved.