Class ReqHeaderPager

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

public class ReqHeaderPager extends Object implements Serializable
Pager class for request header management in the Fess search engine. This class provides pagination functionality for displaying and managing request headers in the administration interface.
See Also:
  • Field Details

    • DEFAULT_PAGE_SIZE

      public static final int DEFAULT_PAGE_SIZE
      Default number of records to display per page.
      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
      The unique identifier of the request header.
    • name

      public String name
      The name of the request header.
    • value

      public String value
      The value of the request header.
    • webConfigId

      public String webConfigId
      The web configuration ID associated with this request header.
    • createdBy

      public String createdBy
      The user who created this request header.
    • createdTime

      public String createdTime
      The timestamp when this request header was created.
    • versionNo

      public String versionNo
      The version number for optimistic locking.
  • Constructor Details

    • ReqHeaderPager

      public ReqHeaderPager()
      Default constructor for ReqHeaderPager. Initializes the pager with default values for page size and current page number.
  • Method Details

    • clear

      public void clear()
      Clears all pager data and resets to default values. This method resets pagination state and clears all request header fields.
    • 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 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
    • getDefaultPageSize

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