public class Tasks extends Object
Queue.Task
and SubTask
.Constructor and Description |
---|
Tasks() |
Modifier and Type | Method and Description |
---|---|
static Authentication |
getAuthenticationOf(Queue.Task t)
Deprecated.
|
static org.springframework.security.core.Authentication |
getAuthenticationOf2(Queue.Task t)
Finds what authentication a task is likely to be run under when scheduled.
|
static Authentication |
getDefaultAuthenticationOf(Queue.Task t)
Deprecated.
call
Queue.Task#getDefaultAuthentication() directly |
static Authentication |
getDefaultAuthenticationOf(Queue.Task t,
Queue.Item item)
Deprecated.
call
Queue.Task#getDefaultAuthentication(Item) directly |
static Item |
getItemOf(SubTask t)
|
static Queue.Task |
getOwnerTaskOf(SubTask t)
Deprecated.
|
static Object |
getSameNodeConstraintOf(SubTask t)
Deprecated.
call
SubTask.getSameNodeConstraint() directly |
static Collection<? extends SubTask> |
getSubTasksOf(Queue.Task task)
Deprecated.
call
Queue.Task.getSubTasks() directly |
@Deprecated public static Collection<? extends SubTask> getSubTasksOf(Queue.Task task)
Queue.Task.getSubTasks()
directly@Deprecated public static Object getSameNodeConstraintOf(SubTask t)
SubTask.getSameNodeConstraint()
directly@Deprecated @NonNull public static Queue.Task getOwnerTaskOf(@NonNull SubTask t)
SubTask.getOwnerTask()
directly@Deprecated @NonNull public static Authentication getDefaultAuthenticationOf(Queue.Task t)
Queue.Task#getDefaultAuthentication()
directly@Deprecated @NonNull public static Authentication getDefaultAuthenticationOf(Queue.Task t, Queue.Item item)
Queue.Task#getDefaultAuthentication(Item)
directly@NonNull public static org.springframework.security.core.Authentication getAuthenticationOf2(@NonNull Queue.Task t)
Queue.Item.authenticate2()
) might differ,
in case some QueueItemAuthenticator.authenticate2(hudson.model.Queue.Item)
takes (for example) actions into consideration.t
- a taskQueueItemAuthenticator.authenticate2(hudson.model.Queue.Task)
; else Queue.Task.getDefaultAuthentication2()
@Deprecated @NonNull public static Authentication getAuthenticationOf(@NonNull Queue.Task t)
getAuthenticationOf2(hudson.model.Queue.Task)
Copyright © 2004–2021. All rights reserved.