
Package ca.uhn.fhir.replacereferences
Class UndoReplaceReferencesSvc
java.lang.Object
ca.uhn.fhir.replacereferences.UndoReplaceReferencesSvc
This service is implements the $hapi.fhir.replace-references operation.
It reverts the changes made by $hapi.fhir.replace-references operation based on the Provenance resource
that was created as part of the $hapi.fhir.replace-references operation.
Current limitations:
- It fails if any resources to be restored have been subsequently changed since the `$hapi.fhir.replace-references` operation was performed.
- It can only run synchronously.
- It fails if the number of resources to restore exceeds a specified resource limit
(currently set to same size as getInternalSynchronousSearchSize in JPAStorageSettings by the operation provider).
-
Constructor Summary
ConstructorsConstructorDescriptionUndoReplaceReferencesSvc
(DaoRegistry theDaoRegistry, ReplaceReferencesProvenanceSvc theReplaceReferencesProvenanceSvc, PreviousResourceVersionRestorer theResourceVersionRestorer) -
Method Summary
Modifier and TypeMethodDescriptionorg.hl7.fhir.instance.model.api.IBaseParameters
undoReplaceReferences
(UndoReplaceReferencesRequest theUndoReplaceReferencesRequest, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails)
-
Constructor Details
-
UndoReplaceReferencesSvc
public UndoReplaceReferencesSvc(DaoRegistry theDaoRegistry, ReplaceReferencesProvenanceSvc theReplaceReferencesProvenanceSvc, PreviousResourceVersionRestorer theResourceVersionRestorer)
-
-
Method Details
-
undoReplaceReferences
public org.hl7.fhir.instance.model.api.IBaseParameters undoReplaceReferences(UndoReplaceReferencesRequest theUndoReplaceReferencesRequest, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails)
-