Class PageRequestSanitiser
- java.lang.Object
-
- com.atlassian.bamboo.rest.model.pagination.PageRequestSanitiser
-
public class PageRequestSanitiser extends Object
We must mandate the maximum allowed number of items to return in any query to prevent putting to much load on the server This class provides utilities for sanitising the urls based on the data being requested.
-
-
Field Summary
Fields Modifier and Type Field Description static PageRequest
DEFAULT_JOB_PAGE_REQUEST
static PageRequest
DEFAULT_STAGE_PAGE_REQUEST
static PageRequest
DEFAULT_TASK_PAGE_REQUEST
static int
JOB_MAX
static int
STAGE_MAX
static int
TASK_MAX
-
Constructor Summary
Constructors Constructor Description PageRequestSanitiser()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PageRequest
forAnything(PageRequest originalRequest)
static PageRequest
forJobs(PageRequest originalRequest)
static PageRequest
forStages(PageRequest originalRequest)
static PageRequest
forTasks(PageRequest originalRequest)
-
-
-
Field Detail
-
TASK_MAX
public static final int TASK_MAX
- See Also:
- Constant Field Values
-
JOB_MAX
public static final int JOB_MAX
- See Also:
- Constant Field Values
-
STAGE_MAX
public static final int STAGE_MAX
- See Also:
- Constant Field Values
-
DEFAULT_TASK_PAGE_REQUEST
public static final PageRequest DEFAULT_TASK_PAGE_REQUEST
-
DEFAULT_JOB_PAGE_REQUEST
public static final PageRequest DEFAULT_JOB_PAGE_REQUEST
-
DEFAULT_STAGE_PAGE_REQUEST
public static final PageRequest DEFAULT_STAGE_PAGE_REQUEST
-
-
Method Detail
-
forAnything
public static PageRequest forAnything(PageRequest originalRequest)
-
forTasks
public static PageRequest forTasks(PageRequest originalRequest)
-
forJobs
public static PageRequest forJobs(PageRequest originalRequest)
-
forStages
public static PageRequest forStages(PageRequest originalRequest)
-
-