Package jenkins.widgets
Class HistoryPageFilter<T>
- java.lang.Object
-
- jenkins.widgets.HistoryPageFilter<T>
-
public class HistoryPageFilter<T> extends Object
History page filter.- Author:
- tom.fennelly@gmail.com
-
-
Field Summary
Fields Modifier and Type Field Description boolean
hasDownPage
boolean
hasUpPage
long
newestOnPage
long
nextBuildNumber
long
oldestOnPage
List<HistoryPageEntry<Queue.Item>>
queueItems
List<HistoryPageEntry<Run>>
runs
HistoryWidget
widget
-
Constructor Summary
Constructors Constructor Description HistoryPageFilter(int maxEntries)
Create a history page filter instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(Iterable<T> runItems)
Add build items to the History page.void
add(Iterable<T> runItems, List<Queue.Item> queueItems)
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 Detail
-
queueItems
public final List<HistoryPageEntry<Queue.Item>> queueItems
-
runs
public final List<HistoryPageEntry<Run>> runs
-
hasUpPage
public boolean hasUpPage
-
hasDownPage
public boolean hasDownPage
-
nextBuildNumber
public long nextBuildNumber
-
widget
public HistoryWidget widget
-
newestOnPage
public long newestOnPage
-
oldestOnPage
public long oldestOnPage
-
-
Method Detail
-
setNewerThan
public void setNewerThan(Long newerThan)
Set the 'newerThan' queue ID.- Parameters:
newerThan
- Queue IDs newer/greater than this queue ID take precedence on this page.
-
setOlderThan
public void setOlderThan(Long olderThan)
Set the 'olderThan' queue ID.- Parameters:
olderThan
- Queue IDs older/less than this queue ID take precedence on this page.
-
setSearchString
public void setSearchString(@NonNull String searchString)
Set the search string used to narrow the filtered set of builds.- Parameters:
searchString
- The search string.
-
add
public void add(@NonNull Iterable<T> runItems)
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
public void add(@NonNull Iterable<T> runItems, @NonNull List<Queue.Item> queueItems)
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()
-
-