Package jenkins.model.queue
Interface ITask
- All Superinterfaces:
FullyNamedModelObject,ModelObject
- All Known Subinterfaces:
BuildableItem,BuildableItemWithBuildWrappers,ParameterizedJobMixIn.ParameterizedJob<JobT,,RunT> Queue.FlyweightTask,Queue.NonBlockingTask,Queue.Task,Queue.TransientTask,SCMedItem,SubTask
- All Known Implementing Classes:
AbstractProject,AbstractQueueTask,AbstractSubTask,FreeStyleProject,Project,QueueTaskFilter
A task that can be displayed in the executors widget.
- Since:
- 2.480
-
Method Summary
Modifier and TypeMethodDescriptiondefault StringWorks likeModelObject.getDisplayName()but return the full path that includes all the display names of the ancestors in an unspecified format.getUrl()default booleandefault booleanMethods inherited from interface hudson.model.ModelObject
getDisplayName
-
Method Details
-
hasAbortPermission
default boolean hasAbortPermission()- Returns:
trueif the current user can cancel the current task. NOTE: If you have implementedAccessControlledthis returns by defaulthasPermission(Item.CANCEL)
-
hasReadPermission
default boolean hasReadPermission()- Returns:
trueif the current user has read access on the task.
-
getFullDisplayName
Description copied from interface:FullyNamedModelObjectWorks likeModelObject.getDisplayName()but return the full path that includes all the display names of the ancestors in an unspecified format.- Specified by:
getFullDisplayNamein interfaceFullyNamedModelObject- Returns:
- the full display name of the task.
Defaults to the same as
ModelObject.getDisplayName().
-
getUrl
- Returns:
- the URL where to reach specifically this task, relative to Jenkins URL. If non-null, must end with '/'.
-