public class ServerOperationInterceptorAdapter extends InterceptorAdapter implements IServerOperationInterceptor
IServerOperationInterceptorIServerInterceptor.ActionRequestDetails| Constructor and Description |
|---|
ServerOperationInterceptorAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
resourceCreated(RequestDetails theRequest,
org.hl7.fhir.instance.model.api.IBaseResource theResource)
This method is called by the server immediately after a resource has
been created, within the database transaction scope of the operation.
|
void |
resourceDeleted(RequestDetails theRequest,
org.hl7.fhir.instance.model.api.IBaseResource theResource)
This method is called by the server immediately after a resource has
been deleted, within the database transaction scope of the operation.
|
void |
resourcePreCreate(RequestDetails theRequest,
org.hl7.fhir.instance.model.api.IBaseResource theResource)
This method is called by the server immediately before a resource is about
to be created, within the database transaction scope of the operation.
|
void |
resourcePreDelete(RequestDetails theRequest,
org.hl7.fhir.instance.model.api.IBaseResource theResource)
This method is called by the server immediately before a resource is about
to be deleted, within the database transaction scope of the operation.
|
void |
resourcePreUpdate(RequestDetails theRequest,
org.hl7.fhir.instance.model.api.IBaseResource theOldResource,
org.hl7.fhir.instance.model.api.IBaseResource theNewResource)
This method is called by the server immediately before a resource is about
to be updated, within the database transaction scope of the operation.
|
void |
resourceUpdated(RequestDetails theRequest,
org.hl7.fhir.instance.model.api.IBaseResource theResource)
Deprecated.
Deprecated in HAPI FHIR 2.6 in favour of
resourceUpdated(RequestDetails, IBaseResource, IBaseResource) |
void |
resourceUpdated(RequestDetails theRequest,
org.hl7.fhir.instance.model.api.IBaseResource theOldResource,
org.hl7.fhir.instance.model.api.IBaseResource theNewResource)
This method is called by the server immediately after a resource has
been created, within the database transaction scope of the operation.
|
handleException, incomingRequestPostProcessed, incomingRequestPreHandled, incomingRequestPreProcessed, outgoingResponse, outgoingResponse, outgoingResponse, outgoingResponse, outgoingResponse, outgoingResponse, outgoingResponse, preProcessOutgoingException, processingCompletedNormallyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandleException, incomingRequestPostProcessed, incomingRequestPreHandled, incomingRequestPreProcessed, outgoingResponse, outgoingResponse, outgoingResponse, outgoingResponse, outgoingResponse, outgoingResponse, outgoingResponse, preProcessOutgoingException, processingCompletedNormallypublic ServerOperationInterceptorAdapter()
public void resourceDeleted(RequestDetails theRequest, org.hl7.fhir.instance.model.api.IBaseResource theResource)
IServerOperationInterceptorIf an exception is thrown by an interceptor during this method, the transaction will be rolled back.
resourceDeleted in interface IServerOperationInterceptorpublic void resourcePreCreate(RequestDetails theRequest, org.hl7.fhir.instance.model.api.IBaseResource theResource)
IServerOperationInterceptorThis method may be used to modify the resource
If an exception is thrown by an interceptor during this method, the transaction will be rolled back.
resourcePreCreate in interface IServerOperationInterceptortheResource - The resource that has been provided by the client as the payload
to create. Interceptors may modify this
resource, and modifications will affect what is saved in the database.public void resourcePreDelete(RequestDetails theRequest, org.hl7.fhir.instance.model.api.IBaseResource theResource)
IServerOperationInterceptorIf an exception is thrown by an interceptor during this method, the transaction will be rolled back.
resourcePreDelete in interface IServerOperationInterceptortheResource - The resource which is about to be deletedpublic void resourcePreUpdate(RequestDetails theRequest, org.hl7.fhir.instance.model.api.IBaseResource theOldResource, org.hl7.fhir.instance.model.api.IBaseResource theNewResource)
IServerOperationInterceptorThis method may be used to modify the resource
If an exception is thrown by an interceptor during this method, the transaction will be rolled back.
resourcePreUpdate in interface IServerOperationInterceptortheOldResource - The previous version of the resource, or null if this is not available. Interceptors should be able to handle situations where this is null, since it is not always
convenient or possible to provide a value for this field, but servers should try to populate it.theNewResource - The resource that has been provided by the client as the payload
to update to the resource to. Interceptors may modify this
resource, and modifications will affect what is saved in the database.public void resourceCreated(RequestDetails theRequest, org.hl7.fhir.instance.model.api.IBaseResource theResource)
IServerOperationInterceptorIf an exception is thrown by an interceptor during this method, the transaction will be rolled back.
resourceCreated in interface IServerOperationInterceptor@Deprecated public void resourceUpdated(RequestDetails theRequest, org.hl7.fhir.instance.model.api.IBaseResource theResource)
resourceUpdated(RequestDetails, IBaseResource, IBaseResource)resourceUpdated in interface IServerOperationInterceptorpublic void resourceUpdated(RequestDetails theRequest, org.hl7.fhir.instance.model.api.IBaseResource theOldResource, org.hl7.fhir.instance.model.api.IBaseResource theNewResource)
IServerOperationInterceptorIf an exception is thrown by an interceptor during this method, the transaction will be rolled back.
resourceUpdated in interface IServerOperationInterceptortheOldResource - The resource as it was before the update, or null if this is not available. Interceptors should be able to handle situations where this is null, since it is not always
convenient or possible to provide a value for this field, but servers should try to populate it.theNewResource - The resource as it will be after the updateCopyright © 2014–2019 University Health Network. All rights reserved.