Package tech.ailef.dbadmin.external.dto
Class LogsSearchRequest
java.lang.Object
tech.ailef.dbadmin.external.dto.LogsSearchRequest
- All Implemented Interfaces:
FilterRequest
A client request for the Action logs page where
several filtering parameters are present
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConverts the request to a MultiValue map that can be later converted into a query stringReturns the actionType specified in this search request.Returns the itemId specified in this search request.intgetPage()Returns the requested page numberintReturns the requested number of elements per pageReturns the requested sort key, possibly nullReturns the requested sort order, possibly nullgetTable()Returns the table specified in this search request.voidsetActionType(String actionType) voidvoidsetPage(int page) voidsetPageSize(int pageSize) voidsetSortKey(String sortKey) voidsetSortOrder(String sortOrder) voidorg.springframework.data.domain.PageRequestBuild a Spring PageRequest object from the parameters in this requesttoString()
-
Constructor Details
-
LogsSearchRequest
public LogsSearchRequest()
-
-
Method Details
-
getTable
Returns the table specified in this search request. If the value is blank or 'Any', the method returns null in order ignore the field in subsequent queries.- Returns:
-
setTable
-
getActionType
Returns the actionType specified in this search request. If the value is blank or 'Any', the method returns null in order ignore the field in subsequent queries.- Returns:
-
setActionType
-
getItemId
Returns the itemId specified in this search request. If the value is blank or 'Any', the method returns null in order ignore the field in subsequent queries.- Returns:
-
setItemId
-
getPage
public int getPage()Returns the requested page number- Returns:
-
setPage
public void setPage(int page) -
getPageSize
public int getPageSize()Returns the requested number of elements per page- Returns:
-
setPageSize
public void setPageSize(int pageSize) -
getSortKey
Returns the requested sort key, possibly null- Returns:
-
setSortKey
-
getSortOrder
Returns the requested sort order, possibly null -
setSortOrder
-
toString
-
toPageRequest
public org.springframework.data.domain.PageRequest toPageRequest()Build a Spring PageRequest object from the parameters in this request- Returns:
- a Spring PageRequest object
-
computeParams
Description copied from interface:FilterRequestConverts the request to a MultiValue map that can be later converted into a query string- Specified by:
computeParamsin interfaceFilterRequest- Returns:
-