Package hudson.model

Interface DirectlyModifiableView

All Known Implementing Classes:
ListView

public interface DirectlyModifiableView
Marker interface for View its items can be modified.
Since:
1.566
Author:
ogondza
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Add item to this view.
    org.kohsuke.stapler.HttpResponse
    Handle addJobToView web method.
    org.kohsuke.stapler.HttpResponse
    Handle removeJobFromView web method.
    boolean
    Remove item from this view.
  • Method Details

    • remove

      boolean remove(@NonNull TopLevelItem item) throws IOException, IllegalArgumentException
      Remove item from this view.
      Returns:
      false if item not present in view, true if removed.
      Throws:
      IOException - Removal failed.
      IllegalArgumentException - View rejected to remove an item.
    • add

      void add(@NonNull TopLevelItem item) throws IOException, IllegalArgumentException
      Add item to this view.
      Throws:
      IOException - Adding failed.
      IllegalArgumentException - View rejected to add an item.
    • doAddJobToView

      org.kohsuke.stapler.HttpResponse doAddJobToView(@QueryParameter String name) throws IOException, jakarta.servlet.ServletException
      Handle addJobToView web method. This method should RequirePOST.
      Parameters:
      name - Item name. This can be either full name relative to owner item group or full item name prefixed with '/'.
      Throws:
      IOException
      jakarta.servlet.ServletException
    • doRemoveJobFromView

      org.kohsuke.stapler.HttpResponse doRemoveJobFromView(@QueryParameter String name) throws IOException, jakarta.servlet.ServletException
      Handle removeJobFromView web method. This method should RequirePOST.
      Parameters:
      name - Item name. This can be either full name relative to owner item group or full item name prefixed with '/'.
      Throws:
      IOException
      jakarta.servlet.ServletException