Class ActiveGrantsSection.Item
java.lang.Object
io.jenkins.plugins.batchcontrol.action.ActiveGrantsSection.Item
- Enclosing class:
ActiveGrantsSection
One active grant; only carries the revoke endpoint.
-
Method Summary
Modifier and TypeMethodDescriptionvoiddoRevoke(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) POST/batch-control/grants/active/<grantId>/revoke— immediately revokes the grant.A GET of/batch-control/grants/active/<grantId>/has no detail view: itsindex.jellyredirects to the grants index (hosting review: nodoIndex).
-
Method Details
-
getViewPermissions
A GET of/batch-control/grants/active/<grantId>/has no detail view: itsindex.jellyredirects to the grants index (hosting review: nodoIndex). The only state change in this subtree is the@RequirePOSTrevoke endpoint below. -
doRevoke
public void doRevoke(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) throws IOException POST/batch-control/grants/active/<grantId>/revoke— immediately revokes the grant.Manageonly (SPEC item 8); a GET never reaches the service because of@RequirePOST.- Throws:
IOException
-