Class FileConfigPager

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

public class FileConfigPager extends Object implements Serializable
Pager class for file crawler configuration management. This class provides pagination functionality for file configuration listings and contains form fields for file crawler configuration parameters.
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 for pagination
      See Also:
    • id

      public String id
      Configuration ID
    • name

      public String name
      Configuration name
    • paths

      public String paths
      File system paths to crawl
    • numOfThread

      public String numOfThread
      Number of threads for crawling
    • intervalTime

      public String intervalTime
      Interval time between crawling operations
    • boost

      public String boost
      Boost value for search ranking
    • available

      public String available
      Availability status of the configuration
    • sortOrder

      public String sortOrder
      Sort order for the configuration
    • createdBy

      public String createdBy
      User who created the configuration
    • createdTime

      public String createdTime
      Creation timestamp of the configuration
    • versionNo

      public String versionNo
      Version number of the configuration
    • description

      public String description
      Description of the configuration
  • Constructor Details

    • FileConfigPager

      public FileConfigPager()
      Default constructor for file configuration pager. Creates a new instance with default values.
  • Method Details

    • clear

      public void clear()
      Clears all pagination and configuration data, resetting to default values.
    • 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 the flag indicating if 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 the flag indicating if 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 page size is not set or is 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 current page number is not set or is 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 pagination display.
      Returns:
      the list of page numbers
    • setPageNumberList

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

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