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 void
addResourceType(java.lang.String resourceType)
Add the resource type to include in the responseInstant
getBefore()
Get the value of the _before parameter, or null if not givenjava.lang.Long
getChangeIdMarker()
Get the value of the _changeIdMarker parameter, or null if not givenjava.lang.Integer
getCount()
Get the value of the _count parameter, or null if not givenHistorySortOrder
getHistorySortOrder()
Get the whole system history sort orderjava.util.List<java.lang.String>
getResourceTypes()
Get the list of resource typesHTTPReturnPreference
getReturnPreference()
Get the return preferenceInstant
getSince()
Get the value of the _since parameter, or null if not givenboolean
isExcludeTransactionTimeoutWindow()
Should we exclude resources that fall inside the server's transaction timeout window?boolean
isLenient()
Get the value of the lenient parametervoid
setBefore(Instant before)
Set the before valuevoid
setChangeIdMarker(long id)
Set the changeIdMarkervoid
setCount(int c)
void
setExcludeTransactionTimeoutWindow(boolean flag)
Set the excludeTransactionTimeoutWindow flagvoid
setHistorySortOrder(HistorySortOrder historySortOrder)
Set the historySortOrdervoid
setLenient(boolean lenient)
void
setReturnPreference(HTTPReturnPreference returnPreference)
Set the returnPreferencevoid
setSince(Instant since)
Set the since valuejava.lang.String
toString()
-
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getSince
public Instant getSince()
Description copied from interface:FHIRSystemHistoryContext
Get the value of the _since parameter, or null if not given- Specified by:
getSince
in 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:FHIRSystemHistoryContext
Get the value of the _before parameter, or null if not given- Specified by:
getBefore
in interfaceFHIRSystemHistoryContext
- Returns:
-
getChangeIdMarker
public java.lang.Long getChangeIdMarker()
Description copied from interface:FHIRSystemHistoryContext
Get the value of the _changeIdMarker parameter, or null if not given- Specified by:
getChangeIdMarker
in 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:FHIRSystemHistoryContext
Get the value of the _count parameter, or null if not given- Specified by:
getCount
in interfaceFHIRSystemHistoryContext
- Returns:
-
setCount
public void setCount(int c)
-
setLenient
public void setLenient(boolean lenient)
- Parameters:
lenient
-
-
isLenient
public boolean isLenient()
Description copied from interface:FHIRSystemHistoryContext
Get the value of the lenient parameter- Specified by:
isLenient
in interfaceFHIRSystemHistoryContext
- Returns:
-
getResourceTypes
public java.util.List<java.lang.String> getResourceTypes()
Description copied from interface:FHIRSystemHistoryContext
Get the list of resource types- Specified by:
getResourceTypes
in 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:FHIRSystemHistoryContext
Should we exclude resources that fall inside the server's transaction timeout window?- Specified by:
isExcludeTransactionTimeoutWindow
in 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:FHIRSystemHistoryContext
Get the whole system history sort order- Specified by:
getHistorySortOrder
in interfaceFHIRSystemHistoryContext
- Returns:
-
getReturnPreference
public HTTPReturnPreference getReturnPreference()
Description copied from interface:FHIRSystemHistoryContext
Get 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:
getReturnPreference
in interfaceFHIRSystemHistoryContext
- Returns:
-
-