Package ca.uhn.fhir.jpa.util
Class SubscriptionsRequireManualActivationInterceptorDstu2
java.lang.Object
ca.uhn.fhir.rest.server.interceptor.InterceptorAdapter
ca.uhn.fhir.rest.server.interceptor.ServerOperationInterceptorAdapter
ca.uhn.fhir.jpa.util.SubscriptionsRequireManualActivationInterceptorDstu2
- All Implemented Interfaces:
ca.uhn.fhir.rest.server.interceptor.IServerInterceptor
,ca.uhn.fhir.rest.server.interceptor.IServerOperationInterceptor
public class SubscriptionsRequireManualActivationInterceptorDstu2
extends ca.uhn.fhir.rest.server.interceptor.ServerOperationInterceptorAdapter
Interceptor which requires newly created
subscriptions
to be in
SubscriptionStatusEnum.REQUESTED
state and prevents clients from changing the status.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
resourceCreated
(ca.uhn.fhir.rest.api.server.RequestDetails theRequest, org.hl7.fhir.instance.model.api.IBaseResource theResource) void
resourceUpdated
(ca.uhn.fhir.rest.api.server.RequestDetails theRequest, org.hl7.fhir.instance.model.api.IBaseResource theOldResource, org.hl7.fhir.instance.model.api.IBaseResource theNewResource) void
setDao
(IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.Subscription> theDao) Methods inherited from class ca.uhn.fhir.rest.server.interceptor.ServerOperationInterceptorAdapter
resourceDeleted, resourcePreCreate, resourcePreDelete, resourcePreUpdate, resourceUpdated
Methods inherited from class ca.uhn.fhir.rest.server.interceptor.InterceptorAdapter
handleException, incomingRequestPostProcessed, incomingRequestPreHandled, incomingRequestPreProcessed, outgoingResponse, outgoingResponse, outgoingResponse, outgoingResponse, outgoingResponse, outgoingResponse, outgoingResponse, preProcessOutgoingException, processingCompletedNormally
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ca.uhn.fhir.rest.server.interceptor.IServerInterceptor
handleException, incomingRequestPostProcessed, incomingRequestPreHandled, incomingRequestPreProcessed, outgoingResponse, outgoingResponse, outgoingResponse, outgoingResponse, outgoingResponse, outgoingResponse, outgoingResponse, preProcessOutgoingException, processingCompletedNormally
-
Constructor Details
-
SubscriptionsRequireManualActivationInterceptorDstu2
-
-
Method Details
-
resourceCreated
public void resourceCreated(ca.uhn.fhir.rest.api.server.RequestDetails theRequest, org.hl7.fhir.instance.model.api.IBaseResource theResource) - Specified by:
resourceCreated
in interfaceca.uhn.fhir.rest.server.interceptor.IServerOperationInterceptor
- Overrides:
resourceCreated
in classca.uhn.fhir.rest.server.interceptor.ServerOperationInterceptorAdapter
-
resourceUpdated
public void resourceUpdated(ca.uhn.fhir.rest.api.server.RequestDetails theRequest, org.hl7.fhir.instance.model.api.IBaseResource theOldResource, org.hl7.fhir.instance.model.api.IBaseResource theNewResource) - Specified by:
resourceUpdated
in interfaceca.uhn.fhir.rest.server.interceptor.IServerOperationInterceptor
- Overrides:
resourceUpdated
in classca.uhn.fhir.rest.server.interceptor.ServerOperationInterceptorAdapter
-
setDao
-