public class NestedView
extends hudson.model.View
implements hudson.model.ViewGroup, org.kohsuke.stapler.StaplerProxy, jenkins.model.ModelObjectWithContextMenu
| Modifier and Type | Class and Description |
|---|---|
class |
NestedView.DefaultViewProxy |
static class |
NestedView.DescriptorImpl |
static class |
NestedView.HealthReportContainer
Container for HealthReport with two methods matching hudson.model.Job
so we can pass this to f:healthReport jelly.
|
hudson.model.View.AsynchPeople, hudson.model.View.People, hudson.model.View.PropertyList, hudson.model.View.UserInfo| Constructor and Description |
|---|
NestedView(String name) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canDelete(hudson.model.View view) |
boolean |
contains(hudson.model.TopLevelItem item) |
void |
deleteView(hudson.model.View view) |
hudson.util.FormValidation |
doCheckViewName(String value)
Checks if a nested view with the given name exists and
make sure that the name is good as a view name.
|
jenkins.model.ModelObjectWithContextMenu.ContextMenu |
doChildrenContextMenu(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response) |
jenkins.model.ModelObjectWithContextMenu.ContextMenu |
doContextMenu(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response) |
hudson.model.Item |
doCreateItem(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp) |
void |
doCreateView(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp) |
hudson.util.FormValidation |
doViewExistsCheck(String value)
Checks if a nested view with the given name exists.
|
NestedViewColumns |
getColumnsToShow() |
hudson.model.View |
getDefaultView() |
NestedView.HealthReportContainer |
getHealth()
Returns the health of this nested view.
|
hudson.model.ItemGroup<? extends hudson.model.TopLevelItem> |
getItemGroup() |
List<hudson.model.TopLevelItem> |
getItems() |
hudson.model.View |
getPrimaryView() |
Object |
getTarget() |
String |
getUrl() |
hudson.model.View |
getView(String name) |
List<hudson.model.Action> |
getViewActions() |
static NestedView.HealthReportContainer |
getViewHealth(hudson.model.View v)
Returns the health of a view, wether it is a normal or a nested one.
|
Collection<hudson.model.View> |
getViews() |
hudson.views.ViewsTabBar |
getViewsTabBar() |
hudson.model.Result |
getWorstResult()
Returns the worst result for this nested view.
|
static hudson.model.Result |
getWorstResult(hudson.model.View v)
Returns the worst result for a view, wether is a normal view or a nested
one.
|
void |
onJobRenamed(hudson.model.Item item,
String oldName,
String newName) |
void |
onViewRenamed(hudson.model.View view,
String oldName,
String newName) |
void |
save() |
protected void |
submit(org.kohsuke.stapler.StaplerRequest req) |
all, allInstantiable, checkPermission, create, createViewFromXML, doConfigDotXml, doConfigSubmit, doDoDelete, doRssAll, doRssFailed, doRssLatest, doSubmitDescription, getAbsoluteUrl, getACL, getActions, getAllItems, getAllProperties, getApi, getApplicablePropertyDescriptors, getApproximateQueueItemsQuickly, getAsynchPeople, getBuilds, getColumns, getComputers, getDescription, getDescriptor, getDisplayName, getDynamic, getIndenter, getItem, getItemCreatePermission, getJob, getNewPronoun, getOwner, getOwnerItemGroup, getOwnerPrimaryView, getOwnerViewActions, getPeople, getPostConstructLandingPage, getProperties, getQueueItems, getSearchUrl, getTimeline, getViewName, getViewUrl, getWidgets, hasPeople, hasPermission, isDefault, isEditable, isFilterExecutors, isFilterQueue, makeSearchIndex, rename, toString, updateByXml, updateTransientActionsgetSearch, getSearchIndex, getSearchName, requirePOST, sendError, sendError, sendError, sendError, sendErrorclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait@DataBoundConstructor public NestedView(String name)
public List<hudson.model.TopLevelItem> getItems()
getItems in class hudson.model.Viewpublic boolean contains(hudson.model.TopLevelItem item)
contains in class hudson.model.Viewpublic jenkins.model.ModelObjectWithContextMenu.ContextMenu doContextMenu(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
throws IOException,
org.apache.commons.jelly.JellyException
doContextMenu in interface jenkins.model.ModelObjectWithContextMenuIOExceptionorg.apache.commons.jelly.JellyExceptionpublic jenkins.model.ModelObjectWithContextMenu.ContextMenu doChildrenContextMenu(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
throws Exception
doChildrenContextMenu in interface jenkins.model.ModelObjectWithChildrendoChildrenContextMenu in class hudson.model.ViewExceptionpublic String getUrl()
getUrl in interface hudson.model.ViewGroupgetUrl in class hudson.model.Viewpublic hudson.model.View getPrimaryView()
getPrimaryView in interface hudson.model.ViewGrouppublic hudson.model.ItemGroup<? extends hudson.model.TopLevelItem> getItemGroup()
getItemGroup in interface hudson.model.ViewGrouppublic List<hudson.model.Action> getViewActions()
getViewActions in interface hudson.model.ViewGrouppublic hudson.model.Item doCreateItem(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException,
javax.servlet.ServletException
doCreateItem in class hudson.model.ViewIOExceptionjavax.servlet.ServletExceptionpublic hudson.util.FormValidation doCheckViewName(@QueryParameter
String value)
public hudson.util.FormValidation doViewExistsCheck(@QueryParameter
String value)
public void onJobRenamed(hudson.model.Item item,
String oldName,
String newName)
onJobRenamed in class hudson.model.Viewprotected void submit(org.kohsuke.stapler.StaplerRequest req)
throws IOException,
javax.servlet.ServletException,
hudson.model.Descriptor.FormException
submit in class hudson.model.ViewIOExceptionjavax.servlet.ServletExceptionhudson.model.Descriptor.FormExceptionpublic boolean canDelete(hudson.model.View view)
canDelete in interface hudson.model.ViewGrouppublic void deleteView(hudson.model.View view)
throws IOException
deleteView in interface hudson.model.ViewGroupIOException@Exported public Collection<hudson.model.View> getViews()
getViews in interface hudson.model.ViewGrouppublic hudson.model.View getView(String name)
getView in interface hudson.model.ViewGrouppublic hudson.model.View getDefaultView()
public NestedViewColumns getColumnsToShow()
public void onViewRenamed(hudson.model.View view,
String oldName,
String newName)
onViewRenamed in interface hudson.model.ViewGrouppublic void save()
throws IOException
save in interface hudson.model.Saveablesave in class hudson.model.ViewIOExceptionpublic void doCreateView(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException,
javax.servlet.ServletException,
hudson.model.Descriptor.FormException
IOExceptionjavax.servlet.ServletExceptionhudson.model.Descriptor.FormExceptionpublic hudson.model.Result getWorstResult()
To get the worst result, this method browses all the jobs this view
contains. Also, as soon as it finds the worst result possible (cf.
WORST_RESULT), the browsing stops.
The algorithm first analyzes normal views (that is, views which are
not nested ones); Then, in a second time, it processes nested views,
hoping that WORST_RESULT will be found as quick as possible, as
mentionned previously.
public static hudson.model.Result getWorstResult(hudson.model.View v)
public NestedView.HealthReportContainer getHealth()
Notice that, if a job is contained in several sub-views of the current view, then it is taken into account only once to get accurate stats.
This algorithm has been derecursified, hence the stack stuff.
public static NestedView.HealthReportContainer getViewHealth(hudson.model.View v)
public hudson.views.ViewsTabBar getViewsTabBar()
getViewsTabBar in interface hudson.model.ViewGrouppublic Object getTarget()
getTarget in interface org.kohsuke.stapler.StaplerProxyCopyright © 2004-2013. All Rights Reserved.