
Package ca.uhn.fhir.jpa.search
Class PersistedJpaIdSearchBundleProvider
java.lang.Object
ca.uhn.fhir.jpa.search.PersistedJpaIdSearchBundleProvider
- All Implemented Interfaces:
ca.uhn.fhir.rest.api.server.IBundleProvider
public class PersistedJpaIdSearchBundleProvider
extends Object
implements ca.uhn.fhir.rest.api.server.IBundleProvider
Bundle provider that can search and paginate history entries for specific resource IDs.
-
Constructor Summary
ConstructorsConstructorDescriptionPersistedJpaIdSearchBundleProvider
(String theResourceType, List<String> theResourceIds, RequestPartitionId thePartitionId, Date theRangeStartInclusive, Date theRangeEndInclusive) -
Method Summary
Modifier and TypeMethodDescriptionorg.hl7.fhir.instance.model.api.IPrimitiveType
<Date> List
<org.hl7.fhir.instance.model.api.IBaseResource> getResources
(int theFromIndex, int theToIndex) List
<org.hl7.fhir.instance.model.api.IBaseResource> getResources
(int theFromIndex, int theToIndex, ca.uhn.fhir.rest.server.method.ResponsePage.ResponsePageBuilder theResponsePageBuilder) getUuid()
size()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ca.uhn.fhir.rest.api.server.IBundleProvider
containsAllResources, getAllResourceIds, getAllResources, getCurrentPageId, getCurrentPageOffset, getCurrentPageSize, getNextPageId, getPreviousPageId, getResourceListComplete, isEmpty, sizeOrThrowNpe
-
Constructor Details
-
PersistedJpaIdSearchBundleProvider
public PersistedJpaIdSearchBundleProvider(@Nonnull String theResourceType, @Nonnull List<String> theResourceIds, RequestPartitionId thePartitionId, @Nullable Date theRangeStartInclusive, @Nonnull Date theRangeEndInclusive)
-
-
Method Details
-
getPublished
- Specified by:
getPublished
in interfaceca.uhn.fhir.rest.api.server.IBundleProvider
-
getResources
@Nonnull public List<org.hl7.fhir.instance.model.api.IBaseResource> getResources(int theFromIndex, int theToIndex) - Specified by:
getResources
in interfaceca.uhn.fhir.rest.api.server.IBundleProvider
-
getResources
public List<org.hl7.fhir.instance.model.api.IBaseResource> getResources(int theFromIndex, int theToIndex, @Nonnull ca.uhn.fhir.rest.server.method.ResponsePage.ResponsePageBuilder theResponsePageBuilder) - Specified by:
getResources
in interfaceca.uhn.fhir.rest.api.server.IBundleProvider
-
getUuid
- Specified by:
getUuid
in interfaceca.uhn.fhir.rest.api.server.IBundleProvider
-
preferredPageSize
- Specified by:
preferredPageSize
in interfaceca.uhn.fhir.rest.api.server.IBundleProvider
-
size
- Specified by:
size
in interfaceca.uhn.fhir.rest.api.server.IBundleProvider
-