|
||||||||||
| 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.model.ListView
public class ListView
Displays Jobs in a flat list view.
| Nested Class Summary | |
|---|---|
static class |
ListView.DescriptorImpl
|
| Nested classes/interfaces inherited from class hudson.model.View |
|---|
View.People, View.UserInfo |
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
|---|
ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Field Summary |
|---|
| Fields inherited from class hudson.model.View |
|---|
CONFIGURE, CREATE, DELETE, LIST, PERMISSIONS, SORTER |
| Fields inherited from interface hudson.model.Saveable |
|---|
NOOP |
| Constructor Summary | |
|---|---|
ListView(String name)
|
|
ListView(String name,
ViewGroup owner)
|
|
| Method Summary | |
|---|---|
void |
add(TopLevelItem item)
Adds the given item to this view. |
boolean |
contains(TopLevelItem item)
Checks if the job is in this collection. |
Item |
doCreateItem(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Creates a new Item in this collection. |
Iterable<ListViewColumn> |
getColumns()
|
static List<ListViewColumn> |
getDefaultColumns()
Deprecated. as of 1.391 Use ListViewColumn.createDefaultInitialColumnList() |
String |
getIncludeRegex()
|
List<TopLevelItem> |
getItems()
Returns a read-only view of all Jobs in this view. |
DescribableList<ViewJobFilter,Descriptor<ViewJobFilter>> |
getJobFilters()
|
Boolean |
getStatusFilter()
Filter by enabled/disabled status of jobs. |
boolean |
hasJobFilterExtensions()
Used to determine if we want to display the Add button. |
void |
onJobRenamed(Item item,
String oldName,
String newName)
Called when a job name is changed or deleted. |
void |
save()
Persists the state of this object into XML. |
| Methods inherited from class hudson.model.View |
|---|
all, checkPermission, create, doConfigSubmit, doDoDelete, doRssAll, doRssFailed, doRssLatest, doSubmitDescription, getAbsoluteUrl, getACL, getActions, getApi, getBuilds, getComputers, getDescription, getDescriptor, getDisplayName, getDynamic, getItem, getItemCreatePermission, getJob, getOwner, getPeople, getPostConstructLandingPage, getQueueItems, getSearchUrl, getTimeline, getUrl, getViewName, getViewUrl, getWidgets, hasPeople, hasPermission, isDefault, isEditable, isFilterExecutors, isFilterQueue, makeSearchIndex, rename |
| Methods inherited from class hudson.model.AbstractModelObject |
|---|
getSearch, getSearchIndex, getSearchName |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@DataBoundConstructor public ListView(String name)
public ListView(String name,
ViewGroup owner)
| Method Detail |
|---|
public void save()
throws IOException
Saveable For making a bulk change efficiently, see BulkChange.
To support listeners monitoring changes to this object, call
SaveableListener.fireOnChange(Saveable, hudson.XmlFile)
save in interface SaveableIOException - if the persistence failed.public boolean hasJobFilterExtensions()
public DescribableList<ViewJobFilter,Descriptor<ViewJobFilter>> getJobFilters()
public Iterable<ListViewColumn> getColumns()
public List<TopLevelItem> getItems()
Jobs in this view.
This method returns a separate copy each time to avoid concurrent modification issue.
getItems in class Viewpublic boolean contains(TopLevelItem item)
View
contains in class View
public void add(TopLevelItem item)
throws IOException
IOExceptionpublic String getIncludeRegex()
public Boolean getStatusFilter()
public Item doCreateItem(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException,
javax.servlet.ServletException
ViewItem in this collection.
This method should call
Hudson.doCreateItem(StaplerRequest, StaplerResponse) and then add
the newly created item to this view.
doCreateItem in class ViewIOException
javax.servlet.ServletException
public void onJobRenamed(Item item,
String oldName,
String newName)
ViewIf this view contains this job, it should update the view membership so that the renamed job will remain in the view, and the deleted job is removed.
onJobRenamed in class Viewitem - The item whose name is being changed.oldName - Old name of the item. Always non-null.newName - New name of the item, if the item is renamed. Or null, if
the item is removed.public static List<ListViewColumn> getDefaultColumns()
ListViewColumn.createDefaultInitialColumnList()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||