Uses of Class
io.jenkins.plugins.batchcontrol.model.GrantRequest
Packages that use GrantRequest
Package
Description
-
Uses of GrantRequest in io.jenkins.plugins.batchcontrol.action
Methods in io.jenkins.plugins.batchcontrol.action that return GrantRequest -
Uses of GrantRequest in io.jenkins.plugins.batchcontrol.model
Methods in io.jenkins.plugins.batchcontrol.model that return GrantRequestModifier 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) Ascreate(GrantScope, ItemKind, List, int, String, String, List, String)without an item kind.Methods in io.jenkins.plugins.batchcontrol.model with parameters of type GrantRequestModifier and TypeMethodDescriptionstatic GrantGrant.createFor(GrantRequest request, Instant grantedAt) Creates the grant for an approved request: the grantee is the requester, the window is[grantedAt, grantedAt + durationMinutes), and the id equals the request id. -
Uses of GrantRequest in io.jenkins.plugins.batchcontrol.ops
Methods in io.jenkins.plugins.batchcontrol.ops with parameters of type GrantRequestModifier and TypeMethodDescriptionstatic voidNotificationDispatcher.grant(NotificationEvent event, GrantRequest request) Event for a change (grant) request.static voidNotificationDispatcher.grantApproved(GrantRequest request, String endedAtOnceBecause) NotificationEvent.APPROVEDfor a change request, sent to its requester.static voidNotificationDispatcher.grantEnded(NotificationEvent event, GrantRequest request, boolean wasPending, String reason) static voidNotificationDispatcher.grantExpiring(Grant grant, GrantRequest request) NotificationEvent.GRANT_EXPIRINGfor an active window, sent to its holder. -
Uses of GrantRequest in io.jenkins.plugins.batchcontrol.policy
Methods in io.jenkins.plugins.batchcontrol.policy that return GrantRequestModifier and TypeMethodDescriptionCancels a PENDING grant request; requester or a Manage holder only (SPEC item 7 rule).GrantRequestService.changeApprovers(String id, List<String> newApprovers) Replaces the designated approver set of a PENDING grant request; requester only (SPEC item 3 rules reused, D-26, D-37).GrantRequestService.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.Loads a grant request by id, ornull.Rejects a PENDING grant request; the comment is mandatory (SPEC item 5 rule reused).Methods in io.jenkins.plugins.batchcontrol.policy that return types with arguments of type GrantRequestModifier and TypeMethodDescriptionGrantRequestService.list()All stored grant requests, in creation order. -
Uses of GrantRequest in io.jenkins.plugins.batchcontrol.store
Methods in io.jenkins.plugins.batchcontrol.store that return GrantRequestModifier and TypeMethodDescriptionFileStore.loadGrantRequest(String id) Store.loadGrantRequest(String id) Loads a grant request by id, or returnsnullif it does not exist.Methods in io.jenkins.plugins.batchcontrol.store that return types with arguments of type GrantRequestModifier and TypeMethodDescriptionFileStore.listGrantRequests()Store.listGrantRequests()Loads every stored grant request, sorted by id (creation order).FileStore.listOpenGrantRequests()Store.listOpenGrantRequests()Loads the PENDING grant requests only, sorted by id, via the entity index.Methods in io.jenkins.plugins.batchcontrol.store with parameters of type GrantRequestModifier and TypeMethodDescriptionvoidFileStore.saveGrantRequest(GrantRequest request) voidStore.saveGrantRequest(GrantRequest request) Writes (or rewrites, on a status transition) the grant request XML atomically. -
Uses of GrantRequest in io.jenkins.plugins.batchcontrol.ui
Methods in io.jenkins.plugins.batchcontrol.ui with parameters of type GrantRequestModifier and TypeMethodDescriptionstatic booleanVisibility.canSeeGrantRequest(GrantRequest request) A grant request is visible iff the caller has Manage, or is the requester or a member of the designated approver set (D-37).