Package hudson.model
Class ProxyView
- java.lang.Object
-
- hudson.model.AbstractModelObject
-
- hudson.model.View
-
- hudson.model.ProxyView
-
- All Implemented Interfaces:
ExtensionPoint,Describable<View>,DescriptorByNameOwner,ModelObject,Saveable,SearchableModelObject,SearchItem,AccessControlled,ModelObjectWithChildren,HasWidgets,org.kohsuke.stapler.StaplerFallback
public class ProxyView extends View implements org.kohsuke.stapler.StaplerFallback
A view that delegates to another. TODO: this does not respond to renaming or deleting the proxied view.- Author:
- Tom Huybrechts
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classProxyView.DescriptorImpl-
Nested classes/interfaces inherited from class hudson.model.View
View.PropertyList
-
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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(TopLevelItem item)Checks if the job is in this collection.ItemdoCreateItem(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)Creates a newItemin this collection.FormValidationdoViewExistsCheck(String value)Fails if a global view with the given name does not exist.TopLevelItemgetItem(String name)Gets theTopLevelItemof the given name.Collection<TopLevelItem>getItems()Gets all the items in this collection in a read-only view.ViewgetProxiedView()StringgetProxiedViewName()ObjectgetStaplerFallback()voidsetProxiedViewName(String proxiedViewName)protected voidsubmit(org.kohsuke.stapler.StaplerRequest req)Handles the configuration submission.-
Methods inherited from class hudson.model.View
all, allInstantiable, create, createViewFromXML, doCheckJobName, doChildrenContextMenu, doConfigDotXml, doConfigSubmit, doDoDelete, doItemCategories, doRssAll, doRssFailed, doRssLatest, doSubmitDescription, getAbsoluteUrl, getACL, getActions, getAllItems, getAllProperties, getApi, getApplicablePropertyDescriptors, getApproximateQueueItemsQuickly, getBuilds, getColumns, getComputers, getDescription, getDescriptor, getDisplayName, getDynamic, getIndenter, getItemCreatePermission, getJob, getNewPronoun, getOwner, getOwnerItemGroup, getOwnerPrimaryView, getOwnerViewActions, getPostConstructLandingPage, getProperties, getQueueItems, getSearchUrl, getTimeline, getUrl, getViewName, getViewUrl, getVisiblePropertyDescriptors, isAutomaticRefreshEnabled, isDefault, isEditable, isFilterExecutors, isFilterQueue, makeSearchIndex, makeSearchIndex, onJobRenamed, registerPermissions, rename, save, setDescription, setFilterExecutors, setFilterQueue, toString, updateByXml, updateTransientActions, writeXml
-
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
-
Methods inherited from interface hudson.security.AccessControlled
checkAnyPermission, checkPermission, hasAnyPermission, hasPermission, hasPermission, hasPermission2
-
Methods inherited from interface hudson.model.DescriptorByNameOwner
getDescriptorByName
-
Methods inherited from interface jenkins.widgets.HasWidgets
getWidget, getWidgets
-
-
-
-
Constructor Detail
-
ProxyView
@DataBoundConstructor public ProxyView(String name)
-
-
Method Detail
-
getProxiedView
public View getProxiedView()
-
getProxiedViewName
public String getProxiedViewName()
-
setProxiedViewName
public void setProxiedViewName(String proxiedViewName)
-
getItems
public Collection<TopLevelItem> getItems()
Description copied from class:ViewGets all the items in this collection in a read-only view.
-
contains
public boolean contains(TopLevelItem item)
Description copied from class:ViewChecks if the job is in this collection.
-
getItem
public TopLevelItem getItem(String name)
Description copied from class:ViewGets theTopLevelItemof the given name.
-
submit
protected void submit(org.kohsuke.stapler.StaplerRequest req) throws IOException, javax.servlet.ServletException, Descriptor.FormExceptionDescription copied from class:ViewHandles the configuration submission. Load view-specific properties here.- Specified by:
submitin classView- Throws:
IOExceptionjavax.servlet.ServletExceptionDescriptor.FormException
-
doCreateItem
public Item doCreateItem(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException, javax.servlet.ServletException
Description copied from class:ViewCreates a newItemin this collection.This method should call
ModifiableItemGroup.doCreateItem(StaplerRequest, StaplerResponse)and then add the newly created item to this view.- Specified by:
doCreateItemin classView- Returns:
- null if fails.
- Throws:
IOExceptionjavax.servlet.ServletException
-
doViewExistsCheck
public FormValidation doViewExistsCheck(@QueryParameter String value)
Fails if a global view with the given name does not exist.
-
getStaplerFallback
public Object getStaplerFallback()
- Specified by:
getStaplerFallbackin interfaceorg.kohsuke.stapler.StaplerFallback
-
-