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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal List<TopLevelItem>filter(List<TopLevelItem> added, List<TopLevelItem> all, View filteringView) booleanisExcluded(Branch branch) Tests if the supplied branch should be excluded.abstract booleanisIncluded(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:
filterin classViewJobFilter
-
isExcluded
Tests if the supplied branch should be excluded.- Parameters:
branch- theBranch.- Returns:
trueto exclude the branch from the view.
-
isIncluded
Tests if the supplied branch should be included. Inclusion wins over exclusion.- Parameters:
branch- theBranch.- Returns:
trueto include the branch from the view.
-