@Override public void onPublishRelease(GwtConversation conversation, String releaseId) { Project project = conversation.getProject(); Release release = (Release) getDaoService().getEntityById(releaseId); if (!release.isProject(project)) throw new PermissionDeniedException(); release.release(project, conversation.getSession().getUser(), webApplication); }
@Override public void onRequestReleaseIssues(GwtConversation conversation, String releaseId) { assertProjectSelected(conversation); Project project = conversation.getProject(); Release release = releaseDao.getById(releaseId); if (!release.isProject(project)) throw new PermissionDeniedException(); conversation.sendToClient(release.getIssues()); }