Package jenkins.branch
Class SimpleViewBranchFilter
- java.lang.Object
-
- hudson.views.ViewJobFilter
-
- jenkins.branch.SimpleViewBranchFilter
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<ViewJobFilter>
public abstract class SimpleViewBranchFilter extends ViewJobFilter
Base class for aViewJobFilter
that will filter based on theBranch
that a job in aMultiBranchProject
belongs to.- Since:
- 2.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description SimpleViewBranchFilter()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
Method Detail
-
filter
public final List<TopLevelItem> filter(List<TopLevelItem> added, List<TopLevelItem> all, View filteringView)
- Specified by:
filter
in classViewJobFilter
-
isExcluded
public boolean isExcluded(Branch branch)
Tests if the supplied branch should be excluded.- Parameters:
branch
- theBranch
.- Returns:
true
to exclude the branch from the view.
-
-