|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthudson.model.AbstractModelObject
hudson.model.View
hudson.model.ProxyView
public class ProxyView
A view that delegates to another. TODO: this does not respond to renaming or deleting the proxied view.
Nested Class Summary | |
---|---|
static class |
ProxyView.DescriptorImpl
|
Nested classes/interfaces inherited from class hudson.model.View |
---|
View.AsynchPeople, View.People, View.PropertyList, View.UserInfo |
Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
---|
ExtensionPoint.LegacyInstancesAreScopedToHudson |
Field Summary |
---|
Fields inherited from class hudson.model.View |
---|
CONFIGURE, CREATE, DELETE, description, filterExecutors, filterQueue, LIST, name, NEW_PRONOUN, owner, PERMISSIONS, READ, SORTER, transientActions |
Fields inherited from interface hudson.model.Saveable |
---|
NOOP |
Constructor Summary | |
---|---|
ProxyView(String name)
|
Method Summary | |
---|---|
boolean |
contains(TopLevelItem item)
Checks if the job is in this collection. |
Item |
doCreateItem(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Creates a new Item in this collection. |
FormValidation |
doViewExistsCheck(String value)
Fails if a global view with the given name does not exist. |
Collection<TopLevelItem> |
getItems()
Gets all the items in this collection in a read-only view. |
View |
getProxiedView()
|
String |
getProxiedViewName()
|
Object |
getStaplerFallback()
|
void |
onJobRenamed(Item item,
String oldName,
String newName)
Called when a job name is changed or deleted. |
void |
setProxiedViewName(String proxiedViewName)
|
protected void |
submit(org.kohsuke.stapler.StaplerRequest req)
Handles the configuration submission. |
Methods inherited from class hudson.model.AbstractModelObject |
---|
getSearch, getSearchIndex, getSearchName, requirePOST, sendError, sendError, sendError, sendError, sendError |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
@DataBoundConstructor public ProxyView(String name)
Method Detail |
---|
public View getProxiedView()
public String getProxiedViewName()
public void setProxiedViewName(String proxiedViewName)
public Collection<TopLevelItem> getItems()
View
getItems
in class View
public boolean contains(TopLevelItem item)
View
contains
in class View
public void onJobRenamed(Item item, String oldName, String newName)
View
If this view contains this job, it should update the view membership so that the renamed job will remain in the view, and the deleted job is removed.
onJobRenamed
in class View
item
- The item whose name is being changed.oldName
- Old name of the item. Always non-null.newName
- New name of the item, if the item is renamed. Or null, if the item is removed.protected void submit(org.kohsuke.stapler.StaplerRequest req) throws IOException, javax.servlet.ServletException, Descriptor.FormException
View
submit
in class View
IOException
javax.servlet.ServletException
Descriptor.FormException
public Item doCreateItem(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException, javax.servlet.ServletException
View
Item
in this collection.
This method should call ModifiableItemGroup.doCreateItem(StaplerRequest, StaplerResponse)
and then add the newly created item to this view.
doCreateItem
in class View
IOException
javax.servlet.ServletException
public FormValidation doViewExistsCheck(@QueryParameter String value)
public Object getStaplerFallback()
getStaplerFallback
in interface org.kohsuke.stapler.StaplerFallback
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |