798081828384858687
adminNewsHolder.updateSizes(); } private void delete(Set<Integer> deleted) { for(Integer id : deleted) { News n = newsDAO.findById(id); newsDAO.delete(n); } }
86878889909192939495
} } private void markAsDiscarded(Set<Integer> discardedIds) { for(Integer id : discardedIds) { News n = newsDAO.findById(id); n.setAcceptedByAdmin(false); newsDAO.update(n); } }
949596979899100101102103
} } private void markAsAccepted(Set<Integer> acceptedNews) { for(Integer id : acceptedNews) { News n = newsDAO.findById(id); n.setAcceptedByAdmin(true); newsDAO.update(n); } }