Uses of Enum Class
io.jenkins.plugins.batchcontrol.model.GrantAction
Packages that use GrantAction
Package
Description
-
Uses of GrantAction in io.jenkins.plugins.batchcontrol.action
Methods in io.jenkins.plugins.batchcontrol.action that return types with arguments of type GrantAction -
Uses of GrantAction in io.jenkins.plugins.batchcontrol.model
Methods in io.jenkins.plugins.batchcontrol.model that return GrantActionModifier and TypeMethodDescriptionstatic GrantActionGrantAction.fromPermission(Permission permission) The action corresponding to a Jenkins permission, ornullwhen the permission is not one of the three grantable item permissions (the grant machinery must never touch any other permission).static GrantActionReturns the enum constant of this class with the specified name.static GrantAction[]GrantAction.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in io.jenkins.plugins.batchcontrol.model that return types with arguments of type GrantActionModifier and TypeMethodDescriptionGrant.getActions()A defensive copy; the granted actions never change after creation.GrantRequest.getActions()A defensive copy; the requested actions never change after creation.Method parameters in io.jenkins.plugins.batchcontrol.model with type arguments of type GrantActionModifier and TypeMethodDescriptionstatic GrantRequestGrantRequest.create(GrantScope scope, ItemKind itemKind, List<GrantAction> actions, int durationMinutes, String reason, String requester, List<String> approvers, String createNamePattern) Creates a new PENDING grant request with a random UUID id (D-68) and its creation time fromBatchClock, recording the kind of the scope item (D-71).static GrantRequestGrantRequest.create(GrantScope scope, List<GrantAction> actions, int durationMinutes, String reason, String requester, String approver) Single-approver form without a name restriction, kept for callers written before D-37.static GrantRequestGrantRequest.create(GrantScope scope, List<GrantAction> actions, int durationMinutes, String reason, String requester, List<String> approvers, String createNamePattern) AsGrantRequest.create(GrantScope, ItemKind, List, int, String, String, List, String)without an item kind. -
Uses of GrantAction in io.jenkins.plugins.batchcontrol.policy
Method parameters in io.jenkins.plugins.batchcontrol.policy with type arguments of type GrantActionModifier and TypeMethodDescriptionGrantRequestService.create(GrantScope scope, List<GrantAction> actions, int durationMinutes, String reason, String approver) Creates a PENDING grant request.GrantRequestService.create(GrantScope scope, List<GrantAction> actions, int durationMinutes, String reason, List<String> approvers) Approver-set form without a name restriction (D-37).GrantRequestService.create(GrantScope scope, List<GrantAction> actions, int durationMinutes, String reason, List<String> approvers, String createNamePattern) Creates a PENDING grant request designating an approver set (D-37) and, for CREATE, an optional name restriction (D-40): an exact item name or a/regex/matched against the whole name of the new item. -
Uses of GrantAction in io.jenkins.plugins.batchcontrol.security
Methods in io.jenkins.plugins.batchcontrol.security with parameters of type GrantActionModifier and TypeMethodDescriptionGrantService.findActiveGrant(String user, Item item, GrantAction action) The first active grant ofusernaming exactlyitem's full name and includingaction(null: any action), ornull.GrantService.findActiveGrant(String user, String itemFullName, Item item, GrantAction action) AsGrantService.findActiveGrant(String, Item, GrantAction)for a window namingitemFullNamerather than the item's current full name: its name before a rename or move, whose window was the one in use (change records; item events update the window's name only after those are written,WindowItemListener).GrantService.findActiveGrant(String user, String itemFullName, GrantAction action) The first active grant ofuserwhose scope is the itemitemFullName(an item the caller can see must be at that name) and that includesaction, ornull.GrantService.findActiveGrants(String user, Item item, GrantAction action) Every active grant ofusernaming exactlyitem's full name and includingaction(D-40: the CREATE check has to see all of them, since each may carry a different name restriction). -
Uses of GrantAction in io.jenkins.plugins.batchcontrol.ui
Methods in io.jenkins.plugins.batchcontrol.ui with parameters of type GrantActionModifier and TypeMethodDescriptionstatic booleanGrantRequestLinks.applies(Item item, GrantAction action) D-71: whether a permission window carryingactioncan nameitem: it must be a top-level item (a job or a folder of any kind); CREATE applies only to a regular folder (GrantScope.createAppliesTo(hudson.model.Item)) and DELETE only to a job (GrantScope.deleteAppliesTo(hudson.model.Item)).Constructors in io.jenkins.plugins.batchcontrol.ui with parameters of type GrantAction