Package jenkins.scm.api.trait
Class SCMSourcePrefilter
- java.lang.Object
-
- jenkins.scm.api.trait.SCMSourcePrefilter
-
public abstract class SCMSourcePrefilter extends Object
ASCMNavigatorRequest
independent filter of project names. These filters may not make remote requests in order to determine exclusion. If multiple filters are used, if any exclude then the project name is excluded. TheSCMSourcePrefilter
instances are applied beforeSCMSourceFilter
instances in order to minimize remote requests.- Since:
- 3.4.0
- See Also:
for dependent filters / filters that can may require on-line operation.
-
-
Constructor Summary
Constructors Constructor Description SCMSourcePrefilter()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract boolean
isExcluded(SCMNavigator source, String projectName)
Checks if the supplied project name is excluded from the specifiedSCMNavigator
.
-
-
-
Method Detail
-
isExcluded
public abstract boolean isExcluded(@NonNull SCMNavigator source, @NonNull String projectName)
Checks if the supplied project name is excluded from the specifiedSCMNavigator
.- Parameters:
source
- theSCMNavigator
.projectName
- the project name.- Returns:
true
if and only if theSCMHead
is excluded from the request.
-
-