Package org.codelibs.fess.app.pager
Class DataConfigPager
java.lang.Object
org.codelibs.fess.app.pager.DataConfigPager
- All Implemented Interfaces:
Serializable
Pager for data configuration management with standard paging functionality.
This class provides pagination support for data configuration listings in the admin interface,
including navigation controls and search/filter parameters.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionSearch/filter parameter for data configuration availability status.Search/filter parameter for data configuration boost value.Search/filter parameter for data configuration creator.Search/filter parameter for data configuration creation time.static final intDefault current page number (first page).static final intDefault page size for pagination.Search/filter parameter for data configuration description.Search/filter parameter for data configuration handler name.Search/filter parameter for data configuration ID.Search/filter parameter for data configuration name.Search/filter parameter for data configuration sort order.Search/filter parameter for data configuration 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 data configuration ID. -
name
Search/filter parameter for data configuration name. -
handlerName
Search/filter parameter for data configuration handler name. -
boost
Search/filter parameter for data configuration boost value. -
available
Search/filter parameter for data configuration availability status. -
sortOrder
Search/filter parameter for data configuration sort order. -
createdBy
Search/filter parameter for data configuration creator. -
createdTime
Search/filter parameter for data configuration creation time. -
versionNo
Search/filter parameter for data configuration version number. -
description
Search/filter parameter for data configuration description.
-
-
Constructor Details
-
DataConfigPager
public DataConfigPager()Creates a new DataConfigPager 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
-