Uses of Interface
hudson.model.TopLevelItem
Package
Description
Server-side CLI commands for Hudson.
OptionHandler
implementations for Hudson.Core object model that are bound to URLs via stapler, rooted at
Jenkins
.-
Uses of TopLevelItem in hudson
Modifier and TypeMethodDescriptionstatic List<TopLevelItem>
Functions.getAllTopLevelItems
(ItemGroup root) Gets all theTopLevelItem
s recursively in theItemGroup
tree. -
Uses of TopLevelItem in hudson.cli
-
Uses of TopLevelItem in hudson.cli.handlers
ModifierConstructorDescriptionTopLevelItemOptionHandler
(org.kohsuke.args4j.CmdLineParser parser, org.kohsuke.args4j.OptionDef option, org.kohsuke.args4j.spi.Setter<TopLevelItem> setter) -
Uses of TopLevelItem in hudson.model
Modifier and TypeMethodDescription<T extends TopLevelItem>
TCopies an existingTopLevelItem
to a new name.static <I extends AbstractItem & TopLevelItem>
IItems.move
(I item, DirectlyModifiableTopLevelItemGroup destination) Moves an item between folders (or top level).Modifier and TypeMethodDescriptionItemGroupMixIn.createProject
(TopLevelItemDescriptor type, String name, boolean notify) ItemGroupMixIn.createProjectFromXML
(String name, InputStream xml) ItemGroupMixIn.createTopLevelItem
(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) Creates aTopLevelItem
for example from the submission of the/lib/hudson/newFromList/form
tag or throws an exception if it fails.ItemGroupMixIn.createTopLevelItem
(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) Deprecated.MyView.doCreateItem
(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) Gets theTopLevelItem
of the given name.Deprecated.Left only for the compatibility of URLs.final TopLevelItem
Alias forView.getItem(String)
.Hudson.getJobCaseInsensitive
(String name) Deprecated.Used only for mapping jobs to URL in a case-insensitive fashion.abstract TopLevelItem
TopLevelItemDescriptor.newInstance
(ItemGroup parent, String name) Creates a newTopLevelItem
for the specified parent.TopLevelItemDescriptor.newInstance
(String name) Deprecated.as of 1.390 UseTopLevelItemDescriptor.newInstance(ItemGroup, String)
TopLevelItemDescriptor.newInstance
(org.kohsuke.stapler.StaplerRequest req) Deprecated.since 2007-01-19.Modifier and TypeMethodDescriptionItems.all()
Returns all the registeredTopLevelItemDescriptor
s.View.getAllItems()
Gets all the items recursively contained in this collection in a read-only view.default ItemGroup<? extends TopLevelItem>
ViewGroup.getItemGroup()
Returns theItemGroup
from which the views in this group should render items.AllView.getItems()
ListView.getItems()
Returns a read-only view of allJob
s in this view.MyView.getItems()
ProxyView.getItems()
abstract Collection<TopLevelItem>
View.getItems()
Gets all the items in this collection in a read-only view.ItemGroup<? extends TopLevelItem>
View.getOwnerItemGroup()
Deprecated.callViewGroup.getItemGroup()
directlyModifier and TypeMethodDescriptionvoid
DirectlyModifiableView.add
(TopLevelItem item) Add item to this view.protected abstract void
ItemGroupMixIn.add
(TopLevelItem item) Adds a newly created item to the parent.void
ListView.add
(TopLevelItem item) Adds the given item to this view.boolean
AllView.contains
(TopLevelItem item) boolean
ListView.contains
(TopLevelItem item) boolean
MyView.contains
(TopLevelItem item) boolean
ProxyView.contains
(TopLevelItem item) abstract boolean
View.contains
(TopLevelItem item) Checks if the job is in this collection.TopLevelItemDescriptor.doCheckDisplayNameOrNull
(TopLevelItem item, String value) abstract FilePath
Node.getWorkspaceFor
(TopLevelItem item) Returns a "workspace" directory for the givenTopLevelItem
.Slave.getWorkspaceFor
(TopLevelItem item) boolean
ListView.jobNamesContains
(TopLevelItem item) protected String
ItemGroupMixIn.redirectAfterCreateItem
(org.kohsuke.stapler.StaplerRequest2 req, TopLevelItem result) Computes the redirection target URL for the newly createdTopLevelItem
.boolean
DirectlyModifiableView.remove
(TopLevelItem item) Remove item from this view.boolean
ListView.remove
(TopLevelItem item) Removes given item from this view.boolean
TopLevelItemDescriptor.testInstance
(TopLevelItem i) Tests if the given instance belongs to this descriptor, in the sense that this descriptor can produce items like the given one.ModifierConstructorDescriptionprotected
TopLevelItemDescriptor
(Class<? extends TopLevelItem> clazz) -
Uses of TopLevelItem in hudson.views
Modifier and TypeMethodDescriptionStatusFilter.filter
(List<TopLevelItem> added, List<TopLevelItem> all, View filteringView) Choose which jobs to show for a view.abstract List<TopLevelItem>
ViewJobFilter.filter
(List<TopLevelItem> added, List<TopLevelItem> all, View filteringView) Choose which jobs to show for a view.Modifier and TypeMethodDescriptionStatusFilter.filter
(List<TopLevelItem> added, List<TopLevelItem> all, View filteringView) Choose which jobs to show for a view.abstract List<TopLevelItem>
ViewJobFilter.filter
(List<TopLevelItem> added, List<TopLevelItem> all, View filteringView) Choose which jobs to show for a view. -
Uses of TopLevelItem in jenkins.model
Modifier and TypeMethodDescription<I extends TopLevelItem>
IAdds an item to this group.<I extends TopLevelItem>
I<T extends TopLevelItem>
T<T extends TopLevelItem>
TCopies a job.<T extends TopLevelItem>
TJenkins.createProject
(Class<T> type, String name) Creates a new job.Modifier and TypeMethodDescriptionJenkins.createProject
(TopLevelItemDescriptor type, String name) Jenkins.createProject
(TopLevelItemDescriptor type, String name, boolean notify) ModifiableTopLevelItemGroup.createProject
(TopLevelItemDescriptor type, String name, boolean notify) Creates a new job.Jenkins.createProjectFromXML
(String name, InputStream xml) ModifiableTopLevelItemGroup.createProjectFromXML
(String name, InputStream xml) Creates a new job from its configuration XML.Jenkins.doCreateItem
(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) Gets theItem
inside this group that has a given name, or null if it does not exist.Modifier and TypeMethodDescriptionJenkins.getItemMap()
Returns the read-only view of all theTopLevelItem
s keyed by their names.Jenkins.getItems()
Gets just the immediate children ofJenkins
.Jenkins.getItems
(Predicate<TopLevelItem> pred) Gets just the immediate children ofJenkins
based on supplied predicate.Modifier and TypeMethodDescriptionboolean
DirectlyModifiableTopLevelItemGroup.canAdd
(TopLevelItem item) Returns true if a particular item may be added to this group.boolean
Jenkins.canAdd
(TopLevelItem item) Jenkins.checkDisplayName
(String displayName, TopLevelItem item) Checks to see if the candidate displayName collides with any existing display names or project names in the items parent groupJenkins.getRootDirFor
(TopLevelItem child) Jenkins.getWorkspaceFor
(TopLevelItem item) void
Jenkins.onDeleted
(TopLevelItem item) Called in response toAbstractItem.doDoDelete(StaplerRequest2, StaplerResponse2)
void
Jenkins.onRenamed
(TopLevelItem job, String oldName, String newName) Called byJob.renameTo(String)
to update relevant data structure.void
Jenkins.putItem
(TopLevelItem item) Overwrites the existing item by new one.void
DirectlyModifiableTopLevelItemGroup.remove
(TopLevelItem item) Removes an item from this group.void
Jenkins.remove
(TopLevelItem item) Modifier and TypeMethodDescriptionJenkins.getItems
(Predicate<TopLevelItem> pred) Gets just the immediate children ofJenkins
based on supplied predicate. -
Uses of TopLevelItem in jenkins.slaves
Modifier and TypeMethodDescriptionabstract FilePath
WorkspaceLocator.locate
(TopLevelItem item, Node node) Allows extensions to customize the workspace path.
ItemGroupMixIn.createTopLevelItem(StaplerRequest2, StaplerResponse2)