hudson.plugins.sectioned_view
Class SectionedView

java.lang.Object
  extended by hudson.model.AbstractModelObject
      extended by hudson.model.View
          extended by hudson.plugins.sectioned_view.SectionedView
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.model.View>, hudson.model.ModelObject, hudson.search.SearchableModelObject, hudson.search.SearchItem, hudson.security.AccessControlled

public class SectionedView
extends hudson.model.View


Nested Class Summary
static class SectionedView.DescriptorImpl
           
 
Nested classes/interfaces inherited from class hudson.model.View
hudson.model.View.People, 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, LIST, name, owner, PERMISSIONS, SORTER
 
Constructor Summary
SectionedView(java.lang.String name)
           
 
Method Summary
 boolean contains(hudson.model.TopLevelItem item)
           
 hudson.model.Item doCreateItem(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
           
 java.util.Collection<hudson.model.TopLevelItem> getItems()
           
static hudson.model.Result getResult(hudson.model.Job job)
           
 java.lang.Iterable<SectionedViewSection> getSections()
           
protected  void initSections()
           
static boolean isBuilding(hudson.model.Job job)
           
 void onJobRenamed(hudson.model.Item item, java.lang.String oldName, java.lang.String newName)
           
static java.util.Collection<hudson.model.Job> sortJobs(java.util.Collection<hudson.model.Job> jobs)
           
protected  void submit(org.kohsuke.stapler.StaplerRequest req)
          Handles the configuration submission.
 
Methods inherited from class hudson.model.View
all, checkPermission, create, doConfigSubmit, doDoDelete, doRssAll, doRssFailed, doRssLatest, doSubmitDescription, getAbsoluteUrl, getACL, getActions, getApi, getBuilds, getDescription, getDescriptor, getDisplayName, getItem, getItemCreatePermission, getJob, getOwner, getPeople, getPostConstructLandingPage, getSearchUrl, getUrl, getViewName, getWidgets, hasPeople, hasPermission, isDefault, 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
 

Constructor Detail

SectionedView

@DataBoundConstructor
public SectionedView(java.lang.String name)
Method Detail

getSections

public java.lang.Iterable<SectionedViewSection> getSections()

initSections

protected void initSections()

sortJobs

public static java.util.Collection<hudson.model.Job> sortJobs(java.util.Collection<hudson.model.Job> jobs)

isBuilding

public static boolean isBuilding(hudson.model.Job job)

getResult

public static hudson.model.Result getResult(hudson.model.Job job)

submit

protected void submit(org.kohsuke.stapler.StaplerRequest req)
               throws javax.servlet.ServletException,
                      hudson.model.Descriptor.FormException
Handles the configuration submission. Load view-specific properties here.

Specified by:
submit in class hudson.model.View
Throws:
javax.servlet.ServletException
hudson.model.Descriptor.FormException

contains

public boolean contains(hudson.model.TopLevelItem item)
Specified by:
contains in class hudson.model.View

doCreateItem

public hudson.model.Item doCreateItem(org.kohsuke.stapler.StaplerRequest req,
                                      org.kohsuke.stapler.StaplerResponse rsp)
                               throws java.io.IOException,
                                      javax.servlet.ServletException
Specified by:
doCreateItem in class hudson.model.View
Throws:
java.io.IOException
javax.servlet.ServletException

getItems

public java.util.Collection<hudson.model.TopLevelItem> getItems()
Specified by:
getItems in class hudson.model.View

onJobRenamed

public void onJobRenamed(hudson.model.Item item,
                         java.lang.String oldName,
                         java.lang.String newName)
Specified by:
onJobRenamed in class hudson.model.View


Copyright © 2009. All Rights Reserved.