Class SectionTabs
java.lang.Object
io.jenkins.plugins.batchcontrol.ui.SectionTabs
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public final class SectionTabs
extends Object
The tabs of the Batch Control page (hosting review 2026-10-02, PR6): one entry per section the
current user may open, in a fixed order. The same list feeds the tab bar of every Batch Control
screen (
bc:tabs) and the breadcrumb context menu of the root action, so the two can
never disagree. Visibility is exactly SectionAccess's link predicates, which are the
permission sets of the section gates.
Badges count the open items the viewer can act on, from each service's
countPendingFor (the one count the sections also use, read from the open-request
indexes, never from the full history):
- a holder of
BatchControl/Approve: PENDING requests on which they are a designated approver ("awaiting your decision", warning colour); - otherwise: their own PENDING requests ("pending", info colour).
Visibility: requester or
designated approver), so a badge never counts a request the viewer cannot open.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classOne tab: a section of/batch-control/. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe page title of the Changes section, its tab's tooltip. -
Method Summary
Modifier and TypeMethodDescriptionstatic List<SectionTabs.Tab> current()The tabs the current user may open (Jelly reaches it throughBatchControlRootAction#getTabs).
-
Field Details
-
CHANGES_TITLE
The page title of the Changes section, its tab's tooltip.- See Also:
-
-
Method Details
-
current
The tabs the current user may open (Jelly reaches it throughBatchControlRootAction#getTabs).
-