hudson.plugins.scm_sync_configuration.strategies
Class AbstractScmSyncStrategy<T extends hudson.model.Saveable>

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

public class AbstractScmSyncStrategy<T extends hudson.model.Saveable>
extends java.lang.Object
implements ScmSyncStrategy


Constructor Summary
protected AbstractScmSyncStrategy(java.lang.Class<T> clazz, 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)
          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
 

Constructor Detail

AbstractScmSyncStrategy

protected AbstractScmSyncStrategy(java.lang.Class<T> clazz,
                                  java.util.List<PageMatcher> _pageMatchers)
Method Detail

isSaveableApplicable

public boolean isSaveableApplicable(hudson.model.Saveable saveable)
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
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 © 2010. All Rights Reserved.