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 addQuestion(
107 long userId, long plid, java.lang.String title,
108 java.lang.String description, int expirationDateMonth,
109 int expirationDateDay, int expirationDateYear, int expirationDateHour,
110 int expirationDateMinute, boolean neverExpire,
111 boolean addCommunityPermissions, boolean addGuestPermissions)
112 throws com.liferay.portal.PortalException,
113 com.liferay.portal.SystemException {
114 return getService()
115 .addQuestion(userId, plid, title, description,
116 expirationDateMonth, expirationDateDay, expirationDateYear,
117 expirationDateHour, expirationDateMinute, neverExpire,
118 addCommunityPermissions, addGuestPermissions);
119 }
120
121 public static com.liferay.portlet.polls.model.PollsQuestion addQuestion(
122 java.lang.String uuid, long userId, long plid, java.lang.String title,
123 java.lang.String description, int expirationDateMonth,
124 int expirationDateDay, int expirationDateYear, int expirationDateHour,
125 int expirationDateMinute, boolean neverExpire,
126 boolean addCommunityPermissions, boolean addGuestPermissions)
127 throws com.liferay.portal.PortalException,
128 com.liferay.portal.SystemException {
129 return getService()
130 .addQuestion(uuid, userId, plid, title, description,
131 expirationDateMonth, expirationDateDay, expirationDateYear,
132 expirationDateHour, expirationDateMinute, neverExpire,
133 addCommunityPermissions, addGuestPermissions);
134 }
135
136 public static com.liferay.portlet.polls.model.PollsQuestion addQuestion(
137 long userId, long plid, java.lang.String title,
138 java.lang.String description, int expirationDateMonth,
139 int expirationDateDay, int expirationDateYear, int expirationDateHour,
140 int expirationDateMinute, boolean neverExpire,
141 java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices,
142 boolean addCommunityPermissions, boolean addGuestPermissions)
143 throws com.liferay.portal.PortalException,
144 com.liferay.portal.SystemException {
145 return getService()
146 .addQuestion(userId, plid, title, description,
147 expirationDateMonth, expirationDateDay, expirationDateYear,
148 expirationDateHour, expirationDateMinute, neverExpire, choices,
149 addCommunityPermissions, addGuestPermissions);
150 }
151
152 public static com.liferay.portlet.polls.model.PollsQuestion addQuestion(
153 long userId, long plid, java.lang.String title,
154 java.lang.String description, int expirationDateMonth,
155 int expirationDateDay, int expirationDateYear, int expirationDateHour,
156 int expirationDateMinute, boolean neverExpire,
157 java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices,
158 java.lang.String[] communityPermissions,
159 java.lang.String[] guestPermissions)
160 throws com.liferay.portal.PortalException,
161 com.liferay.portal.SystemException {
162 return getService()
163 .addQuestion(userId, plid, title, description,
164 expirationDateMonth, expirationDateDay, expirationDateYear,
165 expirationDateHour, expirationDateMinute, neverExpire, choices,
166 communityPermissions, guestPermissions);
167 }
168
169 public static com.liferay.portlet.polls.model.PollsQuestion addQuestion(
170 java.lang.String uuid, long userId, long plid, java.lang.String title,
171 java.lang.String description, int expirationDateMonth,
172 int expirationDateDay, int expirationDateYear, int expirationDateHour,
173 int expirationDateMinute, boolean neverExpire,
174 java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices,
175 java.lang.Boolean addCommunityPermissions,
176 java.lang.Boolean addGuestPermissions,
177 java.lang.String[] communityPermissions,
178 java.lang.String[] guestPermissions)
179 throws com.liferay.portal.PortalException,
180 com.liferay.portal.SystemException {
181 return getService()
182 .addQuestion(uuid, userId, plid, title, description,
183 expirationDateMonth, expirationDateDay, expirationDateYear,
184 expirationDateHour, expirationDateMinute, neverExpire, choices,
185 addCommunityPermissions, addGuestPermissions, communityPermissions,
186 guestPermissions);
187 }
188
189 public static void addQuestionResources(long questionId,
190 boolean addCommunityPermissions, boolean addGuestPermissions)
191 throws com.liferay.portal.PortalException,
192 com.liferay.portal.SystemException {
193 getService()
194 .addQuestionResources(questionId, addCommunityPermissions,
195 addGuestPermissions);
196 }
197
198 public static void addQuestionResources(
199 com.liferay.portlet.polls.model.PollsQuestion question,
200 boolean addCommunityPermissions, boolean addGuestPermissions)
201 throws com.liferay.portal.PortalException,
202 com.liferay.portal.SystemException {
203 getService()
204 .addQuestionResources(question, addCommunityPermissions,
205 addGuestPermissions);
206 }
207
208 public static void addQuestionResources(long questionId,
209 java.lang.String[] communityPermissions,
210 java.lang.String[] guestPermissions)
211 throws com.liferay.portal.PortalException,
212 com.liferay.portal.SystemException {
213 getService()
214 .addQuestionResources(questionId, communityPermissions,
215 guestPermissions);
216 }
217
218 public static void addQuestionResources(
219 com.liferay.portlet.polls.model.PollsQuestion question,
220 java.lang.String[] communityPermissions,
221 java.lang.String[] guestPermissions)
222 throws com.liferay.portal.PortalException,
223 com.liferay.portal.SystemException {
224 getService()
225 .addQuestionResources(question, communityPermissions,
226 guestPermissions);
227 }
228
229 public static void deleteQuestion(long questionId)
230 throws com.liferay.portal.PortalException,
231 com.liferay.portal.SystemException {
232 getService().deleteQuestion(questionId);
233 }
234
235 public static void deleteQuestion(
236 com.liferay.portlet.polls.model.PollsQuestion question)
237 throws com.liferay.portal.PortalException,
238 com.liferay.portal.SystemException {
239 getService().deleteQuestion(question);
240 }
241
242 public static void deleteQuestions(long groupId)
243 throws com.liferay.portal.PortalException,
244 com.liferay.portal.SystemException {
245 getService().deleteQuestions(groupId);
246 }
247
248 public static com.liferay.portlet.polls.model.PollsQuestion getQuestion(
249 long questionId)
250 throws com.liferay.portal.PortalException,
251 com.liferay.portal.SystemException {
252 return getService().getQuestion(questionId);
253 }
254
255 public static java.util.List<com.liferay.portlet.polls.model.PollsQuestion> getQuestions(
256 long groupId) throws com.liferay.portal.SystemException {
257 return getService().getQuestions(groupId);
258 }
259
260 public static java.util.List<com.liferay.portlet.polls.model.PollsQuestion> getQuestions(
261 long groupId, int start, int end)
262 throws com.liferay.portal.SystemException {
263 return getService().getQuestions(groupId, start, end);
264 }
265
266 public static int getQuestionsCount(long groupId)
267 throws com.liferay.portal.SystemException {
268 return getService().getQuestionsCount(groupId);
269 }
270
271 public static com.liferay.portlet.polls.model.PollsQuestion updateQuestion(
272 long userId, long questionId, java.lang.String title,
273 java.lang.String description, int expirationDateMonth,
274 int expirationDateDay, int expirationDateYear, int expirationDateHour,
275 int expirationDateMinute, boolean neverExpire)
276 throws com.liferay.portal.PortalException,
277 com.liferay.portal.SystemException {
278 return getService()
279 .updateQuestion(userId, questionId, title, description,
280 expirationDateMonth, expirationDateDay, expirationDateYear,
281 expirationDateHour, expirationDateMinute, neverExpire);
282 }
283
284 public static com.liferay.portlet.polls.model.PollsQuestion updateQuestion(
285 long userId, long questionId, java.lang.String title,
286 java.lang.String description, int expirationDateMonth,
287 int expirationDateDay, int expirationDateYear, int expirationDateHour,
288 int expirationDateMinute, boolean neverExpire,
289 java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices)
290 throws com.liferay.portal.PortalException,
291 com.liferay.portal.SystemException {
292 return getService()
293 .updateQuestion(userId, questionId, title, description,
294 expirationDateMonth, expirationDateDay, expirationDateYear,
295 expirationDateHour, expirationDateMinute, neverExpire, choices);
296 }
297
298 public static PollsQuestionLocalService getService() {
299 if (_service == null) {
300 throw new RuntimeException("PollsQuestionLocalService is not set");
301 }
302
303 return _service;
304 }
305
306 public void setService(PollsQuestionLocalService service) {
307 _service = service;
308 }
309
310 private static PollsQuestionLocalService _service;
311 }