Class OffsetBasedPagination

java.lang.Object
fr.gouv.vitam.ihmdemo.common.pagination.OffsetBasedPagination

public class OffsetBasedPagination extends Object
Offset-based pagination using HTTP Headers
  • Field Details

  • Constructor Details

    • OffsetBasedPagination

      public OffsetBasedPagination()
      Empty Pagination Constructor
    • OffsetBasedPagination

      public OffsetBasedPagination(javax.servlet.http.HttpServletRequest request) throws VitamException
      Parameters:
      request -
      Throws:
      VitamException
    • OffsetBasedPagination

      public OffsetBasedPagination(int offset, int limit)
      Parameters:
      offset -
      limit -
    • OffsetBasedPagination

      public OffsetBasedPagination(int offset, int limit, int total)
      Parameters:
      offset -
      limit -
      total -
  • Method Details

    • getOffset

      public int getOffset()
      Returns:
      the offset
    • setOffset

      public OffsetBasedPagination setOffset(int offset)
      Parameters:
      offset - the offset to set
      Returns:
      this
    • getLimit

      public int getLimit()
      Returns:
      the limit
    • setLimit

      public OffsetBasedPagination setLimit(int limit)
      Parameters:
      limit - the limit to set
      Returns:
      this
    • getTotal

      public int getTotal()
      Returns:
      the total
    • setTotal

      public OffsetBasedPagination setTotal(int total)
      Parameters:
      total - the total to set
      Returns:
      this