Package com.ibm.fhir.smart
Class AuthzPolicyEnforcementPersistenceInterceptor
- java.lang.Object
-
- com.ibm.fhir.smart.AuthzPolicyEnforcementPersistenceInterceptor
-
- All Implemented Interfaces:
FHIRPersistenceInterceptor
public class AuthzPolicyEnforcementPersistenceInterceptor extends Object implements FHIRPersistenceInterceptor
-
-
Constructor Summary
Constructors Constructor Description AuthzPolicyEnforcementPersistenceInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterHistory(FHIRPersistenceEvent event)This method is called during the processing of a 'history' REST API invocation, immediately after the resource's history has been read by the persistence layer.voidafterRead(FHIRPersistenceEvent event)This method is called during the processing of a 'read' REST API invocation, immediately after the resource has been read by the persistence layer.voidafterSearch(FHIRPersistenceEvent event)This method is called during the processing of a 'search' REST API invocation, immediately after the search has been performed by the persistence layer.voidafterVread(FHIRPersistenceEvent event)This method is called during the processing of a 'vread' REST API invocation, immediately after the resource has been read by the persistence layer.voidbeforeCreate(FHIRPersistenceEvent event)This method is called during the processing of a 'create' REST API invocation, immediately before the new resource is stored by the persistence layer.voidbeforeDelete(FHIRPersistenceEvent event)This method is called during the processing of a 'delete' REST API invocation, immediately before the resource is deleted by the persistence layer.voidbeforeHistory(FHIRPersistenceEvent event)This method is called during the processing of a 'history' REST API invocation, immediately before the resource's history is read by the persistence layer.voidbeforeRead(FHIRPersistenceEvent event)This method is called during the processing of a 'read' REST API invocation, immediately before the resource is read by the persistence layer.voidbeforeSearch(FHIRPersistenceEvent event)This method ensures the search is either for a resource type that is not a member of the patient compartment, or is a valid patient-compartment resource search that is scoped to the patient context from the access token.voidbeforeUpdate(FHIRPersistenceEvent event)This method is called during the processing of an 'update' REST API invocation, immediately before the updated resource is stored by the persistence layer.voidbeforeVread(FHIRPersistenceEvent event)This method is called during the processing of a 'vread' (versioned read) REST API invocation, immediately before the resource is read by the persistence layer.-
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.ibm.fhir.persistence.interceptor.FHIRPersistenceInterceptor
afterCreate, afterDelete, afterPatch, afterUpdate, beforePatch
-
-
-
-
Method Detail
-
beforeRead
public void beforeRead(FHIRPersistenceEvent event) throws FHIRPersistenceInterceptorException
Description copied from interface:FHIRPersistenceInterceptorThis method is called during the processing of a 'read' REST API invocation, immediately before the resource is read by the persistence layer.- Specified by:
beforeReadin interfaceFHIRPersistenceInterceptor- Parameters:
event- information about the 'read' event- Throws:
FHIRPersistenceInterceptorException
-
beforeVread
public void beforeVread(FHIRPersistenceEvent event) throws FHIRPersistenceInterceptorException
Description copied from interface:FHIRPersistenceInterceptorThis method is called during the processing of a 'vread' (versioned read) REST API invocation, immediately before the resource is read by the persistence layer.- Specified by:
beforeVreadin interfaceFHIRPersistenceInterceptor- Parameters:
event- information about the 'vread' event- Throws:
FHIRPersistenceInterceptorException
-
beforeHistory
public void beforeHistory(FHIRPersistenceEvent event) throws FHIRPersistenceInterceptorException
Description copied from interface:FHIRPersistenceInterceptorThis method is called during the processing of a 'history' REST API invocation, immediately before the resource's history is read by the persistence layer.- Specified by:
beforeHistoryin interfaceFHIRPersistenceInterceptor- Parameters:
event- information about the 'history' event- Throws:
FHIRPersistenceInterceptorException
-
beforeSearch
public void beforeSearch(FHIRPersistenceEvent event) throws FHIRPersistenceInterceptorException
This method ensures the search is either for a resource type that is not a member of the patient compartment, or is a valid patient-compartment resource search that is scoped to the patient context from the access token.- Specified by:
beforeSearchin interfaceFHIRPersistenceInterceptor- Parameters:
event- information about the 'search' event- Throws:
FHIRPersistenceInterceptorException
-
beforeCreate
public void beforeCreate(FHIRPersistenceEvent event) throws FHIRPersistenceInterceptorException
Description copied from interface:FHIRPersistenceInterceptorThis method is called during the processing of a 'create' REST API invocation, immediately before the new resource is stored by the persistence layer.- Specified by:
beforeCreatein interfaceFHIRPersistenceInterceptor- Parameters:
event- information about the 'create' event- Throws:
FHIRPersistenceInterceptorException
-
beforeDelete
public void beforeDelete(FHIRPersistenceEvent event) throws FHIRPersistenceInterceptorException
Description copied from interface:FHIRPersistenceInterceptorThis method is called during the processing of a 'delete' REST API invocation, immediately before the resource is deleted by the persistence layer.- Specified by:
beforeDeletein interfaceFHIRPersistenceInterceptor- Parameters:
event- information about the 'delete' event- Throws:
FHIRPersistenceInterceptorException
-
beforeUpdate
public void beforeUpdate(FHIRPersistenceEvent event) throws FHIRPersistenceInterceptorException
Description copied from interface:FHIRPersistenceInterceptorThis method is called during the processing of an 'update' REST API invocation, immediately before the updated resource is stored by the persistence layer.- Specified by:
beforeUpdatein interfaceFHIRPersistenceInterceptor- Parameters:
event- information about the 'update' event- Throws:
FHIRPersistenceInterceptorException
-
afterRead
public void afterRead(FHIRPersistenceEvent event) throws FHIRPersistenceInterceptorException
Description copied from interface:FHIRPersistenceInterceptorThis method is called during the processing of a 'read' REST API invocation, immediately after the resource has been read by the persistence layer.- Specified by:
afterReadin interfaceFHIRPersistenceInterceptor- Parameters:
event- information about the 'read' event- Throws:
FHIRPersistenceInterceptorException
-
afterVread
public void afterVread(FHIRPersistenceEvent event) throws FHIRPersistenceInterceptorException
Description copied from interface:FHIRPersistenceInterceptorThis method is called during the processing of a 'vread' REST API invocation, immediately after the resource has been read by the persistence layer.- Specified by:
afterVreadin interfaceFHIRPersistenceInterceptor- Parameters:
event- information about the 'vread' event- Throws:
FHIRPersistenceInterceptorException
-
afterHistory
public void afterHistory(FHIRPersistenceEvent event) throws FHIRPersistenceInterceptorException
Description copied from interface:FHIRPersistenceInterceptorThis method is called during the processing of a 'history' REST API invocation, immediately after the resource's history has been read by the persistence layer.- Specified by:
afterHistoryin interfaceFHIRPersistenceInterceptor- Parameters:
event- information about the 'history' event- Throws:
FHIRPersistenceInterceptorException
-
afterSearch
public void afterSearch(FHIRPersistenceEvent event) throws FHIRPersistenceInterceptorException
Description copied from interface:FHIRPersistenceInterceptorThis method is called during the processing of a 'search' REST API invocation, immediately after the search has been performed by the persistence layer.- Specified by:
afterSearchin interfaceFHIRPersistenceInterceptor- Parameters:
event- information about the 'search' event- Throws:
FHIRPersistenceInterceptorException
-
-