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 String
Works likeModelObject.getDisplayName()
but return the full path that includes all the display names of the ancestors in an unspecified format.getUrl()
default boolean
default boolean
Methods inherited from interface hudson.model.ModelObject
getDisplayName
-
Method Details
-
hasAbortPermission
default boolean hasAbortPermission()- Returns:
true
if the current user can cancel the current task. NOTE: If you have implementedAccessControlled
this returns by defaulthasPermission(Item.CANCEL)
-
hasReadPermission
default boolean hasReadPermission()- Returns:
true
if the current user has read access on the task.
-
getFullDisplayName
Description copied from interface:FullyNamedModelObject
Works likeModelObject.getDisplayName()
but return the full path that includes all the display names of the ancestors in an unspecified format.- Specified by:
getFullDisplayName
in 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 '/'.
-