Class IncidentsSection
java.lang.Object
io.jenkins.plugins.batchcontrol.action.IncidentsSection
- All Implemented Interfaces:
ModelObject,org.kohsuke.stapler.StaplerProxy
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public class IncidentsSection
extends Object
implements ModelObject, org.kohsuke.stapler.StaplerProxy
The incident list at
/batch-control/incidents/ (SPEC item 11). One month is shown at a
time, selected with ?month=YYYY-MM (default: current month), newest first, pages of
50 (?page=N).
Viewing requires ViewHistory, enforced for the whole subtree by
getTarget(). The list itself is read-only (PUT/DELETE/PATCH are 405); the state-changing
endpoints live on IncidentItem under /batch-control/incidents/<id>/.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreation timestamp of an incident (Jelly helper for the list column).Human-readable timestamp.The complete CSV export of what this screen lists (S-03), relative to this section.getDynamic(String id) Stapler: serves/batch-control/incidents/<id>/;nullrenders a 404, also for every failed lookup (S-39-01,RecordLookup).getMonth()The selected month, from?month=YYYY-MM; current month on absence or garbage.Selected month asYYYY-MM(value of the month input and the query parameter).Next month asYYYY-MM(for the navigation link).intOver-long lines (over 1 MiB) skipped while reading this page (security-11 N-02); the CSV export skips the same lines, so the screen says so rather than look complete.intgetPage()Current 1-based page, from thepagequery parameter (Paging).The incidents shown on the current page, newest first.Previous month asYYYY-MM(for the navigation link).intgetTotal()Matching incidents read (a lower bound whenisTruncated()).Permissions for this screen'sl:layout(the same set its section gate checks).booleanbooleanWhether a next-month link makes sense (no incidents exist in the future).booleanbooleanWhether the per-request record cap stopped the read: ask to narrow the filter.Root-relative build URL for the incident's originating run, or null for plain text (D-44).
-
Field Details
-
PAGE_SIZE
public static final int PAGE_SIZEPage size for the incident list.- See Also:
-
-
Constructor Details
-
IncidentsSection
public IncidentsSection()
-
-
Method Details
-
getTarget
- Specified by:
getTargetin interfaceorg.kohsuke.stapler.StaplerProxy
-
getDisplayName
- Specified by:
getDisplayNamein interfaceModelObject
-
getViewPermissions
Permissions for this screen'sl:layout(the same set its section gate checks). -
getDynamic
Stapler: serves/batch-control/incidents/<id>/;nullrenders a 404, also for every failed lookup (S-39-01,RecordLookup). Every ViewHistory holder, whomgetTarget()has admitted, may see every incident. -
getMonth
The selected month, from?month=YYYY-MM; current month on absence or garbage. -
getMonthValue
Selected month asYYYY-MM(value of the month input and the query parameter). -
getPreviousMonth
Previous month asYYYY-MM(for the navigation link). -
getNextMonth
Next month asYYYY-MM(for the navigation link). -
isHasNextMonth
public boolean isHasNextMonth()Whether a next-month link makes sense (no incidents exist in the future). -
getPage
public int getPage()Current 1-based page, from thepagequery parameter (Paging). -
getPageItems
The incidents shown on the current page, newest first. -
getTotal
public int getTotal()Matching incidents read (a lower bound whenisTruncated()). -
isTruncated
public boolean isTruncated()Whether the per-request record cap stopped the read: ask to narrow the filter. -
getOversized
public int getOversized()Over-long lines (over 1 MiB) skipped while reading this page (security-11 N-02); the CSV export skips the same lines, so the screen says so rather than look complete. -
getCsvUrl
The complete CSV export of what this screen lists (S-03), relative to this section. Pointed to by the truncation notice: the export is not bound by the per-screen record cap. Only ISO dates and constant names go into it, so no encoding is needed. -
isHasPrevious
public boolean isHasPrevious() -
isHasNext
public boolean isHasNext() -
format
Human-readable timestamp. -
runUrl
Root-relative build URL for the incident's originating run, or null for plain text (D-44). -
createdAt
Creation timestamp of an incident (Jelly helper for the list column).
-