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.kernel.exception.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.kernel.exception.PortalException,
53 com.liferay.portal.kernel.exception.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.kernel.exception.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.kernel.exception.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.kernel.exception.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.kernel.exception.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.kernel.exception.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.kernel.exception.PortalException,
93 com.liferay.portal.kernel.exception.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)
99 throws com.liferay.portal.kernel.exception.SystemException {
100 return getService().getPollsVotes(start, end);
101 }
102
103 public static int getPollsVotesCount()
104 throws com.liferay.portal.kernel.exception.SystemException {
105 return getService().getPollsVotesCount();
106 }
107
108 public static com.liferay.portlet.polls.model.PollsVote updatePollsVote(
109 com.liferay.portlet.polls.model.PollsVote pollsVote)
110 throws com.liferay.portal.kernel.exception.SystemException {
111 return getService().updatePollsVote(pollsVote);
112 }
113
114 public static com.liferay.portlet.polls.model.PollsVote updatePollsVote(
115 com.liferay.portlet.polls.model.PollsVote pollsVote, boolean merge)
116 throws com.liferay.portal.kernel.exception.SystemException {
117 return getService().updatePollsVote(pollsVote, merge);
118 }
119
120 public static com.liferay.portlet.polls.model.PollsVote addVote(
121 long userId, long questionId, long choiceId,
122 com.liferay.portal.service.ServiceContext serviceContext)
123 throws com.liferay.portal.kernel.exception.PortalException,
124 com.liferay.portal.kernel.exception.SystemException {
125 return getService().addVote(userId, questionId, choiceId, serviceContext);
126 }
127
128 public static java.util.List<com.liferay.portlet.polls.model.PollsVote> getChoiceVotes(
129 long choiceId, int start, int end)
130 throws com.liferay.portal.kernel.exception.SystemException {
131 return getService().getChoiceVotes(choiceId, start, end);
132 }
133
134 public static int getChoiceVotesCount(long choiceId)
135 throws com.liferay.portal.kernel.exception.SystemException {
136 return getService().getChoiceVotesCount(choiceId);
137 }
138
139 public static java.util.List<com.liferay.portlet.polls.model.PollsVote> getQuestionVotes(
140 long questionId, int start, int end)
141 throws com.liferay.portal.kernel.exception.SystemException {
142 return getService().getQuestionVotes(questionId, start, end);
143 }
144
145 public static int getQuestionVotesCount(long questionId)
146 throws com.liferay.portal.kernel.exception.SystemException {
147 return getService().getQuestionVotesCount(questionId);
148 }
149
150 public static com.liferay.portlet.polls.model.PollsVote getVote(
151 long questionId, long userId)
152 throws com.liferay.portal.kernel.exception.PortalException,
153 com.liferay.portal.kernel.exception.SystemException {
154 return getService().getVote(questionId, userId);
155 }
156
157 public static PollsVoteLocalService getService() {
158 if (_service == null) {
159 _service = (PollsVoteLocalService)PortalBeanLocatorUtil.locate(PollsVoteLocalService.class.getName());
160 }
161
162 return _service;
163 }
164
165 public void setService(PollsVoteLocalService service) {
166 _service = service;
167 }
168
169 private static PollsVoteLocalService _service;
170 }