Package hudson.model
Interface TopLevelItem
- All Superinterfaces:
AccessControlled
,Describable<TopLevelItem>
,ExtensionPoint
,Item
,ModelObject
,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, 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
getSearchIcon, getSearchIndex, getSearchName, getSearchUrl
-
Method Details
-
getDescriptor
TopLevelItemDescriptor getDescriptor()Description copied from interface:Describable
Gets the descriptor for this instance.Descriptor
is a singleton for every concreteDescribable
implementation, 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:
getDescriptor
in interfaceDescribable<TopLevelItem>
- See Also:
-