Class UserPager

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

public class UserPager extends Object implements Serializable
Pager class for handling user list pagination. This class manages pagination state and user search criteria for the user management interface.
See Also:
  • Field Details

    • DEFAULT_PAGE_SIZE

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

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

      public String id
      User ID for search filtering
    • name

      public String name
      User name for search filtering
    • roles

      public String[] roles
      User roles for search filtering
    • groups

      public String[] groups
      User groups for search filtering
    • versionNo

      public String versionNo
      Version number for optimistic locking
  • Constructor Details

    • UserPager

      public UserPager()
      Default constructor for UserPager.
  • Method Details

    • clear

      public void clear()
      Clears all pagination state and search criteria. Resets the pager to its initial state with 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.
      Returns:
      the total record count
    • setAllRecordCount

      public void setAllRecordCount(int allRecordCount)
      Sets the total number of records.
      Parameters:
      allRecordCount - the total record count
    • getAllPageCount

      public int getAllPageCount()
      Gets the total number of pages.
      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 there is a previous page available.
      Returns:
      true if previous page exists, false otherwise
    • setExistPrePage

      public void setExistPrePage(boolean existPrePage)
      Sets whether there is a previous page available.
      Parameters:
      existPrePage - true if previous page exists, false otherwise
    • isExistNextPage

      public boolean isExistNextPage()
      Checks if there is a next page available.
      Returns:
      true if next page exists, false otherwise
    • setExistNextPage

      public void setExistNextPage(boolean existNextPage)
      Sets whether there is a next page available.
      Parameters:
      existNextPage - true if next page exists, false otherwise
    • getPageSize

      public int getPageSize()
      Gets the number of records per page. Returns the default page size if not set or invalid.
      Returns:
      the page size
    • setPageSize

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

      public int getCurrentPageNumber()
      Gets the current page number. Returns the default page number if not set or invalid.
      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 navigation.
      Returns:
      the list of page numbers
    • setPageNumberList

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

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