Package hudson.model

Class MyView

All Implemented Interfaces:
ExtensionPoint, Describable<View>, DescriptorByNameOwner, ModelObject, Saveable, SearchableModelObject, SearchItem, AccessControlled, ModelObjectWithChildren, HasWidgets

public class MyView extends View
View that only contains projects for which the current user has access to.
Since:
1.220
Author:
Tom Huybrechts
  • Constructor Details

    • MyView

      @DataBoundConstructor public MyView(String name)
    • MyView

      public MyView(String name, ViewGroup owner)
  • Method Details

    • 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
    • doCreateItem

      public TopLevelItem doCreateItem(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException, javax.servlet.ServletException
      Description copied from class: View
      Creates a new Item in this collection.

      This method should call ModifiableItemGroup.doCreateItem(StaplerRequest, StaplerResponse) and then add the newly created item to this view.

      Specified by:
      doCreateItem in class View
      Returns:
      null if fails.
      Throws:
      IOException
      javax.servlet.ServletException
    • getItems

      public Collection<TopLevelItem> getItems()
      Description copied from class: View
      Gets all the items in this collection in a read-only view.
      Specified by:
      getItems in class View
    • getPostConstructLandingPage

      public String getPostConstructLandingPage()
      Description copied from class: View
      Returns the page to redirect the user to, after the view is created. The returned string is appended to "/view/foobar/", so for example to direct the user to the top page of the view, return "", etc.
      Overrides:
      getPostConstructLandingPage in class View
    • submit

      protected void submit(org.kohsuke.stapler.StaplerRequest req) throws IOException, javax.servlet.ServletException, Descriptor.FormException
      Description copied from class: View
      Handles the configuration submission. Load view-specific properties here.
      Specified by:
      submit in class View
      Throws:
      IOException
      javax.servlet.ServletException
      Descriptor.FormException