Class LogsSearchRequest

java.lang.Object
tech.ailef.dbadmin.external.dto.LogsSearchRequest
All Implemented Interfaces:
FilterRequest

public class LogsSearchRequest extends Object implements FilterRequest
A client request for the Action logs page where several filtering parameters are present
  • Constructor Details

    • LogsSearchRequest

      public LogsSearchRequest()
  • Method Details

    • getTable

      public String 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

      public void setTable(String table)
    • getActionType

      public String 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

      public void setActionType(String actionType)
    • getItemId

      public String 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

      public void setItemId(String itemId)
    • 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

      public String getSortKey()
      Returns the requested sort key, possibly null
      Returns:
    • setSortKey

      public void setSortKey(String sortKey)
    • getSortOrder

      public String getSortOrder()
      Returns the requested sort order, possibly null
    • setSortOrder

      public void setSortOrder(String sortOrder)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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

      public org.springframework.util.MultiValueMap<String,String> computeParams()
      Description copied from interface: FilterRequest
      Converts the request to a MultiValue map that can be later converted into a query string
      Specified by:
      computeParams in interface FilterRequest
      Returns: