Class FHIRSystemHistoryContextImpl
- java.lang.Object
-
- org.linuxforhealth.fhir.persistence.context.impl.FHIRSystemHistoryContextImpl
-
- All Implemented Interfaces:
FHIRSystemHistoryContext
public class FHIRSystemHistoryContextImpl extends java.lang.Object implements FHIRSystemHistoryContext
Holds the context for system history requests
-
-
Constructor Summary
Constructors Constructor Description FHIRSystemHistoryContextImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddResourceType(java.lang.String resourceType)Add the resource type to include in the responseInstantgetBefore()Get the value of the _before parameter, or null if not givenjava.lang.LonggetChangeIdMarker()Get the value of the _changeIdMarker parameter, or null if not givenjava.lang.IntegergetCount()Get the value of the _count parameter, or null if not givenHistorySortOrdergetHistorySortOrder()Get the whole system history sort orderjava.util.List<java.lang.String>getResourceTypes()Get the list of resource typesHTTPReturnPreferencegetReturnPreference()Get the return preferenceInstantgetSince()Get the value of the _since parameter, or null if not givenbooleanisExcludeTransactionTimeoutWindow()Should we exclude resources that fall inside the server's transaction timeout window?booleanisLenient()Get the value of the lenient parametervoidsetBefore(Instant before)Set the before valuevoidsetChangeIdMarker(long id)Set the changeIdMarkervoidsetCount(int c)voidsetExcludeTransactionTimeoutWindow(boolean flag)Set the excludeTransactionTimeoutWindow flagvoidsetHistorySortOrder(HistorySortOrder historySortOrder)Set the historySortOrdervoidsetLenient(boolean lenient)voidsetReturnPreference(HTTPReturnPreference returnPreference)Set the returnPreferencevoidsetSince(Instant since)Set the since valuejava.lang.StringtoString()
-
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getSince
public Instant getSince()
Description copied from interface:FHIRSystemHistoryContextGet the value of the _since parameter, or null if not given- Specified by:
getSincein interfaceFHIRSystemHistoryContext- Returns:
-
setSince
public void setSince(Instant since)
Set the since value- Parameters:
since-
-
setBefore
public void setBefore(Instant before)
Set the before value- Parameters:
before-
-
getBefore
public Instant getBefore()
Description copied from interface:FHIRSystemHistoryContextGet the value of the _before parameter, or null if not given- Specified by:
getBeforein interfaceFHIRSystemHistoryContext- Returns:
-
getChangeIdMarker
public java.lang.Long getChangeIdMarker()
Description copied from interface:FHIRSystemHistoryContextGet the value of the _changeIdMarker parameter, or null if not given- Specified by:
getChangeIdMarkerin interfaceFHIRSystemHistoryContext- Returns:
-
setChangeIdMarker
public void setChangeIdMarker(long id)
Set the changeIdMarker- Parameters:
id-
-
addResourceType
public void addResourceType(java.lang.String resourceType)
Add the resource type to include in the response- Parameters:
resourceType-
-
getCount
public java.lang.Integer getCount()
Description copied from interface:FHIRSystemHistoryContextGet the value of the _count parameter, or null if not given- Specified by:
getCountin interfaceFHIRSystemHistoryContext- Returns:
-
setCount
public void setCount(int c)
-
setLenient
public void setLenient(boolean lenient)
- Parameters:
lenient-
-
isLenient
public boolean isLenient()
Description copied from interface:FHIRSystemHistoryContextGet the value of the lenient parameter- Specified by:
isLenientin interfaceFHIRSystemHistoryContext- Returns:
-
getResourceTypes
public java.util.List<java.lang.String> getResourceTypes()
Description copied from interface:FHIRSystemHistoryContextGet the list of resource types- Specified by:
getResourceTypesin interfaceFHIRSystemHistoryContext- Returns:
- an immutable list of resource type names
-
setExcludeTransactionTimeoutWindow
public void setExcludeTransactionTimeoutWindow(boolean flag)
Set the excludeTransactionTimeoutWindow flag- Parameters:
flag-
-
isExcludeTransactionTimeoutWindow
public boolean isExcludeTransactionTimeoutWindow()
Description copied from interface:FHIRSystemHistoryContextShould we exclude resources that fall inside the server's transaction timeout window?- Specified by:
isExcludeTransactionTimeoutWindowin interfaceFHIRSystemHistoryContext- Returns:
-
setHistorySortOrder
public void setHistorySortOrder(HistorySortOrder historySortOrder)
Set the historySortOrder- Parameters:
historySortOrder-
-
setReturnPreference
public void setReturnPreference(HTTPReturnPreference returnPreference)
Set the returnPreference- Parameters:
returnPreference-
-
getHistorySortOrder
public HistorySortOrder getHistorySortOrder()
Description copied from interface:FHIRSystemHistoryContextGet the whole system history sort order- Specified by:
getHistorySortOrderin interfaceFHIRSystemHistoryContext- Returns:
-
getReturnPreference
public HTTPReturnPreference getReturnPreference()
Description copied from interface:FHIRSystemHistoryContextGet the return preferencePrefer: return=minimal response bundle summary without Resources Prefer: return=representation response bundle includes Resources Prefer: return=OperationOutcome 400 Bad Request
- Specified by:
getReturnPreferencein interfaceFHIRSystemHistoryContext- Returns:
-
-