Package ca.uhn.fhir.rest.server
Interface IPagingProvider
- All Known Implementing Classes:
BasePagingProvider
,FifoMemoryPagingProvider
public interface IPagingProvider
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
int
if no _count parameter is provided, use this for the page sizeint
if the _count parameter is larger than this value, reduce it to this valueretrieveResultList
(RequestDetails theRequestDetails, String theSearchId) Retrieve a result list by Search IDdefault IBundleProvider
retrieveResultList
(RequestDetails theRequestDetails, String theSearchId, String thePageId) Retrieve a result list by Search ID and Page IDstoreResultList
(RequestDetails theRequestDetails, IBundleProvider theList) Stores a result list and returns an ID with which that list can be returned
-
Method Details
-
getDefaultPageSize
int getDefaultPageSize()if no _count parameter is provided, use this for the page size -
getMaximumPageSize
int getMaximumPageSize()if the _count parameter is larger than this value, reduce it to this value -
canStoreSearchResults
- Returns:
- true if the paging provider is able to store search results.
-
retrieveResultList
IBundleProvider retrieveResultList(@Nullable RequestDetails theRequestDetails, @Nonnull String theSearchId) Retrieve a result list by Search ID- Since:
- 4.0.0 - Note that the
theRequest
parameter was added to this method in HAPI FHIR 4.0.0. Existing implementations may choose to add this parameter and not use it if needed.
-
retrieveResultList
default IBundleProvider retrieveResultList(@Nullable RequestDetails theRequestDetails, @Nonnull String theSearchId, String thePageId) Retrieve a result list by Search ID and Page ID- Since:
- 4.0.0 - Note that the
theRequest
parameter was added to this method in HAPI FHIR 4.0.0. Existing implementations may choose to add this parameter and not use it if needed.
-
storeResultList
Stores a result list and returns an ID with which that list can be returned- Parameters:
theRequestDetails
- The server request being made (may be null)
-