Class PageRequestDTO

java.lang.Object
de.aeb.xnsg.foundation.bf.paging.PageRequestDTO

public class PageRequestDTO extends Object
Parameters for query result pagination.

The query results are always limited in order to avoid system and communication overflow.

  • Field Details

    • MIN_OFFSET

      public static final int MIN_OFFSET
      See Also:
    • MAX_OFFSET

      public static final int MAX_OFFSET
      See Also:
    • MIN_LIMIT

      public static final int MIN_LIMIT
      See Also:
    • MAX_LIMIT

      public static final int MAX_LIMIT
      See Also:
    • DEFAULT_LIMIT

      public static final String DEFAULT_LIMIT
      See Also:
    • offset

      @Min(0L) @Max(10000L) @DefaultValue("0") @Nullable @QueryParam("offset") public @Min(0L) @Max(10000L) Integer offset
      The number of elements to be skipped in the ordered result list.
      Minimum: 0
      Maximum: 10000
    • limit

      @Min(1L) @Max(1000L) @DefaultValue("100") @Nullable @QueryParam("limit") public @Min(1L) @Max(1000L) Integer limit
      The maximum number of elements to be returned from the ordered result list.
      Minimum: 1
      Maximum: 1000
    • countAll

      @DefaultValue("false") @Nullable @QueryParam("countAll") public Boolean countAll
      Indicates that the total number of available elements will be calculated and returned in the response.
      See Also:
  • Constructor Details

    • PageRequestDTO

      public PageRequestDTO()
    • PageRequestDTO

      public PageRequestDTO(Integer offset, Integer limit)
    • PageRequestDTO

      public PageRequestDTO(Integer offset, Integer limit, Boolean countAll)