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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidresourceCreated(ca.uhn.fhir.rest.api.server.RequestDetails theRequest, org.hl7.fhir.instance.model.api.IBaseResource theResource) voidresourceUpdated(ca.uhn.fhir.rest.api.server.RequestDetails theRequest, org.hl7.fhir.instance.model.api.IBaseResource theOldResource, org.hl7.fhir.instance.model.api.IBaseResource theNewResource) voidsetDao(IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.Subscription> theDao) Methods inherited from class ca.uhn.fhir.rest.server.interceptor.ServerOperationInterceptorAdapter
resourceDeleted, resourcePreCreate, resourcePreDelete, resourcePreUpdate, resourceUpdatedMethods inherited from class ca.uhn.fhir.rest.server.interceptor.InterceptorAdapter
handleException, incomingRequestPostProcessed, incomingRequestPreHandled, incomingRequestPreProcessed, outgoingResponse, outgoingResponse, outgoingResponse, outgoingResponse, outgoingResponse, outgoingResponse, outgoingResponse, preProcessOutgoingException, processingCompletedNormallyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
resourceCreatedin interfaceca.uhn.fhir.rest.server.interceptor.IServerOperationInterceptor- Overrides:
resourceCreatedin 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:
resourceUpdatedin interfaceca.uhn.fhir.rest.server.interceptor.IServerOperationInterceptor- Overrides:
resourceUpdatedin classca.uhn.fhir.rest.server.interceptor.ServerOperationInterceptorAdapter
-
setDao
-