Package jenkins.branch
Class BaseEmptyView
- java.lang.Object
-
- hudson.model.AbstractModelObject
-
- hudson.model.View
-
- jenkins.branch.BaseEmptyView
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<View>
,DescriptorByNameOwner
,ModelObject
,Saveable
,SearchableModelObject
,SearchItem
,AccessControlled
,ModelObjectWithChildren
,HasWidgets
- Direct Known Subclasses:
MultiBranchProjectEmptyView
,OrganizationFolderEmptyView
public class BaseEmptyView extends View
Holds the basic 'empty view' parent
-
-
Nested Class Summary
-
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 Modifier and Type Field Description static String
VIEW_NAME
The empty view name-
Fields inherited from class hudson.model.View
CONFIGURE, CREATE, DELETE, description, filterExecutors, filterQueue, LIST, name, NEW_PRONOUN, owner, PERMISSIONS, READ, SORTER
-
-
Constructor Summary
Constructors Constructor Description BaseEmptyView(ViewGroup owner)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(TopLevelItem item)
Item
doCreateItem(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
boolean
equals(Object obj)
Equal to any view of the same class and owner.String
getDisplayName()
Collection<TopLevelItem>
getItems()
int
hashCode()
boolean
isDefault()
boolean
isEditable()
void
onJobRenamed(Item item, String oldName, String newName)
protected void
submit(org.kohsuke.stapler.StaplerRequest req)
-
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, getAsynchPeople, getBuilds, getColumns, getComputers, getDescription, getDescriptor, getDynamic, getIndenter, getItem, getItemCreatePermission, getJob, getNewPronoun, getOwner, getOwnerItemGroup, getOwnerPrimaryView, getOwnerViewActions, getPeople, getPostConstructLandingPage, getProperties, getQueueItems, getSearchUrl, getTimeline, getUrl, getViewName, getViewUrl, getVisiblePropertyDescriptors, hasPeople, isAutomaticRefreshEnabled, isFilterExecutors, isFilterQueue, makeSearchIndex, makeSearchIndex, 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, finalize, getClass, 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
-
-
-
-
Field Detail
-
VIEW_NAME
public static final String VIEW_NAME
The empty view name- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BaseEmptyView
public BaseEmptyView(ViewGroup owner)
-
-
Method Detail
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayName
in interfaceModelObject
- Overrides:
getDisplayName
in classView
-
isEditable
public boolean isEditable()
- Overrides:
isEditable
in classView
-
equals
public final boolean equals(Object obj)
Equal to any view of the same class and owner.
-
getItems
@NonNull public Collection<TopLevelItem> getItems()
-
contains
public boolean contains(TopLevelItem item)
-
onJobRenamed
public void onJobRenamed(Item item, String oldName, String newName)
- Overrides:
onJobRenamed
in classView
-
submit
protected void submit(org.kohsuke.stapler.StaplerRequest req) throws IOException, javax.servlet.ServletException, Descriptor.FormException
- Specified by:
submit
in classView
- Throws:
IOException
javax.servlet.ServletException
Descriptor.FormException
-
doCreateItem
public Item doCreateItem(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException, javax.servlet.ServletException
- Specified by:
doCreateItem
in classView
- Throws:
IOException
javax.servlet.ServletException
-
-