public class BranchListView
extends hudson.model.ListView
ListView that provides additional support for listing branches in multi-branch projects.
The most important component is the addition of getBranch(String). Without it, non-primary views would
not have a Stapler URL binding, resulting in broken links to branches.| Modifier and Type | Class and Description |
|---|---|
static class |
BranchListView.DescriptorImpl
Our descriptor that is simply a duplicate of the normal
ListView descriptor. |
| Constructor and Description |
|---|
BranchListView(String name)
Constructor used for loading objects of this type.
|
BranchListView(String name,
hudson.model.ViewGroup owner)
Constructor used to instantiate new views with an owner.
|
| Modifier and Type | Method and Description |
|---|---|
void |
doCreateItem()
Stapler URL binding
|
void |
doNewJob()
Stapler URL binding
|
hudson.model.TopLevelItem |
getBranch(String name)
Alias for
View.getItem(String). |
String |
getConfigureUrl()
Used by Jelly to get the correct configure URL when linking from views with no jobs.
|
static void |
registerXStream()
Gives this class an alias for configuration XML.
|
add, contains, doAddJobToView, doCreateItem, doRemoveJobFromView, getColumns, getDefaultColumns, getIncludeRegex, getItems, getJobFilters, getStatusFilter, hasJobFilterExtensions, initColumns, initJobFilters, isRecurse, jobNamesContains, remove, setIncludeRegex, setRecurse, submitall, allInstantiable, checkPermission, create, createViewFromXML, doChildrenContextMenu, doConfigDotXml, doConfigSubmit, doDoDelete, doRssAll, doRssFailed, doRssLatest, doSubmitDescription, getAbsoluteUrl, getACL, getActions, getAllItems, getAllProperties, getApi, getApplicablePropertyDescriptors, getApproximateQueueItemsQuickly, getAsynchPeople, getBuilds, getComputers, getDescription, getDescriptor, getDisplayName, getDynamic, getIndenter, getItem, getItemCreatePermission, getJob, getNewPronoun, getOwner, getOwnerItemGroup, getOwnerPrimaryView, getOwnerViewActions, getPeople, getPostConstructLandingPage, getProperties, getQueueItems, getSearchUrl, getTimeline, getUrl, getViewName, getViewUrl, getWidgets, hasPeople, hasPermission, isAutomaticRefreshEnabled, isDefault, isEditable, isFilterExecutors, isFilterQueue, makeSearchIndex, onJobRenamed, rename, save, toString, updateByXml, updateTransientActions, writeXml@DataBoundConstructor public BranchListView(String name)
name - Name of viewpublic BranchListView(String name, hudson.model.ViewGroup owner)
name - Name of viewowner - Owner of viewpublic final hudson.model.TopLevelItem getBranch(String name)
View.getItem(String). This is the one used in the URL binding.name - Name of branchView.getItem(String)public String getConfigureUrl()
public final void doNewJob()
public final void doCreateItem()
@Initializer(before=PLUGINS_STARTED) public static void registerXStream()
Copyright © 2016–2017. All rights reserved.