Package jenkins.scm.api.trait
Class SCMSourceFilter
- java.lang.Object
-
- jenkins.scm.api.trait.SCMSourceFilter
-
public abstract class SCMSourceFilter extends Object
ASCMNavigatorRequest
dependent filter of project names. Typically these filters may need to make remote requests in order to determine exclusion. If multiple filters are used, if any exclude then the project name is excluded.- Since:
- 3.4.0
- See Also:
for independent filters / filters that can perform completely off-line.
-
-
Constructor Summary
Constructors Constructor Description SCMSourceFilter()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract boolean
isExcluded(SCMNavigatorRequest request, String projectName)
Checks if the supplied project name is excluded from the specifiedSCMNavigatorRequest
.
-
-
-
Method Detail
-
isExcluded
public abstract boolean isExcluded(@NonNull SCMNavigatorRequest request, @NonNull String projectName) throws IOException, InterruptedException
Checks if the supplied project name is excluded from the specifiedSCMNavigatorRequest
.- Parameters:
request
- theSCMNavigatorRequest
.projectName
- the project name.- Returns:
true
if and only if the project name is excluded from the request.- Throws:
IOException
- if there was an I/O error when determining exclusion.InterruptedException
- if interrupted while determining exclusion.
-
-