Package org.codelibs.fess.app.pager
Class ReqHeaderPager
java.lang.Object
org.codelibs.fess.app.pager.ReqHeaderPager
- All Implemented Interfaces:
Serializable
Pager class for request header management in the Fess search engine.
This class provides pagination functionality for displaying and managing
request headers in the administration interface.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe user who created this request header.The timestamp when this request header was created.static final intDefault current page number for pagination.static final intDefault number of records to display per page.The unique identifier of the request header.The name of the request header.The value of the request header.The version number for optimistic locking.The web configuration ID associated with this request header. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clears all pager data and resets to default values.intGets the total number of pages available for pagination.intGets the total number of records in the result set.intGets the current page number being displayed.protected intGets the default current page number.protected intGets the default page size from system configuration.Gets the list of page numbers for pagination navigation.intGets the number of records to display per page.booleanChecks if a next page exists for pagination.booleanChecks if a previous page exists for pagination.voidsetAllPageCount(int allPageCount) Sets the total number of pages available for pagination.voidsetAllRecordCount(int allRecordCount) Sets the total number of records in the result set.voidsetCurrentPageNumber(int currentPageNumber) Sets the current page number being displayed.voidsetExistNextPage(boolean existNextPage) Sets the flag indicating whether a next page exists.voidsetExistPrePage(boolean existPrePage) Sets the flag indicating whether a previous page exists.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 number of records to display per page.- See Also:
-
DEFAULT_CURRENT_PAGE_NUMBER
public static final int DEFAULT_CURRENT_PAGE_NUMBERDefault current page number for pagination.- See Also:
-
id
The unique identifier of the request header. -
name
The name of the request header. -
value
The value of the request header. -
webConfigId
The web configuration ID associated with this request header. -
createdBy
The user who created this request header. -
createdTime
The timestamp when this request header was created. -
versionNo
The version number for optimistic locking.
-
-
Constructor Details
-
ReqHeaderPager
public ReqHeaderPager()Default constructor for ReqHeaderPager. Initializes the pager with default values for page size and current page number.
-
-
Method Details
-
clear
public void clear()Clears all pager data and resets to default values. This method resets pagination state and clears all request header fields. -
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 in the result set.- Returns:
- the total record count
-
setAllRecordCount
public void setAllRecordCount(int allRecordCount) Sets the total number of records in the result set.- Parameters:
allRecordCount- the total record count to set
-
getAllPageCount
public int getAllPageCount()Gets the total number of pages available for pagination.- Returns:
- the total page count
-
setAllPageCount
public void setAllPageCount(int allPageCount) Sets the total number of pages available for pagination.- Parameters:
allPageCount- the total page count to set
-
isExistPrePage
public boolean isExistPrePage()Checks if a previous page exists for pagination.- Returns:
- true if a previous page exists, false otherwise
-
setExistPrePage
public void setExistPrePage(boolean existPrePage) Sets the flag indicating whether a previous page exists.- Parameters:
existPrePage- true if a previous page exists, false otherwise
-
isExistNextPage
public boolean isExistNextPage()Checks if a next page exists for pagination.- Returns:
- true if a next page exists, false otherwise
-
setExistNextPage
public void setExistNextPage(boolean existNextPage) Sets the flag indicating whether a next page exists.- Parameters:
existNextPage- true if a next page exists, false otherwise
-
getPageSize
public int getPageSize()Gets the number of records to display per page. If not set or 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 to set
-
getCurrentPageNumber
public int getCurrentPageNumber()Gets the current page number being displayed. If not set or invalid, returns the default current 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 to set
-
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 to set
-
getDefaultPageSize
protected int getDefaultPageSize()Gets the default page size from system configuration.- Returns:
- the default page size
-