Class JobLogPager

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

public class JobLogPager extends Object implements Serializable
Pager class for managing job log pagination in the admin interface. This class handles pagination functionality for job log listings and provides search criteria for filtering job logs.
See Also:
  • Field Details

    • 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
      See Also:
    • id

      public String id
      Search criteria: job ID
    • jobName

      public String jobName
      Search criteria: job name
    • jobStatus

      public String jobStatus
      Search criteria: job status
    • target

      public String target
      Search criteria: target
    • scriptType

      public String scriptType
      Search criteria: script type
    • startTime

      public String startTime
      Search criteria: start time
  • Constructor Details

    • JobLogPager

      public JobLogPager()
      Default constructor.
  • Method Details

    • clear

      public void clear()
      Clears all pagination data and search criteria.
    • 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 across all pages.
      Returns:
      the total number of records
    • setAllRecordCount

      public void setAllRecordCount(int allRecordCount)
      Sets the total number of records across all pages.
      Parameters:
      allRecordCount - the total number of records
    • getAllPageCount

      public int getAllPageCount()
      Gets the total number of pages.
      Returns:
      the total number of pages
    • setAllPageCount

      public void setAllPageCount(int allPageCount)
      Sets the total number of pages.
      Parameters:
      allPageCount - the total number of pages
    • 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, false otherwise
    • 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, false otherwise
    • getPageSize

      public int getPageSize()
      Gets the number of items per page. If the page size is not set or is zero or negative, returns the default page size.
      Returns:
      the number of items per page
    • setPageSize

      public void setPageSize(int pageSize)
      Sets the number of items per page.
      Parameters:
      pageSize - the number of items per page
    • getCurrentPageNumber

      public int getCurrentPageNumber()
      Gets the current page number. If the current page number is not set or is zero or negative, returns the default current page number.
      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 display. This list is typically used to render pagination controls in the UI.
      Returns:
      the list of page numbers
    • setPageNumberList

      public void setPageNumberList(List<Integer> pageNumberList)
      Sets the list of page numbers for pagination display.
      Parameters:
      pageNumberList - the list of page numbers
    • getDefaultPageSize

      protected int getDefaultPageSize()
      Gets the default page size from configuration.
      Returns:
      the default page size