public NotificationTO delete(@PathVariable("notificationId") final Long notificationId) {
Notification notification = notificationDAO.find(notificationId);
if (notification == null) {
LOG.error("Could not find notificatin '" + notificationId + "'");
throw new NotFoundException(String.valueOf(notificationId));
}
NotificationTO notificationToDelete = binder.getNotificationTO(notification);
auditManager.audit(Category.notification, NotificationSubCategory.delete, Result.success,