Package hudson.views
Class ViewJobFilter
java.lang.Object
hudson.views.ViewJobFilter
- All Implemented Interfaces:
- ExtensionPoint,- Describable<ViewJobFilter>
- Direct Known Subclasses:
- StatusFilter
public abstract class ViewJobFilter
extends Object
implements ExtensionPoint, Describable<ViewJobFilter>
Each ViewJobFilter contributes to or removes from the list of Jobs for a view.
- Author:
- Jacob Robertson
- 
Nested Class SummaryNested classes/interfaces inherited from interface hudson.ExtensionPointExtensionPoint.LegacyInstancesAreScopedToHudson
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionall()Returns all the registeredViewJobFilterdescriptors.abstract List<TopLevelItem> filter(List<TopLevelItem> added, List<TopLevelItem> all, View filteringView) Choose which jobs to show for a view.Gets the descriptor for this instance.
- 
Constructor Details- 
ViewJobFilterpublic ViewJobFilter()
 
- 
- 
Method Details- 
allReturns all the registeredViewJobFilterdescriptors.
- 
getDescriptorDescription copied from interface:DescribableGets the descriptor for this instance.Descriptoris a singleton for every concreteDescribableimplementation, so ifa.getClass() == b.getClass()then by defaulta.getDescriptor() == b.getDescriptor()as well. (In rare cases a single implementation class may be used for instances with distinct descriptors.)By default looks for a nested class (conventionally named DescriptorImpl) implementingDescriptorand marked withExtension.- Specified by:
- getDescriptorin interface- Describable<ViewJobFilter>
 
- 
filterpublic abstract List<TopLevelItem> filter(List<TopLevelItem> added, List<TopLevelItem> all, View filteringView) Choose which jobs to show for a view.- Parameters:
- added- which jobs have been added so far. This JobFilter can remove or add to this list.
- all- All jobs that are possible.
- filteringView- The view that we are filtering jobs for.
- Returns:
- a new list based off of the jobs added so far, and all jobs available.
 
 
-