Uses of Class
io.jenkins.plugins.batchcontrol.model.Grant
Packages that use Grant
Package
Description
-
Uses of Grant in io.jenkins.plugins.batchcontrol.action
Methods in io.jenkins.plugins.batchcontrol.action that return GrantModifier and TypeMethodDescriptionGrantRequestItem.getGrant()The permission window of this request once approved (it carries the request's id), ornull.GrantsSection.Row.getGrant()GrantsSection.getRenewSource()The ended grant the form renews (?from=<grantId>), ornull.Methods in io.jenkins.plugins.batchcontrol.action that return types with arguments of type GrantModifier and TypeMethodDescriptionFolderCreateWindowAction.getWindows()The viewer's active Create windows that cover new items in this folder: those naming its current full name (a window follows its folder through a rename or move, D-74 (3)).Methods in io.jenkins.plugins.batchcontrol.action with parameters of type GrantModifier and TypeMethodDescriptionWhen a grant ended: its revocation time, else its expiry.static StringGrantRequestItem.endedLabel(Grant grant) How a window ended, in words: "Expired", "Revoked by admin", or for a revocation by the change control switch "Revoked (change control turned off) by admin".GrantsSection.endedLabel(Grant grant) How a grant ended, in words: "Expired", "Revoked by admin", or for a revocation by the change control switch "Revoked (change control turned off) by admin".GrantRequestItem.endedLabelOf(Grant grant) Jelly form ofGrantRequestItem.endedLabel(Grant).booleanWhether the restriction is a/regex/(worded "matching") rather than an exact name.FolderCreateWindowAction.restriction(Grant grant) The allowed names of a window in words: the exact name or pattern, ornullfor any. -
Uses of Grant in io.jenkins.plugins.batchcontrol.model
Methods in io.jenkins.plugins.batchcontrol.model that return GrantModifier 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 Grant in io.jenkins.plugins.batchcontrol.ops
Methods in io.jenkins.plugins.batchcontrol.ops with parameters of type GrantModifier and TypeMethodDescriptionstatic voidNotificationDispatcher.grantExpiring(Grant grant, GrantRequest request) NotificationEvent.GRANT_EXPIRINGfor an active window, sent to its holder. -
Uses of Grant in io.jenkins.plugins.batchcontrol.policy
Methods in io.jenkins.plugins.batchcontrol.policy that return Grant -
Uses of Grant in io.jenkins.plugins.batchcontrol.security
Methods in io.jenkins.plugins.batchcontrol.security that return GrantModifier and TypeMethodDescriptionGrantService.findActiveCreateGrant(String user, ItemGroup<?> group, String itemName) D-40: the first active Create grant ofuseron the item groupgroup(named exactly) whose name restriction (if any) allowsitemName, ornull.GrantService.findActiveDeleteGrant(String user, Item item) D-71: the active DELETE window ofuseronitem, ornull.GrantService.findActiveDeleteGrant(String user, Item item, String itemFullName) AsGrantService.findActiveDeleteGrant(String, Item)for the item under the nameitemFullName(its name before a move, for example).GrantService.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.findConfigureGrant(String user, Item item) The active grant that givesuserItem/Configure onitem: a grant with the CONFIGURE action naming the item, or a Create grant through which the user created it (D-35c).GrantService.findCreatingGrant(String user, Item item) D-35c: the active grant ofuserthrough whose Createitemwas created, ornull.GrantService.findCreatingGrant(String user, String itemFullName, Item item) AsGrantService.findCreatingGrant(String, Item)for the record under the nameitemFullName(its name before a rename, whose record was the one in use); the parent isitem's.GrantService.recordCreatedItem(String user, Item item) D-35c: notes thatusercreateditemthrough the Create of an active grant, persisting the grant.Immediately revokes a grant (SPEC item 8: Manage holders only — the web action checks; the service double-checks) and appends aChangeRecord(GRANT_REVOKE).Methods in io.jenkins.plugins.batchcontrol.security that return types with arguments of type GrantModifier and TypeMethodDescriptionGrantService.claimExpiringNotifications(Duration lead) D-36: marks and returns every active grant whose window ends withinleadand whose GRANT_EXPIRING notification was not sent yet.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).GrantService.listActive()Every grant that is active right now (not expired, not revoked).GrantService.listAll()Every known grant, active or ended, as the permission checks see it (a copy of the list): an end not yet written to its file is already in it.Methods in io.jenkins.plugins.batchcontrol.security with parameters of type GrantModifier and TypeMethodDescriptionbooleanPersists a freshly created grant and makes it effective immediately.Method parameters in io.jenkins.plugins.batchcontrol.security with type arguments of type GrantModifier and TypeMethodDescriptionbooleanGrantService.registerApproved(Item item, Supplier<Grant> approval) #39: the approval's registration. -
Uses of Grant in io.jenkins.plugins.batchcontrol.store
Methods in io.jenkins.plugins.batchcontrol.store that return GrantModifier and TypeMethodDescriptionLoads a grant by id, or returnsnullif it does not exist.Methods in io.jenkins.plugins.batchcontrol.store that return types with arguments of type GrantModifier and TypeMethodDescriptionFileStore.listGrants()Store.listGrants()Loads every stored grant, sorted by id (creation order).Methods in io.jenkins.plugins.batchcontrol.store with parameters of type Grant -
Uses of Grant in io.jenkins.plugins.batchcontrol.ui
Methods in io.jenkins.plugins.batchcontrol.ui with parameters of type GrantModifier and TypeMethodDescriptionstatic booleanVisibility.canSeeGrant(Grant grant) An active grant is visible iff the caller has Manage, or the grant is their own.