Class UnshelveProjectTask
java.lang.Object
org.jvnet.hudson.plugins.shelveproject.UnshelveProjectTask
- All Implemented Interfaces:
ModelObject
,Queue.FlyweightTask
,SubTask
,Queue.Task
,Queue.TransientTask
,ResourceActivity
Represents a lightweight task that will take care of Unshelving the shelved archives.
Creates a
UnshelveProjectExecutable
in charge of the actual unshelve operations.-
Constructor Summary
ConstructorsConstructorDescriptionUnshelveProjectTask
(String[] shelvedProjectArchiveNames) Creates aUnshelveProjectTask
-
Method Summary
Modifier and TypeMethodDescriptionvoid
org.springframework.security.core.Authentication
org.springframework.security.core.Authentication
getName()
Collection<? extends SubTask>
getUrl()
boolean
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface hudson.model.Queue.Task
getAffinityKey, getDefaultAuthentication, getDefaultAuthentication, getWhyBlocked, isBuildBlocked, isConcurrentBuild
Methods inherited from interface hudson.model.queue.SubTask
getAssignedLabel, getEstimatedDuration, getLastBuiltOn, getOwnerExecutable, getSameNodeConstraint
-
Constructor Details
-
UnshelveProjectTask
Creates aUnshelveProjectTask
- Parameters:
shelvedProjectArchiveNames
- The list of shelve archives to treat
-
-
Method Details
-
getCauseOfBlockage
- Specified by:
getCauseOfBlockage
in interfaceQueue.Task
-
getName
- Specified by:
getName
in interfaceQueue.Task
-
getFullDisplayName
- Specified by:
getFullDisplayName
in interfaceQueue.Task
-
createExecutable
- Specified by:
createExecutable
in interfaceSubTask
-
getOwnerTask
- Specified by:
getOwnerTask
in interfaceSubTask
-
checkAbortPermission
public void checkAbortPermission()- Specified by:
checkAbortPermission
in interfaceQueue.Task
-
hasAbortPermission
public boolean hasAbortPermission()- Specified by:
hasAbortPermission
in interfaceQueue.Task
-
getUrl
- Specified by:
getUrl
in interfaceQueue.Task
-
getSubTasks
- Specified by:
getSubTasks
in interfaceQueue.Task
-
getResourceList
- Specified by:
getResourceList
in interfaceResourceActivity
-
getDisplayName
- Specified by:
getDisplayName
in interfaceModelObject
- Specified by:
getDisplayName
in interfaceResourceActivity
-
getDefaultAuthentication2
@NonNull public org.springframework.security.core.Authentication getDefaultAuthentication2()- Specified by:
getDefaultAuthentication2
in interfaceQueue.Task
-
getDefaultAuthentication2
@NonNull public org.springframework.security.core.Authentication getDefaultAuthentication2(Queue.Item item) - Specified by:
getDefaultAuthentication2
in interfaceQueue.Task
-