Uses of Interface
hudson.model.Item
Package
Description
OptionHandler
implementations for Hudson.Beef up the plain text console output by adding HTML markup.
Core object model that are bound to URLs via stapler, rooted at
Jenkins
.Boolean expression over labels.
Listener interfaces for various events that occur inside the server.
Built-in
Trigger
s that run periodically to kick a new build.-
Uses of Item in hudson
Modifier and TypeMethodDescriptionstatic String
Functions.getRelativeDisplayNameFrom
(Item p, ItemGroup g) Gets the relative display name to the given item from the specified group.static String
Functions.getRelativeLinkTo
(Item p) Computes the relative path from the current page to the given item.static String
Functions.getRelativeNameFrom
(Item p, ItemGroup g) Gets the name to the given item relative to given group.static String
Functions.getRelativeNameFrom
(Item p, ItemGroup g, boolean useDisplayName) Gets the relative name or display name to the given item from the specified group.static String
Functions.toCCStatus
(Item i) Deprecated.This functionality has been moved to ccxml plugin. -
Uses of Item in hudson.cli.handlers
Modifier and TypeClassDescriptionclass
GenericItemOptionHandler<T extends Item>
Refers to anItem
by its name. -
Uses of Item in hudson.console
-
Uses of Item in hudson.model
Modifier and TypeInterfaceDescriptioninterface
Represents a grouping inherent to a kind ofItem
s.interface
ModifiableItemGroup<T extends Item>
ItemGroup
that is a general purpose container, which allows users and the rest of the program to create arbitrary items into it.Modifier and TypeInterfaceDescriptioninterface
Item
that can be "built", for whatever meaning of "build".interface
AbstractProject
that has associatedBuildWrapper
s.interface
Deprecated.ImplementSCMTriggerItem
instead.interface
Modifier and TypeClassDescriptionclass
Partial default implementation ofItem
.class
AbstractProject<P extends AbstractProject<P,
R>, R extends AbstractBuild<P, R>> Base implementation ofJob
s that build software.class
Free-style software project.class
A job is an runnable entity under the monitoring of Hudson.class
Buildable software project.class
Job
that monitors activities that happen outside Hudson, which requires occasional batch reload activity to obtain the up-to-date information.Modifier and TypeFieldDescriptionstatic final Comparator<Item>
Items.BY_FULL_NAME
A comparator ofItem
instances that uses a case-insensitive comparison ofgetFullName()
.static final Comparator<Item>
Items.BY_NAME
ItemGroupMixIn.KEYED_BY_NAME
Item
→ name function.Modifier and TypeMethodDescriptionGets a read-only view of all theItem
s recursively in theItemGroup
tree visible toJenkins.getAuthentication2()
without concern for the order in which items are returned.Gets a read-only view of all theItem
s recursively matching type and predicate in theItemGroup
tree visible toJenkins.getAuthentication2()
without concern for the order in which items are returned.Items.allItems
(Authentication authentication, ItemGroup root, Class<T> type) Deprecated.Items.allItems
(Authentication authentication, ItemGroup root, Class<T> type, Predicate<T> pred) Deprecated.Items.allItems2
(org.springframework.security.core.Authentication authentication, ItemGroup root, Class<T> type) Items.allItems2
(org.springframework.security.core.Authentication authentication, ItemGroup root, Class<T> type, Predicate<T> pred) static <T extends Item>
TItems.findNearest
(Class<T> type, String name, ItemGroup context) Finds an item whose name (when referenced from the specified context) is closest to the given name.Items.fromNameList
(ItemGroup context, String list, Class<T> type) Does the opposite ofItems.toNameList(Collection)
.Items.fromNameList
(String list, Class<T> type) Deprecated.as of 1.406 UseItems.fromNameList(ItemGroup, String, Class)
ItemGroup.getAllItems
(Class<T> type) ItemGroup.getAllItems
(Class<T> type, Predicate<T> pred) Similar toItemGroup.getAllItems(Class)
with additional predicate filteringItems.getAllItems
(ItemGroup root, Class<T> type) Items.getAllItems
(ItemGroup root, Class<T> type, Predicate<T> pred) Similar toItems.getAllItems(ItemGroup, Class)
but with a predicate to pre-filter items to avoid checking ACLs unnecessarily and returning items not required by the callerItemGroupMixIn.loadChildren
(ItemGroup parent, File modulesDir, Function1<? extends K, ? super V> key) Loads all the childItem
s.static <T extends Item>
AutoCompletionCandidatesAutoCompletionCandidates.ofJobNames
(Class<T> type, String value, ItemGroup container) Auto-completes possible job names.static <T extends Item>
AutoCompletionCandidatesAutoCompletionCandidates.ofJobNames
(Class<T> type, String value, Item self, ItemGroup container) Auto-completes possible job names.Modifier and TypeMethodDescriptionProject.asItem()
AllView.doCreateItem
(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) ListView.doCreateItem
(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) ProxyView.doCreateItem
(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) View.doCreateItem
(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) Creates a newItem
in this collection.View.doCreateItem
(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) Deprecated.static Item
Loads aItem
from a config file.Modifier and TypeMethodDescriptionItemGroup.allItems()
Gets all the items unordered, lazily and recursively.ItemGroup.getAllItems()
Gets all the items recursively.Item.getParent()
Gets the parent that contains this item.Modifier and TypeMethodDescriptionDeprecated.Validates the use of a label within a particular context.static XmlFile
Items.getConfigFile
(Item item) The file we save our configuration.default String
Item.getRelativeNameFrom
(Item item) Short forgetRelativeNameFrom(item.getParent())
static <T extends Item>
AutoCompletionCandidatesAutoCompletionCandidates.ofJobNames
(Class<T> type, String value, Item self, ItemGroup container) Auto-completes possible job names.void
Called after the user has clicked OK in the New Job page when Copy existing job has been selected.void
void
AbstractItem.onCopiedFrom
(Item src) When aItem
is copied from existing one, the files are first copied on the file system, then it will be loaded, then this method will be invoked to perform any implementation-specific work.void
Item.onCopiedFrom
(Item src) When aItem
is copied from existing one, the files are first copied on the file system, then it will be loaded, then this method will be invoked to perform any implementation-specific work.void
Job.onCopiedFrom
(Item src) void
void
Visits anItem
.void
View.onJobRenamed
(Item item, String oldName, String newName) Deprecated.Does not work properly with moved jobs.void
Fingerprint.ProjectRenameListener.onLocationChanged
(Item item, String oldName, String newName) void
Job.SubItemBuildsLocationImpl.onLocationChanged
(Item item, String oldFullName, String newFullName) void
ListView.Listener.onLocationChanged
(Item item, String oldFullName, String newFullName) void
Called after the user has changed the project name of a job and then clicked on submit.Modifier and TypeMethodDescriptionvoid
Called right after when aItem
is loaded from disk.void
void
Called right after when aItem
is loaded from disk.void
void
void
static String
Items.toNameList
(Collection<? extends Item> items) Converts a list of items into a comma-separated list of full names. -
Uses of Item in hudson.model.labels
-
Uses of Item in hudson.model.listeners
Modifier and TypeMethodDescriptionstatic void
ItemListener.checkBeforeCopy
(Item src, ItemGroup parent) Call before a job is copied into a new parent, to allow theItemListener
implementations the ability to veto the copy operation before it starts.static void
ItemListener.checkBeforeDelete
(Item item) static void
ItemListener.fireLocationChange
(Item rootItem, String oldFullName) static void
ItemListener.fireOnCopied
(Item src, Item result) static void
ItemListener.fireOnCreated
(Item item) static void
ItemListener.fireOnDeleted
(Item item) static void
ItemListener.fireOnUpdated
(Item item) void
ItemListener.onCheckCopy
(Item src, ItemGroup parent) Called before a job is copied into a new parent, providing the ability to veto the copy operation before it starts.void
ItemListener.onCheckDelete
(Item item) Called before an item is deleted, providing the ability to veto the deletion operation before it starts.void
Called after a new job is created by copying from an existing job.void
Called after a new job is created and added toJenkins
, before the initial configuration page is provided.void
Called right before a job is going to be deleted.void
ItemListener.onLocationChanged
(Item item, String oldFullName, String newFullName) Called after an item’s fully-qualified location has changed.void
Called after a job is renamed.void
Called after a job has its configuration updated. -
Uses of Item in hudson.model.queue
-
Uses of Item in hudson.tasks
Modifier and TypeMethodDescriptionBuildTrigger.DescriptorImpl.doAutoCompleteChildProjects
(String value, Item self, ItemGroup container) void
BuildTrigger.DescriptorImpl.ItemListenerImpl.onLocationChanged
(Item item, String oldFullName, String newFullName) -
Uses of Item in hudson.triggers
Modifier and TypeMethodDescriptionSCMTrigger.DescriptorImpl.doCheckScmpoll_spec
(String value, boolean ignorePostCommitHooks, Item item) Performs syntax check.TimerTrigger.DescriptorImpl.doCheckSpec
(String value, Item item) Performs syntax check.static List<TriggerDescriptor>
Returns a subset ofTriggerDescriptor
s that applies to the given item.static List<TriggerDescriptor>
Triggers.getApplicableTriggers
(Item i) Deprecated.as of 1.286 UseTrigger.for_(Item)
.boolean
SCMTrigger.DescriptorImpl.isApplicable
(Item item) boolean
TimerTrigger.DescriptorImpl.isApplicable
(Item item) abstract boolean
TriggerDescriptor.isApplicable
(Item item) Returns true if this trigger is applicable to the givenItem
. -
Uses of Item in jenkins.model
Modifier and TypeInterfaceDescriptionstatic interface
ParameterizedJobMixIn.ParameterizedJob<JobT extends Job<JobT,
RunT> & ParameterizedJobMixIn.ParameterizedJob<JobT, RunT> & Queue.Task, RunT extends Run<JobT, RunT> & Queue.Executable> Marker for job using this mixin, and default implementations of many methods.Modifier and TypeMethodDescriptionfinal <T extends Item>
Tfinal <T extends Item>
T<T extends Item>
TJenkins.getItemByFullName
(String fullName, Class<T> type) Gets theItem
object by its full name.Modifier and TypeMethodDescriptionfinal Item
Gets the item by its path name from the given contextJenkins.getItemByFullName
(String fullName) -
Uses of Item in jenkins.model.labels
Modifier and TypeMethodDescriptionValidates the use of a label within a particular context. -
Uses of Item in jenkins.model.lazy
Modifier and TypeMethodDescriptionvoid
LazyBuildMixIn.ItemListenerImpl.onLocationChanged
(Item item, String oldFullName, String newFullName) Modifier and TypeMethodDescriptionvoid
Something to be called fromJob.onLoad(hudson.model.ItemGroup<? extends hudson.model.Item>, java.lang.String)
. -
Uses of Item in jenkins.model.queue
Modifier and TypeMethodDescriptionstatic void
ItemDeletion.cancelBuildsInProgress
(Item initiatingItem) Cancels any builds in progress of this item (if a job) or descendants (if a folder).static boolean
Checks if the suppliedItem
or any of itsgetParent()
are being deleted.static void
ItemDeletion.deregister
(Item item) Deregister the suppliedItem
for deletion.static boolean
ItemDeletion.isRegistered
(Item item) Checks if the suppliedItem
is explicitly registered for deletion.static boolean
Register the suppliedItem
for deletion. -
Uses of Item in jenkins.scm
Modifier and TypeMethodDescriptionstatic SCMDecisionHandler
SCMDecisionHandler.firstShouldPollVeto
(Item item) static List<SCMDecisionHandler>
SCMDecisionHandler.listShouldPollVetos
(Item item) abstract boolean
SCMDecisionHandler.shouldPoll
(Item item) This handler is consulted every time someone tries to run a polling of anItem
. -
Uses of Item in jenkins.triggers
Modifier and TypeMethodDescriptionstatic SCMTriggerItem
SCMTriggerItem.SCMTriggerItems.asSCMTriggerItem
(Item item) See whether an item can be coerced toSCMTriggerItem
.ReverseBuildTrigger.DescriptorImpl.doAutoCompleteUpstreamProjects
(String value, Item self, ItemGroup container) boolean
ReverseBuildTrigger.DescriptorImpl.isApplicable
(Item item) void
ReverseBuildTrigger.ItemListenerImpl.onLocationChanged
(Item item, String oldFullName, String newFullName)