Package hudson.model
Interface TopLevelItem
-
- All Superinterfaces:
AccessControlled,Describable<TopLevelItem>,ExtensionPoint,Item,ModelObject,OnMaster,PersistenceRoot,Saveable,SearchableModelObject,SearchItem
- All Known Implementing Classes:
AbstractTopLevelItem,FreeStyleProject
public interface TopLevelItem extends Item, ExtensionPoint, Describable<TopLevelItem>
Itemthat can be directly displayed underJenkinsor other containers. (A "container" would be anyItemGroup<TopLevelItem>, such as a folder of projects.) Ones that don't need to be under specific parent (say, unlikeMatrixConfiguration), and thus can be freely moved, copied, etc.To register a custom
TopLevelItemclass from a plugin, putExtensionon yourTopLevelItemDescriptor. Also seeItems.XSTREAM.- Author:
- Kohsuke Kawaguchi
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TopLevelItemDescriptorgetDescriptor()Gets the descriptor for this instance.-
Methods inherited from interface hudson.security.AccessControlled
checkAnyPermission, checkPermission, getACL, hasAnyPermission, hasPermission, hasPermission, hasPermission2
-
Methods inherited from interface hudson.model.Item
delete, getAbsoluteUrl, getAllJobs, getDisplayName, getFullDisplayName, getFullName, getName, getParent, getRelativeNameFrom, getRelativeNameFrom, getShortUrl, getUrl, onCopiedFrom, onCreatedFromScratch, onLoad, save
-
Methods inherited from interface hudson.model.PersistenceRoot
getRootDir
-
Methods inherited from interface hudson.search.SearchableModelObject
getSearch
-
Methods inherited from interface hudson.search.SearchItem
getSearchIndex, getSearchName, getSearchUrl
-
-
-
-
Method Detail
-
getDescriptor
TopLevelItemDescriptor getDescriptor()
Description copied from interface:DescribableGets the descriptor for this instance.Descriptoris a singleton for every concreteDescribableimplementation, so ifa.getClass() == b.getClass()then by defaulta.getDescriptor() == b.getDescriptor()as well. (In rare cases a single implementation class may be used for instances with distinct descriptors.)- Specified by:
getDescriptorin interfaceDescribable<TopLevelItem>- See Also:
Describable.getDescriptor()
-
-