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 TypeMethodDescriptionvoid
add
(TopLevelItem item) Add item to this view.org.kohsuke.stapler.HttpResponse
doAddJobToView
(String name) Handle addJobToView web method.org.kohsuke.stapler.HttpResponse
doRemoveJobFromView
(String name) Handle removeJobFromView web method.boolean
remove
(TopLevelItem item) Remove item from this view.
-
Method Details
-
remove
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
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 shouldRequirePOST
.- 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 shouldRequirePOST
.- 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
-