
Package ca.uhn.fhir.jpa.provider.merge
Class ResourceUndoMergeService
java.lang.Object
ca.uhn.fhir.jpa.provider.merge.ResourceUndoMergeService
This service implements the $hapi.fhir.undo-merge operation.
It reverts the changes made by a previous $merge operation based on the Provenance resource
that was created as part of the $merge operation.
Current limitations:
- It fails if any resources to be restored have been subsequently changed since the `$merge` 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
ConstructorsConstructorDescriptionResourceUndoMergeService
(DaoRegistry theDaoRegistry, MergeProvenanceSvc theMergeProvenanceSvc, PreviousResourceVersionRestorer theResourceVersionRestorer, MergeValidationService theMergeValidationService, IRequestPartitionHelperSvc theRequestPartitionHelperSvc) -
Method Summary
Modifier and TypeMethodDescriptionundoMerge
(UndoMergeOperationInputParameters inputParameters, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails)
-
Constructor Details
-
ResourceUndoMergeService
public ResourceUndoMergeService(DaoRegistry theDaoRegistry, MergeProvenanceSvc theMergeProvenanceSvc, PreviousResourceVersionRestorer theResourceVersionRestorer, MergeValidationService theMergeValidationService, IRequestPartitionHelperSvc theRequestPartitionHelperSvc)
-
-
Method Details
-
undoMerge
public OperationOutcomeWithStatusCode undoMerge(UndoMergeOperationInputParameters inputParameters, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails)
-