1
14
15 package com.liferay.portlet.polls.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18
19
39 public class PollsVoteLocalServiceUtil {
40 public static com.liferay.portlet.polls.model.PollsVote addPollsVote(
41 com.liferay.portlet.polls.model.PollsVote pollsVote)
42 throws com.liferay.portal.SystemException {
43 return getService().addPollsVote(pollsVote);
44 }
45
46 public static com.liferay.portlet.polls.model.PollsVote createPollsVote(
47 long voteId) {
48 return getService().createPollsVote(voteId);
49 }
50
51 public static void deletePollsVote(long voteId)
52 throws com.liferay.portal.PortalException,
53 com.liferay.portal.SystemException {
54 getService().deletePollsVote(voteId);
55 }
56
57 public static void deletePollsVote(
58 com.liferay.portlet.polls.model.PollsVote pollsVote)
59 throws com.liferay.portal.SystemException {
60 getService().deletePollsVote(pollsVote);
61 }
62
63 public static java.util.List<Object> dynamicQuery(
64 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65 throws com.liferay.portal.SystemException {
66 return getService().dynamicQuery(dynamicQuery);
67 }
68
69 public static java.util.List<Object> dynamicQuery(
70 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71 int end) throws com.liferay.portal.SystemException {
72 return getService().dynamicQuery(dynamicQuery, start, end);
73 }
74
75 public static java.util.List<Object> dynamicQuery(
76 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
77 int end,
78 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
79 throws com.liferay.portal.SystemException {
80 return getService()
81 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
82 }
83
84 public static int dynamicQueryCount(
85 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
86 throws com.liferay.portal.SystemException {
87 return getService().dynamicQueryCount(dynamicQuery);
88 }
89
90 public static com.liferay.portlet.polls.model.PollsVote getPollsVote(
91 long voteId)
92 throws com.liferay.portal.PortalException,
93 com.liferay.portal.SystemException {
94 return getService().getPollsVote(voteId);
95 }
96
97 public static java.util.List<com.liferay.portlet.polls.model.PollsVote> getPollsVotes(
98 int start, int end) throws com.liferay.portal.SystemException {
99 return getService().getPollsVotes(start, end);
100 }
101
102 public static int getPollsVotesCount()
103 throws com.liferay.portal.SystemException {
104 return getService().getPollsVotesCount();
105 }
106
107 public static com.liferay.portlet.polls.model.PollsVote updatePollsVote(
108 com.liferay.portlet.polls.model.PollsVote pollsVote)
109 throws com.liferay.portal.SystemException {
110 return getService().updatePollsVote(pollsVote);
111 }
112
113 public static com.liferay.portlet.polls.model.PollsVote updatePollsVote(
114 com.liferay.portlet.polls.model.PollsVote pollsVote, boolean merge)
115 throws com.liferay.portal.SystemException {
116 return getService().updatePollsVote(pollsVote, merge);
117 }
118
119 public static com.liferay.portlet.polls.model.PollsVote addVote(
120 long userId, long questionId, long choiceId)
121 throws com.liferay.portal.PortalException,
122 com.liferay.portal.SystemException {
123 return getService().addVote(userId, questionId, choiceId);
124 }
125
126 public static com.liferay.portlet.polls.model.PollsVote addVote(
127 long userId, long questionId, long choiceId,
128 com.liferay.portal.service.ServiceContext serviceContext)
129 throws com.liferay.portal.PortalException,
130 com.liferay.portal.SystemException {
131 return getService().addVote(userId, questionId, choiceId, serviceContext);
132 }
133
134 public static java.util.List<com.liferay.portlet.polls.model.PollsVote> getChoiceVotes(
135 long choiceId, int start, int end)
136 throws com.liferay.portal.SystemException {
137 return getService().getChoiceVotes(choiceId, start, end);
138 }
139
140 public static int getChoiceVotesCount(long choiceId)
141 throws com.liferay.portal.SystemException {
142 return getService().getChoiceVotesCount(choiceId);
143 }
144
145 public static java.util.List<com.liferay.portlet.polls.model.PollsVote> getQuestionVotes(
146 long questionId, int start, int end)
147 throws com.liferay.portal.SystemException {
148 return getService().getQuestionVotes(questionId, start, end);
149 }
150
151 public static int getQuestionVotesCount(long questionId)
152 throws com.liferay.portal.SystemException {
153 return getService().getQuestionVotesCount(questionId);
154 }
155
156 public static com.liferay.portlet.polls.model.PollsVote getVote(
157 long questionId, long userId)
158 throws com.liferay.portal.PortalException,
159 com.liferay.portal.SystemException {
160 return getService().getVote(questionId, userId);
161 }
162
163 public static PollsVoteLocalService getService() {
164 if (_service == null) {
165 _service = (PollsVoteLocalService)PortalBeanLocatorUtil.locate(PollsVoteLocalService.class.getName());
166 }
167
168 return _service;
169 }
170
171 public void setService(PollsVoteLocalService service) {
172 _service = service;
173 }
174
175 private static PollsVoteLocalService _service;
176 }