Class EraseOperationAuditLogger
- java.lang.Object
-
- com.ibm.fhir.server.util.RestAuditLogger
-
- com.ibm.fhir.operation.erase.audit.EraseOperationAuditLogger
-
public class EraseOperationAuditLogger extends RestAuditLogger
Generates Audit Log Messages for the Erase Operation
-
-
Constructor Summary
Constructors Constructor Description EraseOperationAuditLogger(FHIROperationContext operationContext)
Creates an audit logger for Erase Operation
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
audit(Parameters response, EraseDTO eraseDto)
runs the audit over the returned recordsvoid
error(Parameters request, FHIROperationException e, EraseDTO eraseDto)
runs the audit when there is an error in a partial erase.void
logEraseOperation(AuditLogService auditLogSvc, Resource resource, javax.ws.rs.core.Response.Status responseStatus, java.lang.String reason, java.lang.String patient)
Build and Submit an audit log entry for a '$erase' REST service invocation.-
Methods inherited from class com.ibm.fhir.server.util.RestAuditLogger
initLogEntry, logBundle, logConfig, logCreate, logDelete, logHistory, logMetadata, logOperation, logPatch, logRead, logSearch, logUpdate, logValidate, logVersionRead, populateAuditLogEntry
-
-
-
-
Constructor Detail
-
EraseOperationAuditLogger
public EraseOperationAuditLogger(FHIROperationContext operationContext)
Creates an audit logger for Erase Operation- Parameters:
operationContext
-
-
-
Method Detail
-
audit
public void audit(Parameters response, EraseDTO eraseDto) throws FHIROperationException
runs the audit over the returned records- Parameters:
response
-eraseDto
-- Throws:
FHIROperationException
-
error
public void error(Parameters request, FHIROperationException e, EraseDTO eraseDto) throws FHIROperationException
runs the audit when there is an error in a partial erase.- Parameters:
request
-eraseDto
-- Throws:
FHIROperationException
-
logEraseOperation
public void logEraseOperation(AuditLogService auditLogSvc, Resource resource, javax.ws.rs.core.Response.Status responseStatus, java.lang.String reason, java.lang.String patient) throws FHIROperationException
Build and Submit an audit log entry for a '$erase' REST service invocation.- Parameters:
auditLogSvc
-resource
- The Resource object being read.responseStatus
- The response status.reason
- the reasonpatient
- the patient it's related- Throws:
java.lang.Exception
FHIROperationException
-
-