Package hudson.model
Interface DirectlyModifiableView
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
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 Detail
-
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, javax.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
javax.servlet.ServletException
-
doRemoveJobFromView
org.kohsuke.stapler.HttpResponse doRemoveJobFromView(@QueryParameter String name) throws IOException, javax.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
javax.servlet.ServletException
-
-