Class GrantsSection.Row
java.lang.Object
io.jenkins.plugins.batchcontrol.action.GrantsSection.Row
- Enclosing class:
GrantsSection
One row of the Grants lists: a grant request and, once approved, its permission window
(the window carries the request's id). D-66: every request is listed exactly once — pending,
active (its window is open) or ended (its window ended, or it was never approved) — instead
of a request table that repeated the window tables.
A window whose request is no longer stored is listed on its own, without a detail link.
D-74: a row with a window names the window's item (Grant.getScope()), not the
name the request was made for: an open window follows its item when an administrator (or a
user with their own permissions) renames or moves it, and an ended one keeps the name its
item had when it ended. D-75 (1), security-39 S-39-04: that followed name is shown only to a
viewer who may read the item (getShownScope()).
-
Method Summary
Modifier and TypeMethodDescriptiongetGrant()getId()D-71: the kind of the item the row names (icon and display name), ornull.D-75 (1), security-39 S-39-04: the name the Scope cell shows (tags/scopeItem.jelly): a window's followed name only to a viewer who may read the item now (or an administrator), otherwise the approved name with the fixed "moved" note; unchanged when the name did not change.The request status name, ornullfor a window without a stored request.getUser()The window holder, or the requester before there is a window.booleanisLinked()Whether the row links to a detail page (/batch-control/grants/<id>/).
-
Method Details
-
getId
-
getRequest
-
getGrant
-
isLinked
public boolean isLinked()Whether the row links to a detail page (/batch-control/grants/<id>/). -
getShownScope
D-75 (1), security-39 S-39-04: the name the Scope cell shows (tags/scopeItem.jelly): a window's followed name only to a viewer who may read the item now (or an administrator), otherwise the approved name with the fixed "moved" note; unchanged when the name did not change. The current name itself has no view getter, so the page cannot show it otherwise. -
getItemKind
D-71: the kind of the item the row names (icon and display name), ornull. -
getActions
-
getUser
The window holder, or the requester before there is a window. -
getStatus
The request status name, ornullfor a window without a stored request.
-