public class SimpleBundleProvider extends Object implements IBundleProvider
| Constructor and Description |
|---|
SimpleBundleProvider()
Create an empty bundle
|
SimpleBundleProvider(IBaseResource theResource) |
SimpleBundleProvider(List<IBaseResource> theList) |
| Modifier and Type | Method and Description |
|---|---|
InstantDt |
getPublished()
Returns the instant as of which this result was valid
|
List<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.
|
String |
getUuid()
Returns the UUID associated with this search.
|
Integer |
preferredPageSize()
Optionally may be used to signal a preferred page size to the server, e.g.
|
Integer |
size()
Returns the total number of results which match the given query (exclusive of any
_include's or OperationOutcome).
|
public SimpleBundleProvider(List<IBaseResource> theList)
public SimpleBundleProvider(IBaseResource theResource)
public SimpleBundleProvider()
public List<IBaseResource> getResources(int theFromIndex, int theToIndex)
IBundleProvidergetResources in interface IBundleProvidertheFromIndex - The low index (inclusive) to returntheToIndex - The high index (exclusive) to returntheToIndex - theFromIndex.public Integer size()
IBundleProvidersize in interface IBundleProviderpublic InstantDt getPublished()
IBundleProvidergetPublished in interface IBundleProviderpublic Integer preferredPageSize()
IBundleProviderpreferredPageSize in interface IBundleProvidernullpublic String getUuid()
IBundleProviderIPagingProvider is being used that requires UUIDs
being returned.
In other words, if you are using the default FifoMemoryPagingProvider in
your server, it is fine for this method to simply return null since FifoMemoryPagingProvider
does not use the value anyhow. On the other hand, if you are creating a custom
[@code IPagingProvider} implementation you might use this method to communicate
the search ID back to the provider.
getUuid in interface IBundleProviderCopyright © 2014–2017 University Health Network. All rights reserved.