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