Class DuplicateHostPager

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

public class DuplicateHostPager extends Object implements Serializable
Pager for duplicate host management with standard paging functionality. This class provides pagination support for duplicate host listings in the admin interface, including navigation controls and search/filter parameters.

Duplicate hosts allow administrators to define hostname patterns that should be treated as equivalent during crawling, helping to avoid duplicate content from the same logical site accessed via different hostnames.

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 (first page).
      See Also:
    • id

      public String id
      Search/filter parameter for duplicate host configuration ID.
    • regularName

      public String regularName
      Search/filter parameter for regular hostname pattern.
    • duplicateHostName

      public String duplicateHostName
      Search/filter parameter for duplicate hostname pattern.
    • sortOrder

      public String sortOrder
      Search/filter parameter for duplicate host sort order.
    • createdBy

      public String createdBy
      Search/filter parameter for duplicate host creator.
    • createdTime

      public String createdTime
      Search/filter parameter for duplicate host creation time.
    • versionNo

      public String versionNo
      Search/filter parameter for duplicate host version number.
  • Constructor Details

    • DuplicateHostPager

      public DuplicateHostPager()
      Creates a new DuplicateHostPager with default values. Initializes pagination settings and clears all search parameters.
  • Method Details

    • clear

      public void clear()
      Clears all paging state and search/filter parameters. Resets the pager to its initial state with default values.
    • getDefaultCurrentPageNumber

      protected int getDefaultCurrentPageNumber()
      Returns 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
    • 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 there is a previous page available.
      Returns:
      true if there is a previous page, false otherwise
    • setExistPrePage

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

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

      public void setExistNextPage(boolean existNextPage)
      Sets whether there is a next page available.
      Parameters:
      existNextPage - true if there is a next page, 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, 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
    • getCurrentPageNumber

      public int getCurrentPageNumber()
      Gets the current page number being displayed. If the current page number is not set or is invalid, returns the default 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
    • 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
    • getDefaultPageSize

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