hudson.plugins.scm_sync_configuration.strategies
Class AbstractScmSyncStrategy

java.lang.Object
  extended by hudson.plugins.scm_sync_configuration.strategies.AbstractScmSyncStrategy
All Implemented Interfaces:
ScmSyncStrategy
Direct Known Subclasses:
HudsonConfigScmSyncStrategy, JobConfigScmSyncStrategy

public abstract class AbstractScmSyncStrategy
extends java.lang.Object
implements ScmSyncStrategy


Constructor Summary
protected AbstractScmSyncStrategy(ConfigurationEntityMatcher _configEntityMatcher, java.util.List<PageMatcher> _pageMatchers)
           
 
Method Summary
 PageMatcher getPageMatcherMatching(java.lang.String url)
           
 boolean isCurrentUrlApplicable(java.lang.String url)
          Is the given url eligible for the current strategy ?
 boolean isSaveableApplicable(hudson.model.Saveable saveable, java.io.File file)
          Is the given Saveable eligible for the current strategy ?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface hudson.plugins.scm_sync_configuration.strategies.ScmSyncStrategy
createInitializationSynchronizedFileset
 

Constructor Detail

AbstractScmSyncStrategy

protected AbstractScmSyncStrategy(ConfigurationEntityMatcher _configEntityMatcher,
                                  java.util.List<PageMatcher> _pageMatchers)
Method Detail

isSaveableApplicable

public boolean isSaveableApplicable(hudson.model.Saveable saveable,
                                    java.io.File file)
Description copied from interface: ScmSyncStrategy
Is the given Saveable eligible for the current strategy ?

Specified by:
isSaveableApplicable in interface ScmSyncStrategy
Parameters:
saveable - A saveable which is saved
file - Corresponding file to the given Saveable object
Returns:
true if current Saveable instance matches with current ScmSyncStrategy target, false otherwise

getPageMatcherMatching

public PageMatcher getPageMatcherMatching(java.lang.String url)

isCurrentUrlApplicable

public boolean isCurrentUrlApplicable(java.lang.String url)
Description copied from interface: ScmSyncStrategy
Is the given url eligible for the current strategy ?

Specified by:
isCurrentUrlApplicable in interface ScmSyncStrategy
Parameters:
url - Current url, where hudson root url has been truncated
Returns:
true if current url matches with current ScmSyncStrategy target, false otherwise


Copyright © 2011. All Rights Reserved.