Class CrawlingInfoPager

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

public class CrawlingInfoPager extends Object implements Serializable
Pager implementation for crawling information pagination. Provides functionality for paginating crawling information results in the admin interface.
See Also:
  • Field Details

    • DEFAULT_PAGE_SIZE

      public static final int DEFAULT_PAGE_SIZE
      Default page size for pagination.
      See Also:
    • DEFAULT_CURRENT_PAGE_NUMBER

      public static final int DEFAULT_CURRENT_PAGE_NUMBER
      Default current page number (1-based).
      See Also:
    • id

      public String id
      Crawling information ID.
    • sessionId

      public String sessionId
      Session ID for the crawling session.
    • createdTime

      public String createdTime
      Creation time of the crawling information.
  • Constructor Details

    • CrawlingInfoPager

      public CrawlingInfoPager()
      Creates a new pager instance with default settings.
  • Method Details

    • clear

      public void clear()
      Clears all pagination state and crawling information fields. Resets all counts, page flags, and crawling-specific fields to their default values.
    • getDefaultCurrentPageNumber

      protected int getDefaultCurrentPageNumber()
      Gets the default current page number.
      Returns:
      the default current page number (1)
    • getAllRecordCount

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

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

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

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

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

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

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

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

      public int getPageSize()
      Gets the number of records to display per page. If the page size is not set or is invalid (≤0), 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 (1-based). If the current page number is not set or is invalid (≤0), returns the default page number.
      Returns:
      the current page number
    • setCurrentPageNumber

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

      public List<Integer> getPageNumberList()
      Gets the list of page numbers to display in the pagination component.
      Returns:
      the list of page numbers, or null if not set
    • setPageNumberList

      public void setPageNumberList(List<Integer> pageNumberList)
      Sets the list of page numbers to display in the pagination component.
      Parameters:
      pageNumberList - the list of page numbers to set
    • getDefaultPageSize

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