Class ContainerFilter
java.lang.Object
io.jenkins.blueocean.service.embedded.rest.ContainerFilter
- All Implemented Interfaces:
ExtensionPoint
Simple extension point to allow filtering item types by a specific key
This can be used anywhere a list of items are returned, and it will examine
the current request for a ?filter=filter1(param:value),filter2 parameter,
okay the last bit is a future addition once/if OmniSearch and this are consolidated
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Item>
Collection<T>filter
(Collection<T> items) Filters the item list based on the current StaplerRequeststatic <T extends Item>
Collection<T>filter
(Collection<T> items, int start, int limit) Filter items based on supplied filter and paging criteriastatic <T extends Item>
Collection<T>filter
(Collection<T> items, String... filterNames) Filters the item list based on the supplied filter namePredicate to filter itemsgetItemFilter
(String filterName) Finds a item filter by nameabstract String
getName()
Name to match
-
Constructor Details
-
ContainerFilter
public ContainerFilter()
-
-
Method Details
-
getName
Name to match -
getFilter
Predicate to filter items -
filter
Filters the item list based on the current StaplerRequest -
filter
Filters the item list based on the supplied filter name -
filter
Filter items based on supplied filter and paging criteria -
getItemFilter
Finds a item filter by name
-