Package org.codelibs.fess.app.pager
Class CrawlingInfoPager
java.lang.Object
org.codelibs.fess.app.pager.CrawlingInfoPager
- All Implemented Interfaces:
Serializable
Pager implementation for crawling information pagination.
Provides functionality for paginating crawling information results in the admin interface.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionCreation time of the crawling information.static final intDefault current page number (1-based).static final intDefault page size for pagination.Crawling information ID.Session ID for the crawling session. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clears all pagination state and crawling information fields.intGets the total number of pages available.intGets the total number of records across all pages.intGets the current page number (1-based).protected intGets the default current page number.protected intGets the default page size from the Fess configuration.Gets the list of page numbers to display in the pagination component.intGets the number of records to display per page.booleanChecks if a next page exists after the current page.booleanChecks if a previous page exists before the current page.voidsetAllPageCount(int allPageCount) Sets the total number of pages available.voidsetAllRecordCount(int allRecordCount) Sets the total number of records across all pages.voidsetCurrentPageNumber(int currentPageNumber) Sets the current page number (1-based).voidsetExistNextPage(boolean existNextPage) Sets whether a next page exists after the current page.voidsetExistPrePage(boolean existPrePage) Sets whether a previous page exists before the current page.voidsetPageNumberList(List<Integer> pageNumberList) Sets the list of page numbers to display in the pagination component.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 (1-based).- See Also:
-
id
Crawling information ID. -
sessionId
Session ID for the crawling session. -
createdTime
Creation time of the crawling information.
-
-
Constructor Details
-
CrawlingInfoPager
public CrawlingInfoPager()Creates a new pager instance with default settings.
-
-
Method Details
-
clear
public void clear()Clears all pagination state and crawling information fields. Resets all counts, page flags, and crawling-specific fields to their default values. -
getDefaultCurrentPageNumber
protected int getDefaultCurrentPageNumber()Gets 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 to set
-
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 to set
-
isExistPrePage
public boolean isExistPrePage()Checks if a previous page exists before the current page.- Returns:
- true if a previous page exists, false otherwise
-
setExistPrePage
public void setExistPrePage(boolean existPrePage) Sets whether a previous page exists before the current page.- Parameters:
existPrePage- true if a previous page exists, false otherwise
-
isExistNextPage
public boolean isExistNextPage()Checks if a next page exists after the current page.- Returns:
- true if a next page exists, false otherwise
-
setExistNextPage
public void setExistNextPage(boolean existNextPage) Sets whether a next page exists after the current page.- Parameters:
existNextPage- true if a next page exists, 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 (≤0), 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 (1-based). If the current page number is not set or is invalid (≤0), returns the default page number.- Returns:
- the current page number
-
setCurrentPageNumber
public void setCurrentPageNumber(int currentPageNumber) Sets the current page number (1-based).- Parameters:
currentPageNumber- the current page number to set
-
getPageNumberList
Gets the list of page numbers to display in the pagination component.- Returns:
- the list of page numbers, or null if not set
-
setPageNumberList
Sets the list of page numbers to display in the pagination component.- Parameters:
pageNumberList- the list of page numbers to set
-
getDefaultPageSize
protected int getDefaultPageSize()Gets the default page size from the Fess configuration.- Returns:
- the default page size configured in the system
-