5253545556575859606162
// Deactivate ourselves. bill.setActive(false); storage.set(bill); if (wasRestored) { ChangeLogger.record(storage.key(bill), storage); } else { bill.setPublishDate(null); // un publish. ChangeLogger.delete(storage.key(bill), storage); }
5657585960616263646566
if (wasRestored) { ChangeLogger.record(storage.key(bill), storage); } else { bill.setPublishDate(null); // un publish. ChangeLogger.delete(storage.key(bill), storage); } storage.flush(); // push changes to lucene and varnish