public interface TopLevelItem extends Item, ExtensionPoint, Describable<TopLevelItem>
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.
ExtensionPoint.LegacyInstancesAreScopedToHudson| Modifier and Type | Method and Description |
|---|---|
TopLevelItemDescriptor |
getDescriptor()
Gets the descriptor for this instance.
|
delete, getAbsoluteUrl, getAllJobs, getDisplayName, getFullDisplayName, getFullName, getName, getParent, getRelativeNameFrom, getRelativeNameFrom, getShortUrl, getUrl, onCopiedFrom, onCreatedFromScratch, onLoad, savegetRootDirgetSearchgetSearchIndex, getSearchName, getSearchUrlcheckPermission, getACL, hasPermissionTopLevelItemDescriptor getDescriptor()
Describable
Descriptor is a singleton for every concrete Describable
implementation, so if a.getClass() == b.getClass() then by default
a.getDescriptor() == b.getDescriptor() as well.
(In rare cases a single implementation class may be used for instances with distinct descriptors.)
getDescriptor in interface Describable<TopLevelItem>Describable.getDescriptor()Copyright © 2019. All rights reserved.