Class SearchRequest<S extends SearchCriteria>
- java.lang.Object
-
- com.inteliqua.rest.common.criteria.SearchRequest<S>
-
- Type Parameters:
S- The type of the search criteria, which extendsSearchCriteria.
public class SearchRequest<S extends SearchCriteria> extends Object
Represents a search request payload containing criteria, pagination, and sorting parameters.This class encapsulates the search request parameters, including a list of search criteria, pagination details, and optional sorting parameters. It is used to structure search requests made to the API.
The search criteria are defined by classes that implement the
SearchCriteriainterface. Pagination is controlled through thePaginationParamsobject, and sorting is managed through theSortingParamsobject.- Author:
- nikritikos
-
-
Constructor Summary
Constructors Constructor Description SearchRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<S>getCriteriaList()Gets the list of search criteria.PaginationParamsgetPagination()Gets the pagination parameters.SortingParamsgetSorting()Gets the sorting parameters.voidsetCriteriaList(List<S> criteriaList)Sets the list of search criteria.voidsetPagination(PaginationParams pagination)Sets the pagination parameters.voidsetSorting(SortingParams sorting)Sets the sorting parameters.
-
-
-
Method Detail
-
getCriteriaList
public List<S> getCriteriaList()
Gets the list of search criteria.- Returns:
- The list of search criteria.
-
setCriteriaList
public void setCriteriaList(List<S> criteriaList)
Sets the list of search criteria.- Parameters:
criteriaList- The list of search criteria to set.
-
getPagination
public PaginationParams getPagination()
Gets the pagination parameters.- Returns:
- The pagination parameters.
-
setPagination
public void setPagination(PaginationParams pagination)
Sets the pagination parameters.- Parameters:
pagination- The pagination parameters to set.
-
getSorting
public SortingParams getSorting()
Gets the sorting parameters.- Returns:
- The sorting parameters, or
nullif not set.
-
setSorting
public void setSorting(SortingParams sorting)
Sets the sorting parameters.- Parameters:
sorting- The sorting parameters to set.
-
-