Package org.codelibs.fess.app.pager
Class ElevateWordPager
java.lang.Object
org.codelibs.fess.app.pager.ElevateWordPager
- All Implemented Interfaces:
Serializable
Pagination support class for ElevateWord entities.
Provides pagination functionality and holds search form parameters
for elevate word management in the admin interface.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionSearch parameter: boost valueSearch parameter: created by userSearch parameter: creation timestatic final intDefault current page numberstatic final intDefault page size for paginationSearch parameter: elevate word IDSearch parameter: suggest wordSearch parameter: version number -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clears all pagination data and search parameters.intGets the total number of pages available.intGets the total number of records available.intGets the current page number.protected intGets the default current page number.protected intGets the default page size from the system configuration.Gets the list of page numbers for pagination display.intGets the number of records per page.booleanChecks if a next page exists.booleanChecks if a previous page exists.voidsetAllPageCount(int allPageCount) Sets the total number of pages available.voidsetAllRecordCount(int allRecordCount) Sets the total number of records available.voidsetCurrentPageNumber(int currentPageNumber) Sets the current page number.voidsetExistNextPage(boolean existNextPage) Sets the flag indicating if a next page exists.voidsetExistPrePage(boolean existPrePage) Sets the flag indicating if a previous page exists.voidsetPageNumberList(List<Integer> pageNumberList) Sets the list of page numbers for pagination display.voidsetPageSize(int pageSize) Sets the number of records 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- See Also:
-
id
Search parameter: elevate word ID -
suggestWord
Search parameter: suggest word -
boost
Search parameter: boost value -
createdBy
Search parameter: created by user -
createdTime
Search parameter: creation time -
versionNo
Search parameter: version number
-
-
Constructor Details
-
ElevateWordPager
public ElevateWordPager()Default constructor.
-
-
Method Details
-
clear
public void clear()Clears all pagination data and search parameters. Resets counters, flags, and search form fields to their 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 available.- Returns:
- the total record count
-
setAllRecordCount
public void setAllRecordCount(int allRecordCount) Sets the total number of records available.- Parameters:
allRecordCount- the total record count
-
getAllPageCount
public int getAllPageCount()Gets the total number of pages available.- Returns:
- the total page count
-
setAllPageCount
public void setAllPageCount(int allPageCount) Sets the total number of pages available.- Parameters:
allPageCount- the total page count
-
isExistPrePage
public boolean isExistPrePage()Checks if a previous page exists.- Returns:
- true if previous page exists, false otherwise
-
setExistPrePage
public void setExistPrePage(boolean existPrePage) Sets the flag indicating if a previous page exists.- Parameters:
existPrePage- true if previous page exists, false otherwise
-
isExistNextPage
public boolean isExistNextPage()Checks if a next page exists.- Returns:
- true if next page exists, false otherwise
-
setExistNextPage
public void setExistNextPage(boolean existNextPage) Sets the flag indicating if a next page exists.- Parameters:
existNextPage- true if next page exists, false otherwise
-
getPageSize
public int getPageSize()Gets the number of records per page. If page size is not set or 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 invalid, returns the default 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 display.- Returns:
- the list of page numbers
-
setPageNumberList
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 system configuration.- Returns:
- the default page size
-