Package org.codelibs.fess.app.pager
Class UserPager
java.lang.Object
org.codelibs.fess.app.pager.UserPager
- All Implemented Interfaces:
Serializable
Pager class for handling user list pagination.
This class manages pagination state and user search criteria for the user management interface.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDefault current page number for pagination.static final intDefault page size for user list paginationString[]User groups for search filteringUser ID for search filteringUser name for search filteringString[]User roles for search filteringVersion number for optimistic locking -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clears all pagination state and search criteria.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 navigation.intGets the number of records 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.voidsetCurrentPageNumber(int currentPageNumber) Sets the current page number.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 navigation.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 user list pagination- See Also:
-
DEFAULT_CURRENT_PAGE_NUMBER
public static final int DEFAULT_CURRENT_PAGE_NUMBERDefault current page number for pagination.- See Also:
-
id
User ID for search filtering -
name
User name for search filtering -
roles
User roles for search filtering -
groups
User groups for search filtering -
versionNo
Version number for optimistic locking
-
-
Constructor Details
-
UserPager
public UserPager()Default constructor for UserPager.
-
-
Method Details
-
clear
public void clear()Clears all pagination state and search criteria. Resets the pager to its initial state with 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.- 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 available.- Returns:
- true if previous page exists, false otherwise
-
setExistPrePage
public void setExistPrePage(boolean existPrePage) Sets whether there is a previous page available.- Parameters:
existPrePage- true if previous page exists, false otherwise
-
isExistNextPage
public boolean isExistNextPage()Checks if there is a next page available.- Returns:
- true if next page exists, false otherwise
-
setExistNextPage
public void setExistNextPage(boolean existNextPage) Sets whether there is a next page available.- Parameters:
existNextPage- true if next page exists, false otherwise
-
getPageSize
public int getPageSize()Gets the number of records per page. Returns the default page size if not set or invalid.- 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. Returns the default page number if not set or invalid.- 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 navigation.- Returns:
- the list of page numbers
-
setPageNumberList
Sets the list of page numbers for navigation.- Parameters:
pageNumberList- the list of page numbers
-
getDefaultPageSize
protected int getDefaultPageSize()Gets the default page size from configuration.- Returns:
- the default page size
-