public class AllView extends View
View
that contains everything.Modifier and Type | Class and Description |
---|---|
static class |
AllView.DescriptorImpl |
View.AsynchPeople, View.People, View.PropertyList, View.UserInfo
ExtensionPoint.LegacyInstancesAreScopedToHudson
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_VIEW_NAME
The name of the default
AllView . |
CONFIGURE, CREATE, DELETE, description, filterExecutors, filterQueue, LIST, name, NEW_PRONOUN, owner, PERMISSIONS, READ, SORTER
Constructor and Description |
---|
AllView(String name) |
AllView(String name,
ViewGroup owner) |
Modifier and Type | Method and Description |
---|---|
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. |
String |
getDisplayName() |
Collection<TopLevelItem> |
getItems()
Gets all the items in this collection in a read-only view.
|
String |
getPostConstructLandingPage()
Returns the page to redirect the user to, after the view is created.
|
boolean |
isEditable()
By default, return true to render the "Edit view" link on the page.
|
static String |
migrateLegacyPrimaryAllViewLocalizedName(List<View> views,
String primaryView)
Corrects the name of the
AllView if and only if the AllView is the primary view and
its name is one of the localized forms of Messages._Hudson_ViewName() and the user has not opted out of
fixing the view name by setting the system property hudson.mode.AllView.JENKINS-38606 to false . |
protected void |
submit(org.kohsuke.stapler.StaplerRequest req)
Handles the configuration submission.
|
all, allInstantiable, create, createViewFromXML, doCheckJobName, doChildrenContextMenu, doConfigDotXml, doConfigSubmit, doDoDelete, doItemCategories, doRssAll, doRssFailed, doRssLatest, doSubmitDescription, getAbsoluteUrl, getACL, getActions, getAllItems, getAllProperties, getApi, getApplicablePropertyDescriptors, getApproximateQueueItemsQuickly, getAsynchPeople, getBuilds, getColumns, getComputers, getDescription, getDescriptor, getDynamic, getIndenter, getItem, getItemCreatePermission, getJob, getNewPronoun, getOwner, getOwnerItemGroup, getOwnerPrimaryView, getOwnerViewActions, getPeople, getProperties, getQueueItems, getSearchUrl, getTimeline, getUrl, getViewName, getViewUrl, getVisiblePropertyDescriptors, getWidgets, hasPeople, isAutomaticRefreshEnabled, isDefault, isFilterExecutors, isFilterQueue, makeSearchIndex, makeSearchIndex, onJobRenamed, rename, save, setDescription, toString, updateByXml, updateTransientActions, writeXml
getSearch, getSearchIndex, getSearchName, requirePOST, sendError, sendError, sendError, sendError, sendError
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
checkAnyPermission, checkPermission, hasAnyPermission, hasPermission, hasPermission, hasPermission2
public static final String DEFAULT_VIEW_NAME
AllView
. An AllView
with this name will get a localized display name.
Other AllView
instances will be assumed to have been created by the user and thus will use the
name the user created them with.@DataBoundConstructor public AllView(String name)
public boolean isEditable()
View
isEditable
in class View
public boolean contains(TopLevelItem item)
View
public String getDisplayName()
getDisplayName
in interface ModelObject
getDisplayName
in class View
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 Collection<TopLevelItem> getItems()
View
public String getPostConstructLandingPage()
View
getPostConstructLandingPage
in class View
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
@NonNull public static String migrateLegacyPrimaryAllViewLocalizedName(@NonNull List<View> views, @NonNull String primaryView)
AllView
if and only if the AllView
is the primary view and
its name is one of the localized forms of Messages._Hudson_ViewName()
and the user has not opted out of
fixing the view name by setting the system property hudson.mode.AllView.JENKINS-38606
to false
.
Use this method to round-trip the primary view name, e.g.
primaryView = migrateLegacyPrimaryAllViewLocalizedName(views, primaryView)
NOTE: we can only fix the localized name of an AllView
if it is the primary view as otherwise urls
would change, whereas the primary view is special and does not normally get accessed by the
/view/_name_
url. (Also note that there are some cases where the primary view will get accessed by
its /view/_name_
url which will then fall back to the primary view)
views
- the list of views.primaryView
- the current primary view name.Copyright © 2004–2021. All rights reserved.