Class RequestScope

java.lang.Object
io.jenkins.plugins.batchcontrol.ui.RequestScope

@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public final class RequestScope extends Object
D-38b: where BatchControl/Request is checked for a job-specific use (viewing, cancelling or re-designating a run or activation request, requesting an activation or hold): the request's item, so Request assigned on that job or a folder above it counts; Jenkins when the item no longer exists.
  • Method Details

    • of

      public static AccessControlled of(@CheckForNull String itemFullName)
      The item named itemFullName, or Jenkins when it does not exist. The caller then checks the permission on the result as itself.