Class ActiveGrantsSection.Item

java.lang.Object
io.jenkins.plugins.batchcontrol.action.ActiveGrantsSection.Item
Enclosing class:
ActiveGrantsSection

public static final class ActiveGrantsSection.Item extends Object
One active grant; only carries the revoke endpoint.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    doRevoke(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: its index.jelly redirects to the grants index (hosting review: no doIndex).

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • getViewPermissions

      public Permission[] getViewPermissions()
      A GET of /batch-control/grants/active/<grantId>/ has no detail view: its index.jelly redirects to the grants index (hosting review: no doIndex). The only state change in this subtree is the @RequirePOST revoke 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. Manage only (SPEC item 8); a GET never reaches the service because of @RequirePOST.
      Throws:
      IOException