Class FHIRPersistenceContextImpl
- java.lang.Object
-
- com.ibm.fhir.persistence.context.impl.FHIRPersistenceContextImpl
-
- All Implemented Interfaces:
FHIRPersistenceContext
public class FHIRPersistenceContextImpl extends Object implements FHIRPersistenceContext
This class provides a concrete implementation of the FHIRPersistenceContext interface and is used to pass request context-related information to the persistence layer.
-
-
Constructor Summary
Constructors Constructor Description FHIRPersistenceContextImpl(FHIRPersistenceEvent pe)
FHIRPersistenceContextImpl(FHIRPersistenceEvent pe, boolean includeDeleted)
FHIRPersistenceContextImpl(FHIRPersistenceEvent pe, boolean includeDeleted, FHIRSearchContext sc)
FHIRPersistenceContextImpl(FHIRPersistenceEvent pe, FHIRHistoryContext hc)
FHIRPersistenceContextImpl(FHIRPersistenceEvent pe, FHIRSearchContext sc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FHIRHistoryContext
getHistoryContext()
Returns the FHIRHistoryContext instance associated with the current request.FHIRPersistenceEvent
getPersistenceEvent()
Returns the FHIRPersistenceEvent instance for the current request.FHIRSearchContext
getSearchContext()
Returns the FHIRSearchContext instance associated with the current request.boolean
includeDeleted()
Indicates whether the persistence layer should include "deleted" resources in the operation response.void
setIncludeDeleted(boolean includeDeleted)
-
-
-
Constructor Detail
-
FHIRPersistenceContextImpl
public FHIRPersistenceContextImpl(FHIRPersistenceEvent pe)
-
FHIRPersistenceContextImpl
public FHIRPersistenceContextImpl(FHIRPersistenceEvent pe, boolean includeDeleted)
-
FHIRPersistenceContextImpl
public FHIRPersistenceContextImpl(FHIRPersistenceEvent pe, FHIRHistoryContext hc)
-
FHIRPersistenceContextImpl
public FHIRPersistenceContextImpl(FHIRPersistenceEvent pe, FHIRSearchContext sc)
-
FHIRPersistenceContextImpl
public FHIRPersistenceContextImpl(FHIRPersistenceEvent pe, boolean includeDeleted, FHIRSearchContext sc)
-
-
Method Detail
-
getPersistenceEvent
public FHIRPersistenceEvent getPersistenceEvent()
Description copied from interface:FHIRPersistenceContext
Returns the FHIRPersistenceEvent instance for the current request. This contains information about the security context, HTTP headers, request URI information, etc.- Specified by:
getPersistenceEvent
in interfaceFHIRPersistenceContext
-
getHistoryContext
public FHIRHistoryContext getHistoryContext()
Description copied from interface:FHIRPersistenceContext
Returns the FHIRHistoryContext instance associated with the current request. This will be null if the current request is not a 'history' operation.- Specified by:
getHistoryContext
in interfaceFHIRPersistenceContext
-
getSearchContext
public FHIRSearchContext getSearchContext()
Description copied from interface:FHIRPersistenceContext
Returns the FHIRSearchContext instance associated with the current request. This will be null if the current request is not a 'search' operation.- Specified by:
getSearchContext
in interfaceFHIRPersistenceContext
-
includeDeleted
public boolean includeDeleted()
Description copied from interface:FHIRPersistenceContext
Indicates whether the persistence layer should include "deleted" resources in the operation response.- Specified by:
includeDeleted
in interfaceFHIRPersistenceContext
-
setIncludeDeleted
public void setIncludeDeleted(boolean includeDeleted)
-
-