Class ComputedFolderActivationAction
java.lang.Object
io.jenkins.plugins.batchcontrol.action.ComputedFolderActivationAction
- All Implemented Interfaces:
Action,ModelObject
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public class ComputedFolderActivationAction
extends Object
implements Action
Activation on a computed folder (multibranch project, organization folder), which carries the
activation of the jobs it generates (D-46c, SPEC item 6a).
summary.jellyshows the folder's state (activated / not activated / on hold) on the folder page toItem/Readholders while run control is on, with a link to the request form for aBatchControl/Requestholder.<folder>/batch-control-activation/is the request form, a separate action (JobActivationForm, D-64) that is absent (404) withoutBatchControl/Request(SPEC item 2, as on a job).
No sidebar entry; the action never changes state itself.
-
Constructor Summary
ConstructorsConstructorDescriptionComputedFolderActivationAction(com.cloudbees.hudson.plugins.folder.computed.ComputedFolder<?> folder) -
Method Summary
Modifier and TypeMethodDescriptionactionLabel(ActivationRequest.Action action) carrierState(Item carrier) carrierUrl(Item carrier) A computed folder generated by another computed folder (a repository project of an organization folder) is carried by that folder (D-46c,ActivationService.activationSubject(hudson.model.Item)); the summary then names it.com.cloudbees.hudson.plugins.folder.computed.ComputedFolder<?> The PENDING requests of this folder the viewer may see (P-09).No URL of its own: the summary is rendered on the folder page, and the activation request form is its own action,JobActivationFormat<folder>/batch-control-activation/(D-64).booleanbooleanD-38b: Request (and Item/Read) on this folder, the service's predicate.booleanisHeld()booleanisShown()Run control on and the viewer holdsItem/Readon the folder.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.model.Action
getDescription, getEvent, getGroup, getSemantic, isVisibleInContextMenu
-
Constructor Details
-
ComputedFolderActivationAction
public ComputedFolderActivationAction(com.cloudbees.hudson.plugins.folder.computed.ComputedFolder<?> folder)
-
-
Method Details
-
getFolder
public com.cloudbees.hudson.plugins.folder.computed.ComputedFolder<?> getFolder() -
getIconFileName
- Specified by:
getIconFileNamein interfaceAction
-
getDisplayName
- Specified by:
getDisplayNamein interfaceAction- Specified by:
getDisplayNamein interfaceModelObject
-
getUrlName
No URL of its own: the summary is rendered on the folder page, and the activation request form is its own action,JobActivationFormat<folder>/batch-control-activation/(D-64).- Specified by:
getUrlNamein interfaceAction
-
isShown
public boolean isShown()Run control on and the viewer holdsItem/Readon the folder. -
isCanRequest
public boolean isCanRequest()D-38b: Request (and Item/Read) on this folder, the service's predicate. -
isActivated
public boolean isActivated() -
isHeld
public boolean isHeld() -
getCarrier
A computed folder generated by another computed folder (a repository project of an organization folder) is carried by that folder (D-46c,ActivationService.activationSubject(hudson.model.Item)); the summary then names it.nullotherwise. -
carrierState
-
carrierUrl
-
getPendingRequests
The PENDING requests of this folder the viewer may see (P-09). -
actionLabel
-