Package hudson.model
Interface TopLevelItem
- All Superinterfaces:
AccessControlled,Describable<TopLevelItem>,ExtensionPoint,FullyNamed,FullyNamedModelObject,Item,ModelObject,Named,OnMaster,PersistenceRoot,Saveable,SearchableModelObject,SearchItem
- All Known Implementing Classes:
AbstractTopLevelItem,FreeStyleProject
Item that can be directly displayed under Jenkins or other containers.
(A "container" would be any ItemGroup<TopLevelItem>, such as a folder of projects.)
Ones that don't need to be under specific parent (say, unlike MatrixConfiguration),
and thus can be freely moved, copied, etc.
To register a custom TopLevelItem class from a plugin, put Extension on your
TopLevelItemDescriptor. Also see Items.XSTREAM.
- Author:
- Kohsuke Kawaguchi
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the descriptor for this instance.Methods inherited from interface hudson.security.AccessControlled
checkAnyPermission, checkPermission, getACL, hasAnyPermission, hasPermission, hasPermission, hasPermission2Methods inherited from interface jenkins.model.FullyNamedModelObject
getFullDisplayNameMethods inherited from interface hudson.model.Item
delete, getAbsoluteUrl, getAllJobs, getDisplayName, getFullName, getName, getParent, getRelativeNameFrom, getRelativeNameFrom, getSearchGroup, getShortUrl, getUrl, onCopiedFrom, onCreatedFromScratch, onLoad, saveMethods inherited from interface hudson.model.PersistenceRoot
getRootDirMethods inherited from interface hudson.search.SearchableModelObject
getSearchMethods inherited from interface hudson.search.SearchItem
getSearchIcon, getSearchIndex, getSearchName, getSearchUrl
-
Method Details
-
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.)By default looks for a nested class (conventionally named
DescriptorImpl) implementingDescriptorand marked withExtension.- Specified by:
getDescriptorin interfaceDescribable<TopLevelItem>- See Also:
-