Package com.liferay.portlet.polls.model

Examples of com.liferay.portlet.polls.model.PollsVote


    }
    else if (pollsVotePK == null) {
      return null;
    }
    else {
      PollsVote obj = null;
      String key = pollsVotePK.toString();

      if (Validator.isNull(key)) {
        return null;
      }
View Full Code Here


    }
    else if (pollsVotePK == null) {
      return null;
    }
    else {
      PollsVote obj = null;
      String key = pollsVotePK.toString();

      if (Validator.isNull(key)) {
        return null;
      }
View Full Code Here

        ps.setTimestamp(2, voteDate);

        rs = ps.executeQuery();

        while (rs.next()) {
          PollsVote vote = PollsVoteUtil.findByPrimaryKey(
            new PollsVotePK(questionId, rs.getString(1)));

          list.add(vote);
        }
      }
View Full Code Here

    PollsQuestionUtil.update(question);

    PollsVotePK votePK = new PollsVotePK(questionId, userId);

    PollsVote vote = null;

    try {
      vote = PollsVoteUtil.findByPrimaryKey(votePK);

      throw new DuplicateVoteException();
    }
    catch (NoSuchVoteException nsve) {
      vote = PollsVoteUtil.create(votePK);

      PollsChoicePK choicePK =
        new PollsChoicePK(questionId, choiceId);

      PollsChoice choice = PollsChoiceUtil.findByPrimaryKey(choicePK);

      vote.setChoiceId(choice.getChoiceId());
      vote.setVoteDate(now);

      PollsVoteUtil.update(vote);
    }
  }
View Full Code Here

    throws PortalException, SystemException {

    try {
      String userId = null;
     
      PollsVote vote = PollsVoteUtil.findByPrimaryKey(
        new PollsVotePK(questionId, userId));
    }
    catch (NoSuchVoteException nsve) {
      return false;
//    }catch(PrincipalException ue){
View Full Code Here

TOP

Related Classes of com.liferay.portlet.polls.model.PollsVote

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.