|
||||||||||
| 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.AsynchPeople, View.People, View.PropertyList, View.UserInfo |
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
|---|
ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Field Summary |
|---|
| Fields inherited from class hudson.model.View |
|---|
CONFIGURE, CREATE, DELETE, description, filterExecutors, filterQueue, LIST, name, NEW_PRONOUN, owner, PERMISSIONS, READ, SORTER, transientActions |
| 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. |
org.kohsuke.stapler.HttpResponse |
doAddJobToView(String name)
|
Item |
doCreateItem(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Creates a new Item in this collection. |
org.kohsuke.stapler.HttpResponse |
doRemoveJobFromView(String name)
|
DescribableList<ListViewColumn,Descriptor<ListViewColumn>> |
getColumns()
If this view uses <t:projectView> for rendering, this method returns columns to be displayed. |
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. |
protected void |
initColumns()
|
protected void |
initJobFilters()
|
boolean |
isRecurse()
|
boolean |
jobNamesContains(TopLevelItem item)
|
void |
onJobRenamed(Item item,
String oldName,
String newName)
Called when a job name is changed or deleted. |
protected void |
submit(org.kohsuke.stapler.StaplerRequest req)
Handles the configuration submission. |
| 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, wait, wait, wait |
| Methods inherited from interface hudson.model.Saveable |
|---|
save |
| Constructor Detail |
|---|
@DataBoundConstructor public ListView(String name)
public ListView(String name,
ViewGroup owner)
| Method Detail |
|---|
protected void initColumns()
protected void initJobFilters()
public boolean hasJobFilterExtensions()
public DescribableList<ViewJobFilter,Descriptor<ViewJobFilter>> getJobFilters()
public DescribableList<ListViewColumn,Descriptor<ListViewColumn>> getColumns()
View
getColumns in class Viewpublic 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 Viewpublic boolean jobNamesContains(TopLevelItem item)
public void add(TopLevelItem item)
throws IOException
IOExceptionpublic String getIncludeRegex()
public boolean isRecurse()
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 ModifiableItemGroup.doCreateItem(StaplerRequest, StaplerResponse)
and then add the newly created item to this view.
doCreateItem in class ViewIOException
javax.servlet.ServletException
public org.kohsuke.stapler.HttpResponse doAddJobToView(@QueryParameter
String name)
throws IOException,
javax.servlet.ServletException
IOException
javax.servlet.ServletException
public org.kohsuke.stapler.HttpResponse doRemoveJobFromView(@QueryParameter
String name)
throws IOException,
javax.servlet.ServletException
IOException
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.
protected void submit(org.kohsuke.stapler.StaplerRequest req)
throws javax.servlet.ServletException,
Descriptor.FormException,
IOException
submit in class Viewjavax.servlet.ServletException
Descriptor.FormException
IOExceptionpublic static List<ListViewColumn> getDefaultColumns()
ListViewColumn.createDefaultInitialColumnList()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||