Class SearchRequest<FilterType>

java.lang.Object
org.chenile.query.model.SearchRequest<FilterType>

public class SearchRequest<FilterType> extends Object
  • Field Details

    • numRowsInPage

      int numRowsInPage
    • pageNum

      int pageNum
    • sortCriteria

      List<SortCriterion> sortCriteria
    • filters

      FilterType filters
    • systemFilters

      Map<String,Object> systemFilters
    • queryName

      String queryName
    • cannedReportName

      String cannedReportName
    • fields

      List<String> fields
    • toDoList

      boolean toDoList
    • hiddenColumns

      private Set<String> hiddenColumns
      Changed from Collection to Set because the array was adding the old values again while updating. Example: ["id", "tenantId"] if passed twice the hidden columns was` getting stored as ["id", "tenantId", "id", "tenantId"]
    • saveChangesToCannedReport

      private boolean saveChangesToCannedReport
      Be careful when setting this flag to true! If this variable is set to true, then the searchRequest will be saved in the DB as a canned report. If the canned report exists, it is over-written by this flag. (The previous contents of the canned report are not merged. They will be over-written)
    • publishCannedReportToEveryone

      private boolean publishCannedReportToEveryone
    • isOrOperation

      private boolean isOrOperation
      Used for elastic search query request
  • Constructor Details

    • SearchRequest

      public SearchRequest()
  • Method Details

    • isToDoList

      public boolean isToDoList()
    • setToDoList

      public void setToDoList(boolean toDoList)
    • getFields

      public List<String> getFields()
    • setFields

      public void setFields(List<String> fields)
    • getCannedReportName

      public String getCannedReportName()
    • setCannedReportName

      public void setCannedReportName(String cannedReportName)
    • getNumRowsInPage

      public int getNumRowsInPage()
      Returns:
      the numRowsInPage
    • setNumRowsInPage

      public void setNumRowsInPage(int numRowsInPage)
      If incoming value is set to zero from the user, reset it to the default value initialized in the instance variable.
      Parameters:
      numRowsInPage - the numRowsInPage to set
    • getPageNum

      public int getPageNum()
      Returns:
      the pageNum
    • setPageNum

      public void setPageNum(int pageNum)
      Parameters:
      pageNum - the pageNum to set
    • getSortCriteria

      public List<SortCriterion> getSortCriteria()
      Returns:
      the sortCriteria
    • setSortCriteria

      public void setSortCriteria(List<SortCriterion> sortCriteria)
      Parameters:
      sortCriteria - the sortCriteria to set
    • getFilters

      public FilterType getFilters()
      Returns:
      the filters
    • setFilters

      public void setFilters(FilterType filters)
      Parameters:
      filters - the filters to set
    • getSystemFilters

      public Map<String,Object> getSystemFilters()
      Returns:
      the systemFilters
    • setSystemFilters

      public void setSystemFilters(Map<String,Object> systemFilters)
      Parameters:
      systemFilters - the systemFilters to set
    • getQueryName

      public String getQueryName()
      Returns:
      the queryName
    • setQueryName

      public void setQueryName(String queryName)
      Parameters:
      queryName - the queryName to set
    • getHiddenColumns

      public Set<String> getHiddenColumns()
    • setHiddenColumns

      public void setHiddenColumns(Set<String> hiddenColumns)
    • isSaveChangesToCannedReport

      public boolean isSaveChangesToCannedReport()
    • setSaveChangesToCannedReport

      public void setSaveChangesToCannedReport(boolean saveChangesToCannedReport)
    • isPublishCannedReportToEveryone

      public boolean isPublishCannedReportToEveryone()
    • setPublishCannedReportToEveryone

      public void setPublishCannedReportToEveryone(boolean publishCannedReportToEveryone)
    • isOrOperation

      public boolean isOrOperation()
    • setOrOperation

      public void setOrOperation(boolean isOrOperation)