1
22
23 package com.liferay.portlet.polls.service;
24
25
51 public class PollsVoteLocalServiceUtil {
52 public static com.liferay.portlet.polls.model.PollsVote addPollsVote(
53 com.liferay.portlet.polls.model.PollsVote model)
54 throws com.liferay.portal.SystemException {
55 PollsVoteLocalService pollsVoteLocalService = PollsVoteLocalServiceFactory.getService();
56
57 return pollsVoteLocalService.addPollsVote(model);
58 }
59
60 public static java.util.List dynamicQuery(
61 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
62 throws com.liferay.portal.SystemException {
63 PollsVoteLocalService pollsVoteLocalService = PollsVoteLocalServiceFactory.getService();
64
65 return pollsVoteLocalService.dynamicQuery(queryInitializer);
66 }
67
68 public static java.util.List dynamicQuery(
69 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
70 int begin, int end) throws com.liferay.portal.SystemException {
71 PollsVoteLocalService pollsVoteLocalService = PollsVoteLocalServiceFactory.getService();
72
73 return pollsVoteLocalService.dynamicQuery(queryInitializer, begin, end);
74 }
75
76 public static com.liferay.portlet.polls.model.PollsVote updatePollsVote(
77 com.liferay.portlet.polls.model.PollsVote model)
78 throws com.liferay.portal.SystemException {
79 PollsVoteLocalService pollsVoteLocalService = PollsVoteLocalServiceFactory.getService();
80
81 return pollsVoteLocalService.updatePollsVote(model);
82 }
83
84 public static com.liferay.portlet.polls.model.PollsVote addVote(
85 long userId, long questionId, long choiceId)
86 throws com.liferay.portal.PortalException,
87 com.liferay.portal.SystemException {
88 PollsVoteLocalService pollsVoteLocalService = PollsVoteLocalServiceFactory.getService();
89
90 return pollsVoteLocalService.addVote(userId, questionId, choiceId);
91 }
92
93 public static java.util.List getChoiceVotes(long choiceId, int begin,
94 int end) throws com.liferay.portal.SystemException {
95 PollsVoteLocalService pollsVoteLocalService = PollsVoteLocalServiceFactory.getService();
96
97 return pollsVoteLocalService.getChoiceVotes(choiceId, begin, end);
98 }
99
100 public static int getChoiceVotesCount(long choiceId)
101 throws com.liferay.portal.SystemException {
102 PollsVoteLocalService pollsVoteLocalService = PollsVoteLocalServiceFactory.getService();
103
104 return pollsVoteLocalService.getChoiceVotesCount(choiceId);
105 }
106
107 public static com.liferay.portlet.polls.model.PollsVote getVote(
108 long questionId, long userId)
109 throws com.liferay.portal.PortalException,
110 com.liferay.portal.SystemException {
111 PollsVoteLocalService pollsVoteLocalService = PollsVoteLocalServiceFactory.getService();
112
113 return pollsVoteLocalService.getVote(questionId, userId);
114 }
115
116 public static java.util.List getQuestionVotes(long questionId, int begin,
117 int end) throws com.liferay.portal.SystemException {
118 PollsVoteLocalService pollsVoteLocalService = PollsVoteLocalServiceFactory.getService();
119
120 return pollsVoteLocalService.getQuestionVotes(questionId, begin, end);
121 }
122
123 public static int getQuestionVotesCount(long questionId)
124 throws com.liferay.portal.SystemException {
125 PollsVoteLocalService pollsVoteLocalService = PollsVoteLocalServiceFactory.getService();
126
127 return pollsVoteLocalService.getQuestionVotesCount(questionId);
128 }
129 }