Class DeleteProjectTask
java.lang.Object
org.jvnet.hudson.plugins.shelveproject.DeleteProjectTask
- All Implemented Interfaces:
ModelObject,Queue.FlyweightTask,SubTask,Queue.Task,Queue.TransientTask,ResourceActivity,FullyNamedModelObject,ITask
Represents a lightweight task that will take care of Deleting shelved archives.
Creates a
DeleteProjectExecutable in charge of the actual deletion-
Constructor Summary
ConstructorsConstructorDescriptionDeleteProjectTask(String[] shelvedProjectArchiveNames) Creates aDeleteProjectTask -
Method Summary
Modifier and TypeMethodDescriptionvoidorg.springframework.security.core.Authenticationorg.springframework.security.core.AuthenticationgetName()Collection<? extends SubTask> getUrl()booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jenkins.model.queue.ITask
hasReadPermissionMethods inherited from interface hudson.model.Queue.Task
getAffinityKey, getDefaultAuthentication, getDefaultAuthentication, getWhyBlocked, isBuildBlocked, isConcurrentBuildMethods inherited from interface hudson.model.queue.SubTask
getAssignedLabel, getEstimatedDuration, getLastBuiltOn, getOwnerExecutable, getSameNodeConstraint
-
Constructor Details
-
DeleteProjectTask
Creates aDeleteProjectTask- Parameters:
shelvedProjectArchiveNames- The list of shelve archives to delete
-
-
Method Details
-
getCauseOfBlockage
- Specified by:
getCauseOfBlockagein interfaceQueue.Task
-
getName
- Specified by:
getNamein interfaceQueue.Task
-
getFullDisplayName
- Specified by:
getFullDisplayNamein interfaceFullyNamedModelObject- Specified by:
getFullDisplayNamein interfaceITask
-
createExecutable
- Specified by:
createExecutablein interfaceSubTask
-
getOwnerTask
- Specified by:
getOwnerTaskin interfaceSubTask
-
checkAbortPermission
public void checkAbortPermission()- Specified by:
checkAbortPermissionin interfaceQueue.Task
-
hasAbortPermission
public boolean hasAbortPermission()- Specified by:
hasAbortPermissionin interfaceITask
-
getUrl
-
getSubTasks
- Specified by:
getSubTasksin interfaceQueue.Task
-
getResourceList
- Specified by:
getResourceListin interfaceResourceActivity
-
getDisplayName
- Specified by:
getDisplayNamein interfaceModelObject
-
getDefaultAuthentication2
@NonNull public org.springframework.security.core.Authentication getDefaultAuthentication2()- Specified by:
getDefaultAuthentication2in interfaceQueue.Task
-
getDefaultAuthentication2
@NonNull public org.springframework.security.core.Authentication getDefaultAuthentication2(Queue.Item item) - Specified by:
getDefaultAuthentication2in interfaceQueue.Task
-