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 a ViewJobFilter that will filter based on the Branch that a job in a MultiBranchProject belongs to.
Since:
2.0
  • 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 class ViewJobFilter
    • isExcluded

      public boolean isExcluded(Branch branch)
      Tests if the supplied branch should be excluded.
      Parameters:
      branch - the Branch.
      Returns:
      true to exclude the branch from the view.
    • isIncluded

      public abstract boolean isIncluded(Branch branch)
      Tests if the supplied branch should be included. Inclusion wins over exclusion.
      Parameters:
      branch - the Branch.
      Returns:
      true to include the branch from the view.