Package org.codelibs.fess.app.pager
Class SearchLogPager
java.lang.Object
org.codelibs.fess.app.pager.SearchLogPager
- All Implemented Interfaces:
Serializable
Pager class for search log pagination and filtering.
This class provides pagination functionality for various types of search logs
including search logs, click logs, favorite logs, and user information logs.
It also supports different aggregation types for analytics and reporting.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionAccess type filter for search logs (web, json, gsa, admin, other).static final intDefault current page number for pagination.static final intDefault page size for pagination.static final StringLog type constant for click logs.static final StringLog type constant for click count aggregation.static final StringLog type constant for favorite logs.static final StringLog type constant for favorite count aggregation.static final StringLog type constant for search logs.static final StringLog type constant for daily search count aggregation.static final StringLog type constant for hourly search count aggregation.static final StringLog type constant for search keyword aggregation.static final StringLog type constant for daily average request time aggregation.static final StringLog type constant for hourly average request time aggregation.static final StringLog type constant for daily unique user aggregation.static final StringLog type constant for hourly unique user aggregation.static final StringLog type constant for zero-click search aggregation.static final StringLog type constant for zero-hit search aggregation.static final StringLog type constant for user information logs.Type of log being displayed (default: search).Query ID filter for search logs.Time range filter for search logs (format: "yyyy-MM-dd HH:mm - yyyy-MM-dd HH:mm").User session ID filter for search logs. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for creating a new SearchLogPager instance. -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clears all filter criteria and resets pagination to default values.intGets the total number of pages based on record count and page size.intGets the total number of records matching the search criteria.intGets the current page number being displayed.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 number of records to display per page.booleanChecks if a next page exists.booleanChecks if a previous page exists.voidsetAllPageCount(int allPageCount) Sets the total number of pages.voidsetAllRecordCount(int allRecordCount) Sets the total number of records matching the search criteria.voidsetCurrentPageNumber(int currentPageNumber) Sets the current page number.voidsetExistNextPage(boolean existNextPage) Sets whether a next page exists.voidsetExistPrePage(boolean existPrePage) Sets 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
-
LOG_TYPE_SEARCH
Log type constant for search logs.- See Also:
-
LOG_TYPE_SEARCH_COUNT_HOUR
Log type constant for hourly search count aggregation.- See Also:
-
LOG_TYPE_SEARCH_COUNT_DAY
Log type constant for daily search count aggregation.- See Also:
-
LOG_TYPE_SEARCH_USER_HOUR
Log type constant for hourly unique user aggregation.- See Also:
-
LOG_TYPE_SEARCH_USER_DAY
Log type constant for daily unique user aggregation.- See Also:
-
LOG_TYPE_SEARCH_REQTIMEAVG_HOUR
Log type constant for hourly average request time aggregation.- See Also:
-
LOG_TYPE_SEARCH_REQTIMEAVG_DAY
Log type constant for daily average request time aggregation.- See Also:
-
LOG_TYPE_SEARCH_KEYWORD
Log type constant for search keyword aggregation.- See Also:
-
LOG_TYPE_SEARCH_ZEROHIT
Log type constant for zero-hit search aggregation.- See Also:
-
LOG_TYPE_SEARCH_ZEROCLICK
Log type constant for zero-click search aggregation.- See Also:
-
LOG_TYPE_CLICK
Log type constant for click logs.- See Also:
-
LOG_TYPE_CLICK_COUNT
Log type constant for click count aggregation.- See Also:
-
LOG_TYPE_FAVORITE
Log type constant for favorite logs.- See Also:
-
LOG_TYPE_FAVORITE_COUNT
Log type constant for favorite count aggregation.- See Also:
-
LOG_TYPE_USERINFO
Log type constant for user information logs.- See Also:
-
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 for pagination.- See Also:
-
logType
Type of log being displayed (default: search). -
queryId
Query ID filter for search logs. -
userSessionId
User session ID filter for search logs. -
requestedTimeRange
Time range filter for search logs (format: "yyyy-MM-dd HH:mm - yyyy-MM-dd HH:mm"). -
accessType
Access type filter for search logs (web, json, gsa, admin, other).
-
-
Constructor Details
-
SearchLogPager
public SearchLogPager()Default constructor for creating a new SearchLogPager instance.
-
-
Method Details
-
clear
public void clear()Clears all filter criteria and resets pagination to 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 matching the search criteria.- Returns:
- The total record count
-
setAllRecordCount
public void setAllRecordCount(int allRecordCount) Sets the total number of records matching the search criteria.- Parameters:
allRecordCount- The total record count
-
getAllPageCount
public int getAllPageCount()Gets the total number of pages based on record count and page size.- 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 a previous page exists.- Returns:
- true if a previous page exists, false otherwise
-
setExistPrePage
public void setExistPrePage(boolean existPrePage) Sets whether a previous page exists.- Parameters:
existPrePage- true if a previous page exists
-
isExistNextPage
public boolean isExistNextPage()Checks if a next page exists.- Returns:
- true if a next page exists, false otherwise
-
setExistNextPage
public void setExistNextPage(boolean existNextPage) Sets whether a next page exists.- Parameters:
existNextPage- true if a next page exists
-
getPageSize
public int getPageSize()Gets the number of records to display per page.- 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.- 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 page number list
-
setPageNumberList
Sets the list of page numbers for pagination navigation.- Parameters:
pageNumberList- The page number list
-
getDefaultPageSize
protected int getDefaultPageSize()Gets the default page size from configuration.- Returns:
- The default page size
-