Package org.codelibs.fess.app.pager
Class BoostDocPager
java.lang.Object
org.codelibs.fess.app.pager.BoostDocPager
- All Implemented Interfaces:
Serializable
Pager class for boost document management with pagination support.
Provides pagination functionality for boost document rule lists.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionBoost expression for search filtering.Creator username for search filtering.Creation time for search filtering.static final intDefault current page number.Boost document ID for search filtering.Sort order for search filtering.URL expression for search filtering.Version number for search filtering. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clears all search criteria and resets pagination settings.intGets the total number of pages.intGets the total number of records.intGets the current page number.protected intGets the default current page number from constants.protected intGets the default page size from configuration.Gets the list of page numbers for pagination navigation.intGets the page size for pagination.booleanChecks if there is a next page.booleanChecks if there is a previous page.voidsetAllPageCount(int allPageCount) Sets the total number of pages.voidsetAllRecordCount(int allRecordCount) Sets the total number of records.voidsetCurrentPageNumber(int currentPageNumber) Sets the current page number.voidsetExistNextPage(boolean existNextPage) Sets the existence of a next page.voidsetExistPrePage(boolean existPrePage) Sets the existence of a previous page.voidsetPageNumberList(List<Integer> pageNumberList) Sets the list of page numbers for pagination navigation.voidsetPageSize(int pageSize) Sets the page size for pagination.
-
Field Details
-
DEFAULT_CURRENT_PAGE_NUMBER
public static final int DEFAULT_CURRENT_PAGE_NUMBERDefault current page number.- See Also:
-
id
Boost document ID for search filtering. -
urlExpr
URL expression for search filtering. -
boostExpr
Boost expression for search filtering. -
sortOrder
Sort order for search filtering. -
createdBy
Creator username for search filtering. -
createdTime
Creation time for search filtering. -
versionNo
Version number for search filtering.
-
-
Constructor Details
-
BoostDocPager
public BoostDocPager()Default constructor for BoostDocPager.
-
-
Method Details
-
clear
public void clear()Clears all search criteria and resets pagination settings. -
getAllRecordCount
public int getAllRecordCount()Gets the total number of records.- Returns:
- The total record count.
-
setAllRecordCount
public void setAllRecordCount(int allRecordCount) Sets the total number of records.- 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.- Returns:
- True if a previous page exists, false otherwise.
-
setExistPrePage
public void setExistPrePage(boolean existPrePage) Sets the existence of a previous page.- Parameters:
existPrePage- True if a previous page exists.
-
isExistNextPage
public boolean isExistNextPage()Checks if there is a next page.- Returns:
- True if a next page exists, false otherwise.
-
setExistNextPage
public void setExistNextPage(boolean existNextPage) Sets the existence of a next page.- Parameters:
existNextPage- True if a next page exists.
-
getPageSize
public int getPageSize()Gets the page size for pagination.- Returns:
- The page size.
-
setPageSize
public void setPageSize(int pageSize) Sets the page size for pagination.- Parameters:
pageSize- The page size.
-
getCurrentPageNumber
public int getCurrentPageNumber()Gets the 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
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.
-
getDefaultCurrentPageNumber
protected int getDefaultCurrentPageNumber()Gets the default current page number from constants.- Returns:
- The default current page number.
-
getDefaultPageSize
protected int getDefaultPageSize()Gets the default page size from configuration.- Returns:
- The default page size.
-