1
22
23 package com.liferay.portlet.polls.service;
24
25
26
47 public class PollsQuestionLocalServiceUtil {
48 public static com.liferay.portlet.polls.model.PollsQuestion addPollsQuestion(
49 com.liferay.portlet.polls.model.PollsQuestion pollsQuestion)
50 throws com.liferay.portal.SystemException {
51 return getService().addPollsQuestion(pollsQuestion);
52 }
53
54 public static com.liferay.portlet.polls.model.PollsQuestion createPollsQuestion(
55 long questionId) {
56 return getService().createPollsQuestion(questionId);
57 }
58
59 public static void deletePollsQuestion(long questionId)
60 throws com.liferay.portal.PortalException,
61 com.liferay.portal.SystemException {
62 getService().deletePollsQuestion(questionId);
63 }
64
65 public static void deletePollsQuestion(
66 com.liferay.portlet.polls.model.PollsQuestion pollsQuestion)
67 throws com.liferay.portal.SystemException {
68 getService().deletePollsQuestion(pollsQuestion);
69 }
70
71 public static java.util.List<Object> dynamicQuery(
72 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
73 throws com.liferay.portal.SystemException {
74 return getService().dynamicQuery(dynamicQuery);
75 }
76
77 public static java.util.List<Object> dynamicQuery(
78 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
79 int end) throws com.liferay.portal.SystemException {
80 return getService().dynamicQuery(dynamicQuery, start, end);
81 }
82
83 public static com.liferay.portlet.polls.model.PollsQuestion getPollsQuestion(
84 long questionId)
85 throws com.liferay.portal.PortalException,
86 com.liferay.portal.SystemException {
87 return getService().getPollsQuestion(questionId);
88 }
89
90 public static java.util.List<com.liferay.portlet.polls.model.PollsQuestion> getPollsQuestions(
91 int start, int end) throws com.liferay.portal.SystemException {
92 return getService().getPollsQuestions(start, end);
93 }
94
95 public static int getPollsQuestionsCount()
96 throws com.liferay.portal.SystemException {
97 return getService().getPollsQuestionsCount();
98 }
99
100 public static com.liferay.portlet.polls.model.PollsQuestion updatePollsQuestion(
101 com.liferay.portlet.polls.model.PollsQuestion pollsQuestion)
102 throws com.liferay.portal.SystemException {
103 return getService().updatePollsQuestion(pollsQuestion);
104 }
105
106 public static com.liferay.portlet.polls.model.PollsQuestion updatePollsQuestion(
107 com.liferay.portlet.polls.model.PollsQuestion pollsQuestion,
108 boolean merge) throws com.liferay.portal.SystemException {
109 return getService().updatePollsQuestion(pollsQuestion, merge);
110 }
111
112 public static com.liferay.portlet.polls.model.PollsQuestion addQuestion(
113 long userId, long plid, java.lang.String title,
114 java.lang.String description, int expirationDateMonth,
115 int expirationDateDay, int expirationDateYear, int expirationDateHour,
116 int expirationDateMinute, boolean neverExpire,
117 boolean addCommunityPermissions, boolean addGuestPermissions)
118 throws com.liferay.portal.PortalException,
119 com.liferay.portal.SystemException {
120 return getService()
121 .addQuestion(userId, plid, title, description,
122 expirationDateMonth, expirationDateDay, expirationDateYear,
123 expirationDateHour, expirationDateMinute, neverExpire,
124 addCommunityPermissions, addGuestPermissions);
125 }
126
127 public static com.liferay.portlet.polls.model.PollsQuestion addQuestion(
128 java.lang.String uuid, long userId, long plid, java.lang.String title,
129 java.lang.String description, int expirationDateMonth,
130 int expirationDateDay, int expirationDateYear, int expirationDateHour,
131 int expirationDateMinute, boolean neverExpire,
132 boolean addCommunityPermissions, boolean addGuestPermissions)
133 throws com.liferay.portal.PortalException,
134 com.liferay.portal.SystemException {
135 return getService()
136 .addQuestion(uuid, userId, plid, title, description,
137 expirationDateMonth, expirationDateDay, expirationDateYear,
138 expirationDateHour, expirationDateMinute, neverExpire,
139 addCommunityPermissions, addGuestPermissions);
140 }
141
142 public static com.liferay.portlet.polls.model.PollsQuestion addQuestion(
143 long userId, long plid, java.lang.String title,
144 java.lang.String description, int expirationDateMonth,
145 int expirationDateDay, int expirationDateYear, int expirationDateHour,
146 int expirationDateMinute, boolean neverExpire,
147 java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices,
148 boolean addCommunityPermissions, boolean addGuestPermissions)
149 throws com.liferay.portal.PortalException,
150 com.liferay.portal.SystemException {
151 return getService()
152 .addQuestion(userId, plid, title, description,
153 expirationDateMonth, expirationDateDay, expirationDateYear,
154 expirationDateHour, expirationDateMinute, neverExpire, choices,
155 addCommunityPermissions, addGuestPermissions);
156 }
157
158 public static com.liferay.portlet.polls.model.PollsQuestion addQuestion(
159 long userId, long plid, java.lang.String title,
160 java.lang.String description, int expirationDateMonth,
161 int expirationDateDay, int expirationDateYear, int expirationDateHour,
162 int expirationDateMinute, boolean neverExpire,
163 java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices,
164 java.lang.String[] communityPermissions,
165 java.lang.String[] guestPermissions)
166 throws com.liferay.portal.PortalException,
167 com.liferay.portal.SystemException {
168 return getService()
169 .addQuestion(userId, plid, title, description,
170 expirationDateMonth, expirationDateDay, expirationDateYear,
171 expirationDateHour, expirationDateMinute, neverExpire, choices,
172 communityPermissions, guestPermissions);
173 }
174
175 public static com.liferay.portlet.polls.model.PollsQuestion addQuestion(
176 java.lang.String uuid, long userId, long plid, java.lang.String title,
177 java.lang.String description, int expirationDateMonth,
178 int expirationDateDay, int expirationDateYear, int expirationDateHour,
179 int expirationDateMinute, boolean neverExpire,
180 java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices,
181 java.lang.Boolean addCommunityPermissions,
182 java.lang.Boolean addGuestPermissions,
183 java.lang.String[] communityPermissions,
184 java.lang.String[] guestPermissions)
185 throws com.liferay.portal.PortalException,
186 com.liferay.portal.SystemException {
187 return getService()
188 .addQuestion(uuid, userId, plid, title, description,
189 expirationDateMonth, expirationDateDay, expirationDateYear,
190 expirationDateHour, expirationDateMinute, neverExpire, choices,
191 addCommunityPermissions, addGuestPermissions, communityPermissions,
192 guestPermissions);
193 }
194
195 public static void addQuestionResources(long questionId,
196 boolean addCommunityPermissions, boolean addGuestPermissions)
197 throws com.liferay.portal.PortalException,
198 com.liferay.portal.SystemException {
199 getService()
200 .addQuestionResources(questionId, addCommunityPermissions,
201 addGuestPermissions);
202 }
203
204 public static void addQuestionResources(
205 com.liferay.portlet.polls.model.PollsQuestion question,
206 boolean addCommunityPermissions, boolean addGuestPermissions)
207 throws com.liferay.portal.PortalException,
208 com.liferay.portal.SystemException {
209 getService()
210 .addQuestionResources(question, addCommunityPermissions,
211 addGuestPermissions);
212 }
213
214 public static void addQuestionResources(long questionId,
215 java.lang.String[] communityPermissions,
216 java.lang.String[] guestPermissions)
217 throws com.liferay.portal.PortalException,
218 com.liferay.portal.SystemException {
219 getService()
220 .addQuestionResources(questionId, communityPermissions,
221 guestPermissions);
222 }
223
224 public static void addQuestionResources(
225 com.liferay.portlet.polls.model.PollsQuestion question,
226 java.lang.String[] communityPermissions,
227 java.lang.String[] guestPermissions)
228 throws com.liferay.portal.PortalException,
229 com.liferay.portal.SystemException {
230 getService()
231 .addQuestionResources(question, communityPermissions,
232 guestPermissions);
233 }
234
235 public static void deleteQuestion(long questionId)
236 throws com.liferay.portal.PortalException,
237 com.liferay.portal.SystemException {
238 getService().deleteQuestion(questionId);
239 }
240
241 public static void deleteQuestion(
242 com.liferay.portlet.polls.model.PollsQuestion question)
243 throws com.liferay.portal.PortalException,
244 com.liferay.portal.SystemException {
245 getService().deleteQuestion(question);
246 }
247
248 public static void deleteQuestions(long groupId)
249 throws com.liferay.portal.PortalException,
250 com.liferay.portal.SystemException {
251 getService().deleteQuestions(groupId);
252 }
253
254 public static com.liferay.portlet.polls.model.PollsQuestion getQuestion(
255 long questionId)
256 throws com.liferay.portal.PortalException,
257 com.liferay.portal.SystemException {
258 return getService().getQuestion(questionId);
259 }
260
261 public static java.util.List<com.liferay.portlet.polls.model.PollsQuestion> getQuestions(
262 long groupId) throws com.liferay.portal.SystemException {
263 return getService().getQuestions(groupId);
264 }
265
266 public static java.util.List<com.liferay.portlet.polls.model.PollsQuestion> getQuestions(
267 long groupId, int start, int end)
268 throws com.liferay.portal.SystemException {
269 return getService().getQuestions(groupId, start, end);
270 }
271
272 public static int getQuestionsCount(long groupId)
273 throws com.liferay.portal.SystemException {
274 return getService().getQuestionsCount(groupId);
275 }
276
277 public static com.liferay.portlet.polls.model.PollsQuestion updateQuestion(
278 long userId, long questionId, java.lang.String title,
279 java.lang.String description, int expirationDateMonth,
280 int expirationDateDay, int expirationDateYear, int expirationDateHour,
281 int expirationDateMinute, boolean neverExpire)
282 throws com.liferay.portal.PortalException,
283 com.liferay.portal.SystemException {
284 return getService()
285 .updateQuestion(userId, questionId, title, description,
286 expirationDateMonth, expirationDateDay, expirationDateYear,
287 expirationDateHour, expirationDateMinute, neverExpire);
288 }
289
290 public static com.liferay.portlet.polls.model.PollsQuestion updateQuestion(
291 long userId, long questionId, java.lang.String title,
292 java.lang.String description, int expirationDateMonth,
293 int expirationDateDay, int expirationDateYear, int expirationDateHour,
294 int expirationDateMinute, boolean neverExpire,
295 java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices)
296 throws com.liferay.portal.PortalException,
297 com.liferay.portal.SystemException {
298 return getService()
299 .updateQuestion(userId, questionId, title, description,
300 expirationDateMonth, expirationDateDay, expirationDateYear,
301 expirationDateHour, expirationDateMinute, neverExpire, choices);
302 }
303
304 public static PollsQuestionLocalService getService() {
305 if (_service == null) {
306 throw new RuntimeException("PollsQuestionLocalService is not set");
307 }
308
309 return _service;
310 }
311
312 public void setService(PollsQuestionLocalService service) {
313 _service = service;
314 }
315
316 private static PollsQuestionLocalService _service;
317 }