Package ca.uhn.fhir.jpa.dao.expunge
Class JpaResourceExpungeService
java.lang.Object
ca.uhn.fhir.jpa.dao.expunge.JpaResourceExpungeService
- All Implemented Interfaces:
IResourceExpungeService<JpaPid>
@Service
public class JpaResourceExpungeService
extends Object
implements IResourceExpungeService<JpaPid>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteAllSearchParams
(JpaPid theResourceId) protected void
expungeCurrentVersionOfResource
(ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails, Long theResourceId, AtomicInteger theRemainingCount) void
expungeCurrentVersionOfResources
(ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails, List<JpaPid> theResourceIds, AtomicInteger theRemainingCount) void
expungeHistoricalVersions
(ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails, List<JpaPid> theHistoricalIds, AtomicInteger theRemainingCount) void
expungeHistoricalVersionsOfIds
(ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails, List<JpaPid> theResourceIds, AtomicInteger theRemainingCount) findHistoricalVersionsOfDeletedResources
(String theResourceName, JpaPid theResourceId, int theRemainingCount) findHistoricalVersionsOfNonDeletedResources
(String theResourceName, JpaPid theJpaPid, int theRemainingCount)
-
Constructor Details
-
JpaResourceExpungeService
public JpaResourceExpungeService()
-
-
Method Details
-
findHistoricalVersionsOfNonDeletedResources
@Transactional public List<JpaPid> findHistoricalVersionsOfNonDeletedResources(String theResourceName, JpaPid theJpaPid, int theRemainingCount) - Specified by:
findHistoricalVersionsOfNonDeletedResources
in interfaceIResourceExpungeService<JpaPid>
-
findHistoricalVersionsOfDeletedResources
@Transactional public List<JpaPid> findHistoricalVersionsOfDeletedResources(String theResourceName, JpaPid theResourceId, int theRemainingCount) - Specified by:
findHistoricalVersionsOfDeletedResources
in interfaceIResourceExpungeService<JpaPid>
-
expungeCurrentVersionOfResources
@Transactional public void expungeCurrentVersionOfResources(ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails, List<JpaPid> theResourceIds, AtomicInteger theRemainingCount) - Specified by:
expungeCurrentVersionOfResources
in interfaceIResourceExpungeService<JpaPid>
-
expungeHistoricalVersionsOfIds
@Transactional public void expungeHistoricalVersionsOfIds(ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails, List<JpaPid> theResourceIds, AtomicInteger theRemainingCount) - Specified by:
expungeHistoricalVersionsOfIds
in interfaceIResourceExpungeService<JpaPid>
-
expungeHistoricalVersions
@Transactional public void expungeHistoricalVersions(ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails, List<JpaPid> theHistoricalIds, AtomicInteger theRemainingCount) - Specified by:
expungeHistoricalVersions
in interfaceIResourceExpungeService<JpaPid>
-
expungeCurrentVersionOfResource
protected void expungeCurrentVersionOfResource(ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails, Long theResourceId, AtomicInteger theRemainingCount) -
deleteAllSearchParams
- Specified by:
deleteAllSearchParams
in interfaceIResourceExpungeService<JpaPid>
-