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, wait
mightHaveBeenApplicableToDeletedSaveable
protected AbstractScmSyncStrategy(ConfigurationEntityMatcher _configEntityMatcher, List<PageMatcher> _pageMatchers)
protected ConfigurationEntityMatcher createConfigEntityMatcher()
public boolean isSaveableApplicable(hudson.model.Saveable saveable, File file)
ScmSyncStrategy
isSaveableApplicable
in interface ScmSyncStrategy
saveable
- A saveable which is savedfile
- Corresponding file to the given Saveable objectpublic PageMatcher getPageMatcherMatching(String url)
public List<File> collect()
ScmSyncStrategy
collect
in interface ScmSyncStrategy
public List<File> collect(File directory)
ScmSyncStrategy
collect
in interface ScmSyncStrategy
directory
- to search inpublic boolean isCurrentUrlApplicable(String url)
ScmSyncStrategy
isCurrentUrlApplicable
in interface ScmSyncStrategy
url
- Current url, where hudson root url has been truncatedpublic List<String> getSyncIncludes()
getSyncIncludes
in interface ScmSyncStrategy
public ScmSyncStrategy.CommitMessageFactory getCommitMessageFactory()
getCommitMessageFactory
in interface ScmSyncStrategy
Copyright © 2004-2016. All Rights Reserved.