Add removeAll function to DeleteConflictList
This commit is contained in:
parent
46251af81a
commit
ad887428b3
|
@ -127,6 +127,10 @@ public class DeleteConflictList implements Iterable<DeleteConflict> {
|
|||
return myList.size();
|
||||
}
|
||||
|
||||
public void removeAll() {
|
||||
this.removeIf(x -> true);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return myList.toString();
|
||||
|
|
|
@ -95,10 +95,10 @@ public class EmpiPersonDeletingSvc {
|
|||
DeleteConflictList newBatch = new DeleteConflictList();
|
||||
for (DeleteConflict next : theDcl) {
|
||||
IdDt nextSource = next.getSourceId();
|
||||
ourLog.info("Have delete conflict {} - Cascading delete", next);
|
||||
ourLog.info("Have delete conflict {} - Cascading delete", nextSource);
|
||||
theDao.delete(nextSource.toVersionless(), newBatch, null, null);
|
||||
}
|
||||
theDcl.removeIf(x -> true);
|
||||
theDcl.removeAll();
|
||||
theDcl.addAll(newBatch);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue