Esempio n. 1
0
 @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);
 }
Esempio n. 2
0
 @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());
 }