Remove dead comments
This commit is contained in:
parent
3068fe8c1a
commit
c8dfd00864
|
@ -81,16 +81,12 @@ public class EmpiPersonDeletingSvc {
|
||||||
ExpungeOptions options = new ExpungeOptions();
|
ExpungeOptions options = new ExpungeOptions();
|
||||||
options.setExpungeDeletedResources(true);
|
options.setExpungeDeletedResources(true);
|
||||||
options.setExpungeOldVersions(true);
|
options.setExpungeOldVersions(true);
|
||||||
//myResourceExpungeService.expungeHistoricalVersionsOfIds(null, theLongs, new AtomicInteger(Integer.MAX_VALUE - 1));
|
theLongs
|
||||||
theLongs.stream()
|
.forEach(personId -> myExpungeService.expunge("Person", personId, null, options, null));
|
||||||
.forEach(personId -> {
|
|
||||||
myExpungeService.expunge("Person", personId, null, options, null);
|
|
||||||
});
|
|
||||||
//myResourceExpungeService.expungeCurrentVersionOfResources(null, theLongs, new AtomicInteger(Integer.MAX_VALUE - 1));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void deleteCascade(Long pid, DeleteConflictList theDeleteConflictList) {
|
private void deleteCascade(Long pid, DeleteConflictList theDeleteConflictList) {
|
||||||
ourLog.debug("About to cascade delete: " + pid);
|
ourLog.debug("About to cascade delete: {}", pid);
|
||||||
IFhirResourceDao resourceDao = myDaoRegistry.getResourceDao("Person");
|
IFhirResourceDao resourceDao = myDaoRegistry.getResourceDao("Person");
|
||||||
resourceDao.delete(new IdType("Person/" + pid), theDeleteConflictList, null, null);
|
resourceDao.delete(new IdType("Person/" + pid), theDeleteConflictList, null, null);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue