Class FailureUrlPager

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

public class FailureUrlPager extends Object implements Serializable
A pager class for managing pagination of failure URL records. This class provides functionality to handle pagination of failed crawler URLs with search filters and navigation capabilities.
See Also:
  • Field Details

    • url

      public String url
      URL filter for searching failure URLs.
    • errorCountMin

      public String errorCountMin
      Minimum error count filter for searching failure URLs.
    • errorCountMax

      public String errorCountMax
      Maximum error count filter for searching failure URLs.
    • errorName

      public String errorName
      Error name filter for searching failure URLs.
    • DEFAULT_PAGE_SIZE

      public static final int DEFAULT_PAGE_SIZE
      Default number of records per page.
      See Also:
    • DEFAULT_CURRENT_PAGE_NUMBER

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

      public String id
      ID of the failure URL record.
    • threadName

      public String threadName
      Name of the thread that encountered the failure.
    • errorCount

      public String errorCount
      Number of errors encountered for this URL.
    • lastAccessTime

      public String lastAccessTime
      Last time this URL was accessed.
  • Constructor Details

    • FailureUrlPager

      public FailureUrlPager()
      Default constructor.
  • Method Details

    • clear

      public void clear()
      Clears all pager data and resets to default values. This method resets pagination state and search filters.
    • getDefaultCurrentPageNumber

      protected int getDefaultCurrentPageNumber()
      Gets the default current page number.
      Returns:
      the default current page number
    • 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
    • getAllPageCount

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

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

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

      public void setExistPrePage(boolean existPrePage)
      Sets 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.
      Returns:
      true if a next page exists, false otherwise
    • setExistNextPage

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

      public int getPageSize()
      Gets the number of records 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 per page.
      Parameters:
      pageSize - the page size
    • getCurrentPageNumber

      public int getCurrentPageNumber()
      Gets the current page number. 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.
      Parameters:
      currentPageNumber - the current page number
    • getPageNumberList

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

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

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