Package jenkins.widgets
Class HistoryPageFilter<T>
java.lang.Object
jenkins.widgets.HistoryPageFilter<T>
- Type Parameters:
T
- typicallyHistoricalBuild
History page filter.
- Author:
- tom.fennelly@gmail.com
-
Field Summary
Modifier and TypeFieldDescriptionboolean
boolean
long
long
long
final List<HistoryPageEntry<QueueItem>>
final List<HistoryPageEntry<HistoricalBuild>>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add build items to the History page.void
Add run items and queued items to the History page.void
setNewerThan
(Long newerThan) Set the 'newerThan' queue ID.void
setOlderThan
(Long olderThan) Set the 'olderThan' queue ID.void
setSearchString
(String searchString) Set the search string used to narrow the filtered set of builds.int
size()
-
Field Details
-
queueItems
-
runs
-
hasUpPage
public boolean hasUpPage -
hasDownPage
public boolean hasDownPage -
nextBuildNumber
public long nextBuildNumber -
widget
-
newestOnPage
public long newestOnPage -
oldestOnPage
public long oldestOnPage
-
-
Constructor Details
-
HistoryPageFilter
public HistoryPageFilter(int maxEntries) Create a history page filter instance.- Parameters:
maxEntries
- The max number of entries allowed for the page.
-
-
Method Details
-
setNewerThan
Set the 'newerThan' queue ID.- Parameters:
newerThan
- Queue IDs newer/greater than this queue ID take precedence on this page.
-
setOlderThan
Set the 'olderThan' queue ID.- Parameters:
olderThan
- Queue IDs older/less than this queue ID take precedence on this page.
-
setSearchString
Set the search string used to narrow the filtered set of builds.- Parameters:
searchString
- The search string.
-
add
Add build items to the History page.- Parameters:
runItems
- The items to be added. Assumes the items are in descending queue ID order i.e. newest first.- Since:
- 2.17
-
add
Add run items and queued items to the History page.- Parameters:
runItems
- The items to be added. Assumes the items are in descending queue ID order i.e. newest first.queueItems
- The queue items to be added. Queue items do not need to be sorted.- Since:
- 2.17
-
size
public int size()
-