Class RelatedQueryPager

java.lang.Object
org.codelibs.fess.app.pager.RelatedQueryPager
All Implemented Interfaces:
Serializable

public class RelatedQueryPager extends Object implements Serializable
Pager class for related query management functionality. Provides pagination support for related query operations including search, display, and navigation through related query results.
See Also:
  • Field Details

    • DEFAULT_CURRENT_PAGE_NUMBER

      public static final int DEFAULT_CURRENT_PAGE_NUMBER
      Default current page number for pagination.
      See Also:
    • id

      public String id
      Unique identifier for the related query.
    • term

      public String term
      Search term for the related query.
    • queries

      public String queries
      Related queries string containing associated search queries.
    • createdBy

      public String createdBy
      User who created the related query entry.
    • createdTime

      public String createdTime
      Timestamp when the related query was created.
    • versionNo

      public String versionNo
      Version number for optimistic locking.
  • Constructor Details

    • RelatedQueryPager

      public RelatedQueryPager()
      Default constructor for RelatedQueryPager. Initializes a new instance with default values for pagination and related query fields.
  • Method Details

    • clear

      public void clear()
      Clears all pager data and resets to default values. Resets pagination state and clears all related query fields.
    • getAllRecordCount

      public int getAllRecordCount()
      Gets the total number of records in the result set.
      Returns:
      the total record count
    • setAllRecordCount

      public void setAllRecordCount(int allRecordCount)
      Sets the total number of records in the result set.
      Parameters:
      allRecordCount - the total record count to set
    • getAllPageCount

      public int getAllPageCount()
      Gets the total number of pages available for pagination.
      Returns:
      the total page count
    • setAllPageCount

      public void setAllPageCount(int allPageCount)
      Sets the total number of pages available for pagination.
      Parameters:
      allPageCount - the total page count to set
    • isExistPrePage

      public boolean isExistPrePage()
      Checks if a previous page exists for pagination.
      Returns:
      true if a previous page exists, false otherwise
    • setExistPrePage

      public void setExistPrePage(boolean existPrePage)
      Sets the flag indicating whether a previous page exists.
      Parameters:
      existPrePage - true if a previous page exists, false otherwise
    • isExistNextPage

      public boolean isExistNextPage()
      Checks if a next page exists for pagination.
      Returns:
      true if a next page exists, false otherwise
    • setExistNextPage

      public void setExistNextPage(boolean existNextPage)
      Sets the flag indicating whether a next page exists.
      Parameters:
      existNextPage - true if a next page exists, false otherwise
    • getPageSize

      public int getPageSize()
      Gets the number of records to display per page. If not set or invalid, returns the default page size.
      Returns:
      the page size
    • setPageSize

      public void setPageSize(int pageSize)
      Sets the number of records to display per page.
      Parameters:
      pageSize - the page size to set
    • getCurrentPageNumber

      public int getCurrentPageNumber()
      Gets the current page number being displayed. If not set or invalid, returns the default current page number.
      Returns:
      the current page number
    • setCurrentPageNumber

      public void setCurrentPageNumber(int currentPageNumber)
      Sets the current page number being displayed.
      Parameters:
      currentPageNumber - the current page number to set
    • getPageNumberList

      public List<Integer> getPageNumberList()
      Gets the list of page numbers for pagination navigation.
      Returns:
      the list of page numbers
    • setPageNumberList

      public void setPageNumberList(List<Integer> pageNumberList)
      Sets the list of page numbers for pagination navigation.
      Parameters:
      pageNumberList - the list of page numbers to set
    • getDefaultCurrentPageNumber

      protected int getDefaultCurrentPageNumber()
      Gets the default current page number from system constants.
      Returns:
      the default current page number
    • getDefaultPageSize

      protected int getDefaultPageSize()
      Gets the default page size from system configuration.
      Returns:
      the default page size