public class NestedView
extends hudson.model.View
implements hudson.model.ViewGroup, org.kohsuke.stapler.StaplerProxy
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.
|
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.
|
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, doChildrenContextMenu, 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, updateTransientActions
getSearch, getSearchIndex, getSearchName, requirePOST, sendError, sendError, sendError, sendError, sendError
@DataBoundConstructor public NestedView(String name)
public List<hudson.model.TopLevelItem> getItems()
getItems
in class hudson.model.View
public boolean contains(hudson.model.TopLevelItem item)
contains
in class hudson.model.View
public String getUrl()
getUrl
in interface hudson.model.ViewGroup
getUrl
in class hudson.model.View
public hudson.model.View getPrimaryView()
getPrimaryView
in interface hudson.model.ViewGroup
public hudson.model.ItemGroup<? extends hudson.model.TopLevelItem> getItemGroup()
getItemGroup
in interface hudson.model.ViewGroup
public List<hudson.model.Action> getViewActions()
getViewActions
in interface hudson.model.ViewGroup
public hudson.model.Item doCreateItem(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException, javax.servlet.ServletException
doCreateItem
in class hudson.model.View
IOException
javax.servlet.ServletException
public 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.View
protected void submit(org.kohsuke.stapler.StaplerRequest req) throws IOException, javax.servlet.ServletException, hudson.model.Descriptor.FormException
submit
in class hudson.model.View
IOException
javax.servlet.ServletException
hudson.model.Descriptor.FormException
public boolean canDelete(hudson.model.View view)
canDelete
in interface hudson.model.ViewGroup
public void deleteView(hudson.model.View view) throws IOException
deleteView
in interface hudson.model.ViewGroup
IOException
@Exported public Collection<hudson.model.View> getViews()
getViews
in interface hudson.model.ViewGroup
public hudson.model.View getView(String name)
getView
in interface hudson.model.ViewGroup
public hudson.model.View getDefaultView()
public NestedViewColumns getColumnsToShow()
public void onViewRenamed(hudson.model.View view, String oldName, String newName)
onViewRenamed
in interface hudson.model.ViewGroup
public void save() throws IOException
save
in interface hudson.model.Saveable
save
in class hudson.model.View
IOException
public void doCreateView(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException, javax.servlet.ServletException, hudson.model.Descriptor.FormException
IOException
javax.servlet.ServletException
hudson.model.Descriptor.FormException
public 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.ViewGroup
public Object getTarget()
getTarget
in interface org.kohsuke.stapler.StaplerProxy
Copyright © 2004-2013. All Rights Reserved.