Package hudson.views

Class StatusFilter

    • Constructor Detail

      • StatusFilter

        public StatusFilter​(boolean statusFilter)
        Creates a new status filter based on supplied boolean
        statusFilter - true for enabled jobs only and false for disabled jobs only
    • Method Detail

      • filter

        public List<TopLevelItem> filter​(List<TopLevelItem> added,
                                         List<TopLevelItem> all,
                                         View filteringView)
        Choose which jobs to show for a view.
        Specified by:
        filter in class ViewJobFilter
        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.
        a new list based off of the jobs added so far, and all jobs available.
      • getStatusFilter

        public boolean getStatusFilter()
        The setting of the job status filter
        true if only enabled jobs are shown and false if only disabled jobs are shown