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 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.
    • checkViewPermission

      public void checkViewPermission()
      #132: the check of index.jelly, made before its redirect; see ActiveGrantsSection.checkViewPermission().
    • 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