Class QueryParameters

    • Constructor Detail

      • QueryParameters

        public QueryParameters()
    • Method Detail

      • getCurrentPage

        public Integer getCurrentPage()
      • getPageSize

        public Integer getPageSize()
      • isSkipTotalCount

        public boolean isSkipTotalCount()
      • setCountOnly

        public void setCountOnly()
        Sets current page = 0 and page size = 0, returning no results, but the total count
      • setCurrentPage

        public void setCurrentPage​(Integer currentPage)
      • setPageSize

        public void setPageSize​(Integer pageSize)
      • setSkipTotalCount

        public void setSkipTotalCount​(boolean skipTotalCount)
      • setUnlimited

        public void setUnlimited()
        Sets the current page = 0 and page size = Integer.MAX_VALUE, returning all results. This method is only to be called from service implementations, where really no limit is desired. On client side, use useMaxAllowedPagination(int)
      • useMaxAllowedPagination

        public void useMaxAllowedPagination​(int currentPage)
        This method is to be used on list pages that uses an underlying search operation with a query parameters. The client will get as many results as possible (configured max results), but still allows paging over results, with a given current page.