Class GuardInfo

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

@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public final class GuardInfo extends Object
What the strategy monitor says about an item in the "changed under a grant" state (D-58a/b): which permission window recorded the change, and after "Mark as reviewed" what still guards the item. Read-only; for the Administer-only monitor pages, reached through BatchControlRootAction (j:invokeStatic cannot load plugin classes).
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    The permission window that recorded a change to an item (or to a folder above it).
    static final class 
    What still guards an item after it was marked as reviewed.
  • Method Summary

    Modifier and Type
    Method
    Description
    changedUnder(String itemFullName)
    The window that recorded a change to the item or a folder above it, or null when the item is not in the "changed under a grant" state or the grant cannot be read.
    reviewed(String itemFullName)
    After "Mark as reviewed" of itemFullName: the outcome, or null when the name does not resolve (as the viewer) or the item is still listed as changed itself, so that a hand-edited query string never produces a confirmation that is not true now.

    Methods inherited from class java.lang.Object

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

    • changedUnder

      @CheckForNull public static GuardInfo.Changed changedUnder(@CheckForNull String itemFullName)
      The window that recorded a change to the item or a folder above it, or null when the item is not in the "changed under a grant" state or the grant cannot be read.
    • reviewed

      @CheckForNull public static GuardInfo.Outcome reviewed(@CheckForNull String itemFullName)
      After "Mark as reviewed" of itemFullName: the outcome, or null when the name does not resolve (as the viewer) or the item is still listed as changed itself, so that a hand-edited query string never produces a confirmation that is not true now.