Class GetActionsRequest.Batching
java.lang.Object
com.atlassian.jira.plugin.issuetabpanel.GetActionsRequest.Batching
- Enclosing class:
GetActionsRequest
Limits and filters the actions returned from
IssueTabPanel3.getActions(GetActionsRequest)
.
By default to fetch a batch of actions we need following information:
limit()
- size of the batch, unlessGetActionsRequest.isValidShowAllRequest()
()} is truefromDate()
- date to search from, or null when searching from the oldest/newestfetchMode()
- the direction of search
- Since:
- 9.0
-
Constructor Summary
ConstructorsConstructorDescriptionBatching
(GetActionsRequest.FetchMode fetchMode, Date fromDate, int limit) Batching
(GetActionsRequest.FetchMode fetchMode, Date fromDate, int limit, boolean returnOldest) -
Method Summary
Modifier and TypeMethodDescriptionControls which items shall we fetch.fromDate()
int
limit()
Used by tabs that limit the number of actions to show (e.g.boolean
static GetActionsRequest.Batching
static GetActionsRequest.Batching
searchFromNewest
(int limit) static GetActionsRequest.Batching
static GetActionsRequest.Batching
searchFromOldest
(int limit) static GetActionsRequest.Batching
searchNewerThanDate
(Date date) static GetActionsRequest.Batching
searchNewerThanDate
(Date date, int limit) static GetActionsRequest.Batching
searchOlderThanDate
(Date date) static GetActionsRequest.Batching
searchOlderThanDate
(Date date, int limit)
-
Constructor Details
-
Batching
-
Batching
public Batching(@Nonnull GetActionsRequest.FetchMode fetchMode, @Nullable Date fromDate, int limit, boolean returnOldest)
-
-
Method Details
-
searchFromOldest
-
searchFromOldest
-
searchFromNewest
-
searchFromNewest
-
searchOlderThanDate
-
searchOlderThanDate
-
searchNewerThanDate
-
searchNewerThanDate
-
fetchMode
Controls which items shall we fetch.GetActionsRequest.FetchMode.FROM_OLDEST
- returned oldest actions ordered by datefromDate
in oldest first orderGetActionsRequest.FetchMode.FROM_NEWEST
- returned newest actions ordered by datefromDate
in oldest first orderGetActionsRequest.FetchMode.OLDER_THAN_DATE
- returned actions older than specified date ordered by date in oldest first orderGetActionsRequest.FetchMode.NEWER_THAN_DATE
- returned actions newer than specified date ordered by date in oldest first order
-
fromDate
- Returns:
- Item date to start fetch from.
-
limit
public int limit()Used by tabs that limit the number of actions to show (e.g. comments tab). IfGetActionsRequest.isValidShowAllRequest()
is true, this value must be ignored- Returns:
- how many items should be retrieved at maximum or default when
GetActionsRequest.isValidShowAllRequest()
()} returns true
-
returnOldest
public boolean returnOldest()- Returns:
- flag indicating if the panels are supposed to return oldest entries (this is separate from sorting (
fetchMode()
-