Class DropdownFilterView
java.lang.Object
hudson.model.AbstractModelObject
hudson.model.View
hudson.model.ListView
io.jenkins.plugins.dynamic_view_filter.DropdownFilterView
- All Implemented Interfaces:
ExtensionPoint,Describable<View>,DescriptorByNameOwner,DirectlyModifiableView,ModelObject,Saveable,SearchableModelObject,SearchItem,AccessControlled,ModelObjectWithChildren,HasWidgets
A ListView extension that adds configurable dropdown filters at the top
of the view. Each dropdown can filter jobs by a path segment of the job's
full name or by a build parameter value.
Dropdown values are auto-discovered from the jobs in the view. Selecting a value in a dropdown narrows the displayed jobs. Multiple dropdowns combine with AND logic.
All standard ListView features (columns, job filters, regex) are preserved.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class hudson.model.ListView
ListView.ListenerNested classes/interfaces inherited from class hudson.model.View
View.PropertyListNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.model.View
CONFIGURE, CREATE, DELETE, description, filterExecutors, filterQueue, LIST, name, NEW_PRONOUN, owner, PERMISSIONS, READ, SORTER -
Constructor Summary
ConstructorsConstructorDescriptionDropdownFilterView(String name) DropdownFilterView(String name, ViewGroup owner) -
Method Summary
Modifier and TypeMethodDescriptionReturns dynamic RunMatcher filters derived from active build-parameter dropdown selections.Called from main.jelly to populate dropdown options.getItems()getSelectedValue(int index) Called from main.jelly to mark the currently selected option.voidsetDropdowns(List<DropdownDefinition> dropdowns) voidsetFilterPosition(String filterPosition) protected voidsubmit(org.kohsuke.stapler.StaplerRequest2 req) Methods inherited from class hudson.model.ListView
add, contains, doAddJobToView, doCreateItem, doRemoveJobFromView, getColumns, getDefaultColumns, getIncludeRegex, getJobFilters, getJobNames, getStatusFilter, hasJobFilterExtensions, initColumns, initJobFilters, isAddToCurrentView, isRecurse, jobNamesContains, makeSearchIndex, readResolve, remove, setColumns, setIncludeRegex, setJobFilters, setJobNames, setRecurse, setStatusFilter, submitMethods inherited from class hudson.model.View
all, allInstantiable, create, create, createViewFromXML, doCheckJobName, doChildrenContextMenu, doConfigDotXml, doConfigDotXml, doConfigSubmit, doCreateItem, doDoDelete, doItemCategories, doRssAll, doRssFailed, doRssLatest, doSubmitDescription, doSubmitDescription, getAbsoluteUrl, getACL, getActions, getAllItems, getAllProperties, getApi, getApplicablePropertyDescriptors, getApproximateQueueItemsQuickly, getBuilds, getComputers, getDescription, getDescriptor, getDisplayName, getDynamic, getIndenter, getItem, getItemCreatePermission, getJob, getNewPronoun, getOwner, getOwnerItemGroup, getOwnerPrimaryView, getOwnerViewActions, getPostConstructLandingPage, getProperties, getQueueItems, getSearchGroup, getSearchIcon, getSearchUrl, getTimeline, getUrl, getViewName, getViewUrl, getVisiblePropertyDescriptors, isAutomaticRefreshEnabled, isDefault, isEditable, isFilterExecutors, isFilterQueue, makeSearchIndex, onJobRenamed, registerPermissions, rename, save, setDescription, setFilterExecutors, setFilterQueue, toString, updateByXml, updateTransientActions, writeXmlMethods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, requirePOST, sendError, sendError, sendError, sendError, sendError, sendError, sendError, sendErrorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface hudson.security.AccessControlled
checkAnyPermission, checkPermission, hasAnyPermission, hasPermission, hasPermission, hasPermission2Methods inherited from interface hudson.model.DescriptorByNameOwner
getDescriptorByNameMethods inherited from interface jenkins.widgets.HasWidgets
getWidget, getWidgetsMethods inherited from interface jenkins.model.ModelObjectWithChildren
doChildrenContextMenu
-
Constructor Details
-
DropdownFilterView
-
DropdownFilterView
-
-
Method Details
-
getDropdowns
-
setDropdowns
-
getFilterPosition
-
setFilterPosition
-
getItems
-
getDropdownValues
Called from main.jelly to populate dropdown options. Uses the unfiltered list so all values are always visible. -
getSelectedValue
Called from main.jelly to mark the currently selected option. -
submit
protected void submit(org.kohsuke.stapler.StaplerRequest2 req) throws IOException, jakarta.servlet.ServletException, Descriptor.FormException - Overrides:
submitin classListView- Throws:
IOExceptionjakarta.servlet.ServletExceptionDescriptor.FormException
-
getActiveRunMatchers
Returns dynamic RunMatcher filters derived from active build-parameter dropdown selections. Called by DynamicBuildFilterColumn to filter displayed builds based on dropdown selections.
-