Uses of Interface
hudson.model.TopLevelItem
Packages that use 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
Methods in hudson that return types with arguments of type TopLevelItemModifier and TypeMethodDescriptionstatic List<TopLevelItem> Functions.getAllTopLevelItems(ItemGroup root) Gets all theTopLevelItems recursively in theItemGrouptree. -
Uses of TopLevelItem in hudson.cli
Fields in hudson.cli declared as TopLevelItem -
Uses of TopLevelItem in hudson.cli.handlers
Methods in hudson.cli.handlers that return types with arguments of type TopLevelItemConstructor parameters in hudson.cli.handlers with type arguments of type TopLevelItemModifierConstructorDescriptionTopLevelItemOptionHandler(org.kohsuke.args4j.CmdLineParser parser, org.kohsuke.args4j.OptionDef option, org.kohsuke.args4j.spi.Setter<TopLevelItem> setter) -
Uses of TopLevelItem in hudson.model
Classes in hudson.model that implement TopLevelItemMethods in hudson.model with type parameters of type TopLevelItemModifier and TypeMethodDescription<T extends TopLevelItem>
TCopies an existingTopLevelItemto a new name.static <I extends AbstractItem & TopLevelItem>
IItems.move(I item, DirectlyModifiableTopLevelItemGroup destination) Moves an item between folders (or top level).Methods in hudson.model that return TopLevelItemModifier 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 aTopLevelItemfor example from the submission of the/lib/hudson/newFromList/formtag 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 theTopLevelItemof the given name.Deprecated.Left only for the compatibility of URLs.final TopLevelItemAlias forView.getItem(String).Hudson.getJobCaseInsensitive(String name) Deprecated.Used only for mapping jobs to URL in a case-insensitive fashion.abstract TopLevelItemTopLevelItemDescriptor.newInstance(ItemGroup parent, String name) Creates a newTopLevelItemfor 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.Methods in hudson.model that return types with arguments of type TopLevelItemModifier and TypeMethodDescriptionItems.all()Returns all the registeredTopLevelItemDescriptors.View.getAllItems()Gets all the items recursively contained in this collection in a read-only view.default ItemGroup<? extends TopLevelItem> ViewGroup.getItemGroup()Returns theItemGroupfrom which the views in this group should render items.AllView.getItems()ListView.getItems()Returns a read-only view of allJobs 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()directlyMethods in hudson.model with parameters of type TopLevelItemModifier and TypeMethodDescriptionvoidDirectlyModifiableView.add(TopLevelItem item) Add item to this view.protected abstract voidItemGroupMixIn.add(TopLevelItem item) Adds a newly created item to the parent.voidListView.add(TopLevelItem item) Adds the given item to this view.booleanAllView.contains(TopLevelItem item) booleanListView.contains(TopLevelItem item) booleanMyView.contains(TopLevelItem item) booleanProxyView.contains(TopLevelItem item) abstract booleanView.contains(TopLevelItem item) Checks if the job is in this collection.TopLevelItemDescriptor.doCheckDisplayNameOrNull(TopLevelItem item, String value) abstract FilePathNode.getWorkspaceFor(TopLevelItem item) Returns a "workspace" directory for the givenTopLevelItem.Slave.getWorkspaceFor(TopLevelItem item) booleanListView.jobNamesContains(TopLevelItem item) protected StringItemGroupMixIn.redirectAfterCreateItem(org.kohsuke.stapler.StaplerRequest2 req, TopLevelItem result) Computes the redirection target URL for the newly createdTopLevelItem.booleanDirectlyModifiableView.remove(TopLevelItem item) Remove item from this view.booleanListView.remove(TopLevelItem item) Removes given item from this view.booleanTopLevelItemDescriptor.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.Constructor parameters in hudson.model with type arguments of type TopLevelItemModifierConstructorDescriptionprotectedTopLevelItemDescriptor(Class<? extends TopLevelItem> clazz) -
Uses of TopLevelItem in hudson.views
Methods in hudson.views that return types with arguments of type TopLevelItemModifier 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.Method parameters in hudson.views with type arguments of type TopLevelItemModifier 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
Classes in jenkins.model that implement TopLevelItemMethods in jenkins.model with type parameters of type TopLevelItemModifier 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.Methods in jenkins.model that return TopLevelItemModifier 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 theIteminside this group that has a given name, or null if it does not exist.Methods in jenkins.model that return types with arguments of type TopLevelItemModifier and TypeMethodDescriptionJenkins.getItemMap()Returns the read-only view of all theTopLevelItems keyed by their names.Jenkins.getItems()Gets just the immediate children ofJenkins.Jenkins.getItems(Predicate<TopLevelItem> pred) Gets just the immediate children ofJenkinsbased on supplied predicate.Methods in jenkins.model with parameters of type TopLevelItemModifier and TypeMethodDescriptionbooleanDirectlyModifiableTopLevelItemGroup.canAdd(TopLevelItem item) Returns true if a particular item may be added to this group.booleanJenkins.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) voidJenkins.onDeleted(TopLevelItem item) Called in response toAbstractItem.doDoDelete(StaplerRequest2, StaplerResponse2)voidJenkins.onRenamed(TopLevelItem job, String oldName, String newName) Called byJob.renameTo(String)to update relevant data structure.voidJenkins.putItem(TopLevelItem item) Overwrites the existing item by new one.voidDirectlyModifiableTopLevelItemGroup.remove(TopLevelItem item) Removes an item from this group.voidJenkins.remove(TopLevelItem item) Method parameters in jenkins.model with type arguments of type TopLevelItemModifier and TypeMethodDescriptionJenkins.getItems(Predicate<TopLevelItem> pred) Gets just the immediate children ofJenkinsbased on supplied predicate. -
Uses of TopLevelItem in jenkins.slaves
Methods in jenkins.slaves with parameters of type TopLevelItemModifier and TypeMethodDescriptionabstract FilePathWorkspaceLocator.locate(TopLevelItem item, Node node) Allows extensions to customize the workspace path.
ItemGroupMixIn.createTopLevelItem(StaplerRequest2, StaplerResponse2)