Class SearchLogPager

java.lang.Object
org.codelibs.fess.app.pager.SearchLogPager
All Implemented Interfaces:
Serializable

public class SearchLogPager extends Object implements 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 Details

    • LOG_TYPE_SEARCH_COUNT_HOUR

      public static final String LOG_TYPE_SEARCH_COUNT_HOUR
      Log type constant for hourly search count aggregation.
      See Also:
    • LOG_TYPE_SEARCH_COUNT_DAY

      public static final String LOG_TYPE_SEARCH_COUNT_DAY
      Log type constant for daily search count aggregation.
      See Also:
    • LOG_TYPE_SEARCH_USER_HOUR

      public static final String LOG_TYPE_SEARCH_USER_HOUR
      Log type constant for hourly unique user aggregation.
      See Also:
    • LOG_TYPE_SEARCH_USER_DAY

      public static final String LOG_TYPE_SEARCH_USER_DAY
      Log type constant for daily unique user aggregation.
      See Also:
    • LOG_TYPE_SEARCH_REQTIMEAVG_HOUR

      public static final String LOG_TYPE_SEARCH_REQTIMEAVG_HOUR
      Log type constant for hourly average request time aggregation.
      See Also:
    • LOG_TYPE_SEARCH_REQTIMEAVG_DAY

      public static final String LOG_TYPE_SEARCH_REQTIMEAVG_DAY
      Log type constant for daily average request time aggregation.
      See Also:
    • LOG_TYPE_SEARCH_KEYWORD

      public static final String LOG_TYPE_SEARCH_KEYWORD
      Log type constant for search keyword aggregation.
      See Also:
    • LOG_TYPE_SEARCH_ZEROHIT

      public static final String LOG_TYPE_SEARCH_ZEROHIT
      Log type constant for zero-hit search aggregation.
      See Also:
    • LOG_TYPE_SEARCH_ZEROCLICK

      public static final String LOG_TYPE_SEARCH_ZEROCLICK
      Log type constant for zero-click search aggregation.
      See Also:
    • LOG_TYPE_CLICK

      public static final String LOG_TYPE_CLICK
      Log type constant for click logs.
      See Also:
    • LOG_TYPE_CLICK_COUNT

      public static final String LOG_TYPE_CLICK_COUNT
      Log type constant for click count aggregation.
      See Also:
    • LOG_TYPE_FAVORITE

      public static final String LOG_TYPE_FAVORITE
      Log type constant for favorite logs.
      See Also:
    • LOG_TYPE_FAVORITE_COUNT

      public static final String LOG_TYPE_FAVORITE_COUNT
      Log type constant for favorite count aggregation.
      See Also:
    • LOG_TYPE_USERINFO

      public static final String LOG_TYPE_USERINFO
      Log type constant for user information logs.
      See Also:
    • DEFAULT_PAGE_SIZE

      public static final int DEFAULT_PAGE_SIZE
      Default page size for pagination.
      See Also:
    • DEFAULT_CURRENT_PAGE_NUMBER

      public static final int DEFAULT_CURRENT_PAGE_NUMBER
      Default current page number for pagination.
      See Also:
    • logType

      public String logType
      Type of log being displayed (default: search).
    • queryId

      public String queryId
      Query ID filter for search logs.
    • userSessionId

      public String userSessionId
      User session ID filter for search logs.
    • requestedTimeRange

      public String requestedTimeRange
      Time range filter for search logs (format: "yyyy-MM-dd HH:mm - yyyy-MM-dd HH:mm").
    • accessType

      public String 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

      public List<Integer> getPageNumberList()
      Gets the list of page numbers for pagination navigation.
      Returns:
      The page number list
    • setPageNumberList

      public void setPageNumberList(List<Integer> pageNumberList)
      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