Package org.codelibs.fess.app.pager
Class BadWordPager
java.lang.Object
org.codelibs.fess.app.pager.BadWordPager
- All Implemented Interfaces:
Serializable
Pager class for bad word management with pagination support.
Provides pagination functionality for bad word lists.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionCreator username for search filtering.Creation time for search filtering.static final intDefault current page number.static final intDefault page size for bad word pagination.Bad word ID for search filtering.Suggest word 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.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_PAGE_SIZE
public static final int DEFAULT_PAGE_SIZEDefault page size for bad word pagination.- See Also:
-
DEFAULT_CURRENT_PAGE_NUMBER
public static final int DEFAULT_CURRENT_PAGE_NUMBERDefault current page number.- See Also:
-
id
Bad word ID for search filtering. -
suggestWord
Suggest word for search filtering. -
createdBy
Creator username for search filtering. -
createdTime
Creation time for search filtering. -
versionNo
Version number for search filtering.
-
-
Constructor Details
-
BadWordPager
public BadWordPager()Default constructor for BadWordPager.
-
-
Method Details
-
clear
public void clear()Clears all search criteria and resets pagination settings. -
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.- 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.
-
getDefaultPageSize
protected int getDefaultPageSize()Gets the default page size from configuration.- Returns:
- The default page size.
-