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
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/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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
contains
(TopLevelItem item) Checks if the job is in this collection.doCreateItem
(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) Creates a newItem
in this collection.doViewExistsCheck
(String value) Fails if a global view with the given name does not exist.Gets theTopLevelItem
of the given name.getItems()
Gets all the items in this collection in a read-only view.void
setProxiedViewName
(String proxiedViewName) protected void
submit
(org.kohsuke.stapler.StaplerRequest req) Deprecated.protected void
submit
(org.kohsuke.stapler.StaplerRequest2 req) Handles the configuration submission.Methods inherited from class hudson.model.View
all, allInstantiable, create, create, createViewFromXML, doCheckJobName, doChildrenContextMenu, doConfigDotXml, doConfigDotXml, doConfigSubmit, doCreateItem, doDoDelete, doItemCategories, doRssAll, doRssFailed, doRssLatest, doSubmitDescription, 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, 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
Methods inherited from interface jenkins.model.ModelObjectWithChildren
doChildrenContextMenu
-
Constructor Details
-
ProxyView
-
-
Method Details
-
getProxiedView
-
getProxiedViewName
-
setProxiedViewName
-
getItems
Description copied from class:View
Gets all the items in this collection in a read-only view. -
contains
Description copied from class:View
Checks if the job is in this collection. -
getItem
Description copied from class:View
Gets theTopLevelItem
of the given name. -
submit
protected void submit(org.kohsuke.stapler.StaplerRequest2 req) throws IOException, jakarta.servlet.ServletException, Descriptor.FormException Description copied from class:View
Handles the configuration submission. Load view-specific properties here.- Overrides:
submit
in classView
- Throws:
IOException
jakarta.servlet.ServletException
Descriptor.FormException
-
submit
@Deprecated protected void submit(org.kohsuke.stapler.StaplerRequest req) throws IOException, javax.servlet.ServletException, Descriptor.FormException Deprecated.- Overrides:
submit
in classView
- Throws:
IOException
javax.servlet.ServletException
Descriptor.FormException
-
doCreateItem
public Item doCreateItem(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) throws IOException, jakarta.servlet.ServletException Description copied from class:View
Creates a newItem
in this collection.This method should call
ModifiableItemGroup.doCreateItem(StaplerRequest2, StaplerResponse2)
and then add the newly created item to this view.- Overrides:
doCreateItem
in classView
- Returns:
- null if fails.
- Throws:
IOException
jakarta.servlet.ServletException
-
doViewExistsCheck
Fails if a global view with the given name does not exist. -
getStaplerFallback
- Specified by:
getStaplerFallback
in interfaceorg.kohsuke.stapler.StaplerFallback
-
submit(StaplerRequest2)