public class BundleProviderWithNamedPages extends SimpleBundleProvider
| Constructor and Description |
|---|
BundleProviderWithNamedPages(List<org.hl7.fhir.instance.model.api.IBaseResource> theResultsInThisPage,
String theSearchId,
String thePageId,
Integer theTotalResults)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCurrentPageId()
If this method is implemented, provides an ID for the current
page of results.
|
String |
getNextPageId()
If this method is implemented, provides an ID for the next
page of results.
|
String |
getPreviousPageId()
If this method is implemented, provides an ID for the previous
page of results.
|
List<org.hl7.fhir.instance.model.api.IBaseResource> |
getResources(int theFromIndex,
int theToIndex)
Load the given collection of resources by index, plus any additional resources per the
server's processing rules (e.g.
|
BundleProviderWithNamedPages |
setCurrentPageId(String theCurrentPageId) |
BundleProviderWithNamedPages |
setNextPageId(String theNextPageId) |
BundleProviderWithNamedPages |
setPreviousPageId(String thePreviousPageId) |
BundleProviderWithNamedPages |
setSize(Integer theSize)
Sets the total number of results, if this provider
corresponds to a single page within a larger search result
|
getList, getPublished, getUuid, preferredPageSize, setPreferredPageSize, setPublished, sizepublic BundleProviderWithNamedPages(List<org.hl7.fhir.instance.model.api.IBaseResource> theResultsInThisPage, String theSearchId, String thePageId, Integer theTotalResults)
theResultsInThisPage - The complete list of results in the current page. Must not be null.theSearchId - The ID for the search. Note that you should also populate setNextPageId(String) and setPreviousPageId(String) if these are known. Must not be null or blank.thePageId - The ID for the current page. Note that you should also populate setNextPageId(String) and setPreviousPageId(String) if these are known. Must not be null or blank.theTotalResults - The total number of result (if this is known), or nullsetNextPageId(String),
setPreviousPageId(String)public String getCurrentPageId()
IBundleProviderIBundleProvider.getUuid())
so that it can be used to look up a specific page of results.
This can be used in order to allow the server paging mechanism to work using completely opaque links (links that do not encode any index/offset information), which can be useful on some servers.
public BundleProviderWithNamedPages setCurrentPageId(String theCurrentPageId)
public String getNextPageId()
IBundleProviderIBundleProvider.getUuid())
so that it can be used to look up a specific page of results.
This can be used in order to allow the server paging mechanism to work using completely opaque links (links that do not encode any index/offset information), which can be useful on some servers.
public BundleProviderWithNamedPages setNextPageId(String theNextPageId)
public String getPreviousPageId()
IBundleProviderIBundleProvider.getUuid())
so that it can be used to look up a specific page of results.
This can be used in order to allow the server paging mechanism to work using completely opaque links (links that do not encode any index/offset information), which can be useful on some servers.
public BundleProviderWithNamedPages setPreviousPageId(String thePreviousPageId)
public List<org.hl7.fhir.instance.model.api.IBaseResource> getResources(int theFromIndex, int theToIndex)
IBundleProvider
Note that if this bundle provider was loaded using a
page ID (i.e. via IPagingProvider.retrieveResultList(String, String)
because IBundleProvider.getNextPageId() provided a value on the
previous page, then the indexes should be ignored and the
whole page returned.
getResources in interface IBundleProvidergetResources in class SimpleBundleProvidertheFromIndex - The low index (inclusive) to returntheToIndex - The high index (exclusive) to returntheToIndex - theFromIndex.public BundleProviderWithNamedPages setSize(Integer theSize)
SimpleBundleProvidersetSize in class SimpleBundleProviderCopyright © 2014–2019 University Health Network. All rights reserved.