Package hudson.model

Class ListView

    • Constructor Detail

      • ListView

        @DataBoundConstructor
        public ListView​(String name)
    • Method Detail

      • readResolve

        protected Object readResolve()
      • initColumns

        protected void initColumns()
      • initJobFilters

        protected void initJobFilters()
      • hasJobFilterExtensions

        public boolean hasJobFilterExtensions()
        Used to determine if we want to display the Add button.
      • getJobNames

        public Set<String> getJobNames()
      • getItems

        public List<TopLevelItem> getItems()
        Returns a read-only view of all Jobs in this view.

        This method returns a separate copy each time to avoid concurrent modification issue.

        Specified by:
        getItems in class View
      • contains

        public boolean contains​(TopLevelItem item)
        Description copied from class: View
        Checks if the job is in this collection.
        Specified by:
        contains in class View
      • jobNamesContains

        public boolean jobNamesContains​(TopLevelItem item)
      • getIncludeRegex

        public String getIncludeRegex()
      • isRecurse

        public boolean isRecurse()
      • setRecurse

        @DataBoundSetter
        public void setRecurse​(boolean recurse)
        Since:
        1.568
      • getStatusFilter

        @Deprecated
        public Boolean getStatusFilter()
        Deprecated.
        Status filter is now controlled via a ViewJobFilter, see StatusFilter
        Filter by enabled/disabled status of jobs. Null for no filter, true for enabled-only, false for disabled-only.
      • isAddToCurrentView

        @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
        public boolean isAddToCurrentView()
        Determines the initial state of the checkbox.
        Returns:
        true when the view is empty or already contains jobs specified by name.
      • doAddJobToView

        public org.kohsuke.stapler.HttpResponse doAddJobToView​(@QueryParameter
                                                               String name)
                                                        throws IOException,
                                                               javax.servlet.ServletException
        Description copied from interface: DirectlyModifiableView
        Handle addJobToView web method. This method should RequirePOST.
        Specified by:
        doAddJobToView in interface DirectlyModifiableView
        Parameters:
        name - Item name. This can be either full name relative to owner item group or full item name prefixed with '/'.
        Throws:
        IOException
        javax.servlet.ServletException
      • doRemoveJobFromView

        public org.kohsuke.stapler.HttpResponse doRemoveJobFromView​(@QueryParameter
                                                                    String name)
                                                             throws IOException,
                                                                    javax.servlet.ServletException
        Description copied from interface: DirectlyModifiableView
        Handle removeJobFromView web method. This method should RequirePOST.
        Specified by:
        doRemoveJobFromView in interface DirectlyModifiableView
        Parameters:
        name - Item name. This can be either full name relative to owner item group or full item name prefixed with '/'.
        Throws:
        IOException
        javax.servlet.ServletException
      • setIncludeRegex

        @DataBoundSetter
        public void setIncludeRegex​(String includeRegex)
        Since:
        1.526
      • setJobNames

        @DataBoundSetter
        public void setJobNames​(Set<String> jobNames)