Package com.ibm.fhir.core.context
Interface FHIRPagingContext
-
- All Known Subinterfaces:
FHIRHistoryContext
,FHIRSearchContext
- All Known Implementing Classes:
FHIRHistoryContextImpl
,FHIRPagingContextImpl
,FHIRSearchContextImpl
public interface FHIRPagingContext
The paging context for given request
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getLastPageNumber()
int
getMatchCount()
int
getPageNumber()
int
getPageSize()
Integer
getTotalCount()
boolean
isLenient()
void
setLastPageNumber(int lastPageNumber)
void
setLenient(boolean lenient)
void
setMatchCount(int matchCount)
void
setPageNumber(int pageNumber)
void
setPageSize(int pageSize)
void
setTotalCount(int totalCount)
-
-
-
Method Detail
-
getLastPageNumber
int getLastPageNumber()
- Returns:
- the last page number
-
getPageNumber
int getPageNumber()
- Returns:
- the current page number
-
getPageSize
int getPageSize()
- Returns:
- the number of resources in a single page
- See Also:
- https://www.hl7.org/fhir/r4/search.html#count
-
getTotalCount
Integer getTotalCount()
- Returns:
- the total number of matching resources for the corresponding query, or null if total count is not available
- See Also:
- https://www.hl7.org/fhir/r4/search.html#count
-
getMatchCount
int getMatchCount()
- Returns:
- the number of matching resources returned for the corresponding query
- See Also:
- https://www.hl7.org/fhir/r4/search.html#count
-
setLastPageNumber
void setLastPageNumber(int lastPageNumber)
- Parameters:
lastPageNumber
- the last page of results that can be requested for the corresponding query
-
setPageNumber
void setPageNumber(int pageNumber)
- Parameters:
pageNumber
- the current page number
-
setPageSize
void setPageSize(int pageSize)
- Parameters:
pageSize
- the number of resources to include in a single page- See Also:
- https://www.hl7.org/fhir/r4/search.html#count
-
setTotalCount
void setTotalCount(int totalCount)
- Parameters:
totalCount
- the total number of matching resources for the corresponding query- See Also:
- https://www.hl7.org/fhir/r4/search.html#count
-
setMatchCount
void setMatchCount(int matchCount)
- Parameters:
matchCount
- the number of matching resources returned for the corresponding query- See Also:
- https://www.hl7.org/fhir/r4/search.html#count
-
isLenient
boolean isLenient()
- Returns:
- whether the request should be handled with leniency
-
setLenient
void setLenient(boolean lenient)
- Parameters:
lenient
- whether the request should be handled with leniency
-
-