コード例 #1
0
 public void removePollingQuestion(AbstractPollingQuestion pollingQuestion)
     throws UsedQuestionException {
   if (!voteDao.isUsedQuestion(pollingQuestion)) {
     voteDao.remove(pollingQuestion);
   } else {
     throw new UsedQuestionException("question_is_used");
   }
 }
コード例 #2
0
  public void removePollingTemplate(AbstractPollingTemplate pollingTemplate)
      throws UsedTemplateException {
    if (!voteDao.isUsedTemplate(pollingTemplate)) {
      voteDao.remove(pollingTemplate);
    } else {
      throw new UsedTemplateException("template_is_used");
    }

    //        pollingTemplate = findTemplateByName(pollingTemplate.getName());
    //        List<AbstractVomte> relatedPollingList = findAllVotesByTemplate(pollingTemplate);
    //        if (!relatedPollingList.isEmpty()){
    //            //throws exception
    //            return;
    //        }
  }
コード例 #3
0
 public void remove(EntityObject obj) throws Exception {
   voteDao.remove(obj);
 }
コード例 #4
0
 public void removeVote(Vote vote) {
   voteDao.remove(vote);
 }