Package jenkins.branch
Class SimpleViewBranchFilter
java.lang.Object
hudson.views.ViewJobFilter
jenkins.branch.SimpleViewBranchFilter
- All Implemented Interfaces:
ExtensionPoint
,Describable<ViewJobFilter>
Base class for a
ViewJobFilter
that will filter based on the Branch
that a job in a
MultiBranchProject
belongs to.- Since:
- 2.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal List<TopLevelItem>
filter
(List<TopLevelItem> added, List<TopLevelItem> all, View filteringView) boolean
isExcluded
(Branch branch) Tests if the supplied branch should be excluded.abstract boolean
isIncluded
(Branch branch) Tests if the supplied branch should be included.Methods inherited from class hudson.views.ViewJobFilter
all, getDescriptor
-
Constructor Details
-
SimpleViewBranchFilter
public SimpleViewBranchFilter()
-
-
Method Details
-
filter
public final List<TopLevelItem> filter(List<TopLevelItem> added, List<TopLevelItem> all, View filteringView) - Specified by:
filter
in classViewJobFilter
-
isExcluded
Tests if the supplied branch should be excluded.- Parameters:
branch
- theBranch
.- Returns:
true
to exclude the branch from the view.
-
isIncluded
Tests if the supplied branch should be included. Inclusion wins over exclusion.- Parameters:
branch
- theBranch
.- Returns:
true
to include the branch from the view.
-