use of com.zimbra.cs.store.file.BlobConsistencyChecker.BlobInfo in project zm-mailbox by Zimbra.
the class BlobConsistencyUtil method exportAndDelete.
private void exportAndDelete(SoapProvisioning prov, BlobConsistencyChecker.Results results) throws ServiceException {
System.out.format("Deleting %d items from mailbox %d.\n", results.missingBlobs.size(), results.mboxId);
ExportAndDeleteMailboxSpec mailbox = new ExportAndDeleteMailboxSpec(results.mboxId);
ExportAndDeleteItemsRequest jaxbRequest = new ExportAndDeleteItemsRequest(exportDir, "mbox" + results.mboxId + "_", mailbox);
for (BlobInfo blob : results.missingBlobs.values()) {
mailbox.addItem(ExportAndDeleteItemSpec.createForIdAndVersion(blob.itemId, blob.version));
}
prov.invokeJaxb(jaxbRequest);
}
Aggregations