
Class BalpAuditCaptureInterceptor
java.lang.Object
ca.uhn.fhir.storage.interceptor.balp.BalpAuditCaptureInterceptor
The IHE Basic Audit Logging Pattern (BALP) interceptor can be used to autopmatically generate
AuditEvent resources that are conformant to the BALP profile in response to events in a
FHIR server. See BALP Interceptor
in the HAPI FHIR documentation for more information.
- Since:
- 6.6.0
-
Constructor Summary
ConstructorsConstructorDescriptionBalpAuditCaptureInterceptor(IBalpAuditEventSink theAuditEventSink, IBalpAuditContextServices theContextServices) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidhookStoragePrecommitResourceCreated(org.hl7.fhir.instance.model.api.IBaseResource theResource, ca.uhn.fhir.rest.server.servlet.ServletRequestDetails theRequestDetails) voidhookStoragePrecommitResourceDeleted(org.hl7.fhir.instance.model.api.IBaseResource theResource, ca.uhn.fhir.rest.server.servlet.ServletRequestDetails theRequestDetails) voidhookStoragePrecommitResourceUpdated(org.hl7.fhir.instance.model.api.IBaseResource theOldResource, org.hl7.fhir.instance.model.api.IBaseResource theResource, ca.uhn.fhir.rest.server.servlet.ServletRequestDetails theRequestDetails) voidsetAdditionalPatientCompartmentParamNames(Set<String> theAdditionalPatientCompartmentParamNames) voidsetOmittedSPNamesInPatientCompartment(Set<String> theOmittedSPNamesInPatientCompartment)
-
Constructor Details
-
BalpAuditCaptureInterceptor
public BalpAuditCaptureInterceptor(@Nonnull IBalpAuditEventSink theAuditEventSink, @Nonnull IBalpAuditContextServices theContextServices) Constructor- Parameters:
theAuditEventSink- This service is the target for generated AuditEvent resources. TheBalpAuditCaptureInterceptordoes not actually store AuditEvents, it simply generates them when appropriate and passes them to the sink service. The sink service might store them locally, transmit them to a remote repository, or even simply log them to a syslog.theContextServices- This service supplies details to the BALP about the context of a given request. For example, in order to generate a conformant AuditEvent resource, this interceptor needs to determine the identity of the user and the client from theRequestDetailsobject.
-
-
Method Details
-
setAdditionalPatientCompartmentParamNames
public void setAdditionalPatientCompartmentParamNames(Set<String> theAdditionalPatientCompartmentParamNames) -
setOmittedSPNamesInPatientCompartment
public void setOmittedSPNamesInPatientCompartment(Set<String> theOmittedSPNamesInPatientCompartment) -
getAdditionalPatientCompartmentSPNames
-
getOmittedPatientCompartmentSPNames
-
hookStoragePrecommitResourceCreated
public void hookStoragePrecommitResourceCreated(org.hl7.fhir.instance.model.api.IBaseResource theResource, ca.uhn.fhir.rest.server.servlet.ServletRequestDetails theRequestDetails) -
hookStoragePrecommitResourceDeleted
public void hookStoragePrecommitResourceDeleted(org.hl7.fhir.instance.model.api.IBaseResource theResource, ca.uhn.fhir.rest.server.servlet.ServletRequestDetails theRequestDetails) -
hookStoragePrecommitResourceUpdated
public void hookStoragePrecommitResourceUpdated(org.hl7.fhir.instance.model.api.IBaseResource theOldResource, org.hl7.fhir.instance.model.api.IBaseResource theResource, ca.uhn.fhir.rest.server.servlet.ServletRequestDetails theRequestDetails)
-