@Override public void addNote(Run run, Note note) throws IOException { Run managed = runDao.get(run.getId()); authorizationManager.throwIfNotWritable(managed); note.setCreationDate(new Date()); note.setOwner(authorizationManager.getCurrentUser()); managed.addNote(note); managed.setLastModifier(authorizationManager.getCurrentUser()); runDao.save(managed); }
target.setLastModifier(user); boolean isMutated = false; isMutated |= updateMetricsFromNotification(source, target);