Class RelatedContentPager

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

public class RelatedContentPager extends Object implements Serializable
Pager for related content management that provides pagination functionality for displaying related content items in the admin interface. This class handles pagination state including current page number, page size, total record count, and navigation controls.
See Also:
  • Field Details

    • DEFAULT_CURRENT_PAGE_NUMBER

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

      public String id
      Related content ID for filtering.
    • term

      public String term
      Search term for filtering related content.
    • content

      public String content
      Content text for filtering related content.
    • createdBy

      public String createdBy
      User who created the related content.
    • createdTime

      public String createdTime
      Creation time of the related content.
    • versionNo

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

    • RelatedContentPager

      public RelatedContentPager()
      Default constructor.
  • Method Details

    • clear

      public void clear()
      Clears all pagination state and filter parameters. Resets pagination counters to default values and clears all filter fields.
    • getAllRecordCount

      public int getAllRecordCount()
      Gets the total number of records across all pages.
      Returns:
      total record count
    • setAllRecordCount

      public void setAllRecordCount(int allRecordCount)
      Sets the total number of records across all pages.
      Parameters:
      allRecordCount - total record count
    • getAllPageCount

      public int getAllPageCount()
      Gets the total number of pages calculated from record count and page size.
      Returns:
      total page count
    • setAllPageCount

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

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

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

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

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

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

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

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

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

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

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

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

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