Class FHIRHistoryContextImpl
- java.lang.Object
-
- com.ibm.fhir.core.context.impl.FHIRPagingContextImpl
-
- com.ibm.fhir.persistence.context.impl.FHIRHistoryContextImpl
-
- All Implemented Interfaces:
FHIRPagingContext
,FHIRHistoryContext
public class FHIRHistoryContextImpl extends FHIRPagingContextImpl implements FHIRHistoryContext
-
-
Field Summary
-
Fields inherited from class com.ibm.fhir.core.context.impl.FHIRPagingContextImpl
DEFAULT_LAST_PAGE_NUMBER, DEFAULT_PAGE_NUMBER, DEFAULT_PAGE_SIZE, lastPageNumber, lenient, pageNumber, pageSize, totalCount
-
-
Constructor Summary
Constructors Constructor Description FHIRHistoryContextImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,List<Integer>>
getDeletedResources()
Returns a Map indicating the deletion history of a resource.Instant
getSince()
void
setDeletedResources(Map<String,List<Integer>> deletedResources)
Sets a Map indicating the deletion history of a resource.void
setSince(Instant since)
-
Methods inherited from class com.ibm.fhir.core.context.impl.FHIRPagingContextImpl
getLastPageNumber, getPageNumber, getPageSize, getTotalCount, isLenient, setLastPageNumber, setLenient, setPageNumber, setPageSize, setTotalCount
-
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.ibm.fhir.core.context.FHIRPagingContext
getLastPageNumber, getPageNumber, getPageSize, getTotalCount, isLenient, setLastPageNumber, setLenient, setPageNumber, setPageSize, setTotalCount
-
-
-
-
Method Detail
-
getSince
public Instant getSince()
- Specified by:
getSince
in interfaceFHIRHistoryContext
-
setSince
public void setSince(Instant since)
- Specified by:
setSince
in interfaceFHIRHistoryContext
-
getDeletedResources
public Map<String,List<Integer>> getDeletedResources()
Description copied from interface:FHIRHistoryContext
Returns a Map indicating the deletion history of a resource. The map key is the logical resource id. The value is a List of deleted versions of the resource. Note there can be more than one deleted version, since a deleted resource can be brought back to life by a subsequent update.- Specified by:
getDeletedResources
in interfaceFHIRHistoryContext
- Returns:
- deleted resources Map
-
setDeletedResources
public void setDeletedResources(Map<String,List<Integer>> deletedResources)
Description copied from interface:FHIRHistoryContext
Sets a Map indicating the deletion history of a resource. The map key is the logical resource id. The value is a List of deleted versions of the resource. Note there can be more than one deleted version, since a deleted resource can be brought back to life by a subsequent update.- Specified by:
setDeletedResources
in interfaceFHIRHistoryContext
-
-