Package org.codelibs.fess.app.pager
Class DuplicateHostPager
java.lang.Object
org.codelibs.fess.app.pager.DuplicateHostPager
- All Implemented Interfaces:
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 Summary
FieldsModifier and TypeFieldDescriptionSearch/filter parameter for duplicate host creator.Search/filter parameter for duplicate host creation time.static final intDefault current page number (first page).static final intDefault page size for pagination.Search/filter parameter for duplicate hostname pattern.Search/filter parameter for duplicate host configuration ID.Search/filter parameter for regular hostname pattern.Search/filter parameter for duplicate host sort order.Search/filter parameter for duplicate host version number. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clears all paging state and search/filter parameters.intGets the total number of pages.intGets the total number of records across all pages.intGets the current page number being displayed.protected intReturns the default current page number.protected intReturns the default page size from the system configuration.Gets the list of page numbers for pagination navigation.intGets the number of records to display per page.booleanChecks if there is a next page available.booleanChecks if there is a previous page available.voidsetAllPageCount(int allPageCount) Sets the total number of pages.voidsetAllRecordCount(int allRecordCount) Sets the total number of records across all pages.voidsetCurrentPageNumber(int currentPageNumber) Sets the current page number being displayed.voidsetExistNextPage(boolean existNextPage) Sets whether there is a next page available.voidsetExistPrePage(boolean existPrePage) Sets whether there is a previous page available.voidsetPageNumberList(List<Integer> pageNumberList) Sets the list of page numbers for pagination navigation.voidsetPageSize(int pageSize) Sets the number of records to display per page.
-
Field Details
-
DEFAULT_PAGE_SIZE
public static final int DEFAULT_PAGE_SIZEDefault page size for pagination.- See Also:
-
DEFAULT_CURRENT_PAGE_NUMBER
public static final int DEFAULT_CURRENT_PAGE_NUMBERDefault current page number (first page).- See Also:
-
id
Search/filter parameter for duplicate host configuration ID. -
regularName
Search/filter parameter for regular hostname pattern. -
duplicateHostName
Search/filter parameter for duplicate hostname pattern. -
sortOrder
Search/filter parameter for duplicate host sort order. -
createdBy
Search/filter parameter for duplicate host creator. -
createdTime
Search/filter parameter for duplicate host creation time. -
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
Gets the list of page numbers for pagination navigation.- Returns:
- the list of page numbers
-
setPageNumberList
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
-