|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecthudson.model.AbstractModelObject
hudson.model.View
hudson.plugins.nested_view.NestedView
public class NestedView
View type that contains only another set of views. Allows grouping job views into multiple levels instead of one big list of tabs.
| Nested Class Summary | |
|---|---|
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. |
| Nested classes/interfaces inherited from class hudson.model.View |
|---|
hudson.model.View.People, hudson.model.View.PropertyList, hudson.model.View.UserInfo |
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
|---|
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Field Summary |
|---|
| Fields inherited from class hudson.model.View |
|---|
CONFIGURE, CREATE, DELETE, description, filterExecutors, filterQueue, LIST, name, NEW_PRONOUN, owner, PERMISSIONS, SORTER, transientActions |
| Fields inherited from interface hudson.model.Saveable |
|---|
NOOP |
| Constructor Summary | |
|---|---|
NestedView(String name)
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class hudson.model.View |
|---|
all, allInstantiable, checkPermission, create, doConfigSubmit, doDoDelete, doRssAll, doRssFailed, doRssLatest, doSubmitDescription, getAbsoluteUrl, getACL, getActions, getAllProperties, getApi, getApplicablePropertyDescriptors, 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 |
| Methods inherited from class hudson.model.AbstractModelObject |
|---|
getSearch, getSearchIndex, getSearchName, requirePOST, sendError, sendError, sendError, sendError, sendError |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface hudson.model.ModelObject |
|---|
getDisplayName |
| Methods inherited from interface hudson.security.AccessControlled |
|---|
checkPermission, getACL, hasPermission |
| Constructor Detail |
|---|
@DataBoundConstructor public NestedView(String name)
| Method Detail |
|---|
public List<hudson.model.TopLevelItem> getItems()
getItems in class hudson.model.Viewpublic boolean contains(hudson.model.TopLevelItem item)
contains in class hudson.model.Viewpublic 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.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.ViewIOException
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.ViewIOException
javax.servlet.ServletException
hudson.model.Descriptor.FormExceptionpublic 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.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.ViewGroup
public void save()
throws IOException
save in interface hudson.model.Saveablesave in class hudson.model.ViewIOException
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.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)
getWorstResult(),
getWorstResultForNormalView(hudson.model.View)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)
getHealth(),
getHealthForNormalView(hudson.model.View)public hudson.views.ViewsTabBar getViewsTabBar()
getViewsTabBar in interface hudson.model.ViewGrouppublic Object getTarget()
getTarget in interface org.kohsuke.stapler.StaplerProxy
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||