1
22
23 package com.liferay.portlet.messageboards.service;
24
25
26
47 public class MBMessageLocalServiceUtil {
48 public static com.liferay.portlet.messageboards.model.MBMessage addMBMessage(
49 com.liferay.portlet.messageboards.model.MBMessage mbMessage)
50 throws com.liferay.portal.SystemException {
51 return _service.addMBMessage(mbMessage);
52 }
53
54 public static void deleteMBMessage(long messageId)
55 throws com.liferay.portal.PortalException,
56 com.liferay.portal.SystemException {
57 _service.deleteMBMessage(messageId);
58 }
59
60 public static void deleteMBMessage(
61 com.liferay.portlet.messageboards.model.MBMessage mbMessage)
62 throws com.liferay.portal.SystemException {
63 _service.deleteMBMessage(mbMessage);
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.messageboards.model.MBMessage getMBMessage(
79 long messageId)
80 throws com.liferay.portal.PortalException,
81 com.liferay.portal.SystemException {
82 return _service.getMBMessage(messageId);
83 }
84
85 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getMBMessages(
86 int start, int end) throws com.liferay.portal.SystemException {
87 return _service.getMBMessages(start, end);
88 }
89
90 public static int getMBMessagesCount()
91 throws com.liferay.portal.SystemException {
92 return _service.getMBMessagesCount();
93 }
94
95 public static com.liferay.portlet.messageboards.model.MBMessage updateMBMessage(
96 com.liferay.portlet.messageboards.model.MBMessage mbMessage)
97 throws com.liferay.portal.SystemException {
98 return _service.updateMBMessage(mbMessage);
99 }
100
101 public static com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
102 long userId, java.lang.String userName, java.lang.String subject,
103 java.lang.String body)
104 throws com.liferay.portal.PortalException,
105 com.liferay.portal.SystemException {
106 return _service.addDiscussionMessage(userId, userName, subject, body);
107 }
108
109 public static com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
110 long userId, java.lang.String userName, long groupId,
111 java.lang.String className, long classPK, long threadId,
112 long parentMessageId, java.lang.String subject, java.lang.String body)
113 throws com.liferay.portal.PortalException,
114 com.liferay.portal.SystemException {
115 return _service.addDiscussionMessage(userId, userName, groupId,
116 className, classPK, threadId, parentMessageId, subject, body);
117 }
118
119 public static com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
120 long userId, java.lang.String userName, long groupId,
121 java.lang.String className, long classPK, long threadId,
122 long parentMessageId, java.lang.String subject, java.lang.String body,
123 com.liferay.portal.theme.ThemeDisplay themeDisplay)
124 throws com.liferay.portal.PortalException,
125 com.liferay.portal.SystemException {
126 return _service.addDiscussionMessage(userId, userName, groupId,
127 className, classPK, threadId, parentMessageId, subject, body,
128 themeDisplay);
129 }
130
131 public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
132 long userId, java.lang.String userName, long categoryId,
133 java.lang.String subject, java.lang.String body,
134 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
135 boolean anonymous, double priority, java.lang.String[] tagsEntries,
136 javax.portlet.PortletPreferences prefs,
137 boolean addCommunityPermissions, boolean addGuestPermissions,
138 com.liferay.portal.theme.ThemeDisplay themeDisplay)
139 throws com.liferay.portal.PortalException,
140 com.liferay.portal.SystemException {
141 return _service.addMessage(userId, userName, categoryId, subject, body,
142 files, anonymous, priority, tagsEntries, prefs,
143 addCommunityPermissions, addGuestPermissions, themeDisplay);
144 }
145
146 public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
147 long userId, java.lang.String userName, long categoryId,
148 java.lang.String subject, java.lang.String body,
149 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
150 boolean anonymous, double priority, java.lang.String[] tagsEntries,
151 javax.portlet.PortletPreferences prefs,
152 java.lang.String[] communityPermissions,
153 java.lang.String[] guestPermissions,
154 com.liferay.portal.theme.ThemeDisplay themeDisplay)
155 throws com.liferay.portal.PortalException,
156 com.liferay.portal.SystemException {
157 return _service.addMessage(userId, userName, categoryId, subject, body,
158 files, anonymous, priority, tagsEntries, prefs,
159 communityPermissions, guestPermissions, themeDisplay);
160 }
161
162 public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
163 long userId, java.lang.String userName, long categoryId,
164 java.lang.String subject, java.lang.String body,
165 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
166 boolean anonymous, double priority, java.lang.String[] tagsEntries,
167 javax.portlet.PortletPreferences prefs,
168 java.lang.Boolean addCommunityPermissions,
169 java.lang.Boolean addGuestPermissions,
170 java.lang.String[] communityPermissions,
171 java.lang.String[] guestPermissions,
172 com.liferay.portal.theme.ThemeDisplay themeDisplay)
173 throws com.liferay.portal.PortalException,
174 com.liferay.portal.SystemException {
175 return _service.addMessage(userId, userName, categoryId, subject, body,
176 files, anonymous, priority, tagsEntries, prefs,
177 addCommunityPermissions, addGuestPermissions, communityPermissions,
178 guestPermissions, themeDisplay);
179 }
180
181 public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
182 long userId, java.lang.String userName, long categoryId, long threadId,
183 long parentMessageId, java.lang.String subject, java.lang.String body,
184 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
185 boolean anonymous, double priority, java.lang.String[] tagsEntries,
186 javax.portlet.PortletPreferences prefs,
187 boolean addCommunityPermissions, boolean addGuestPermissions,
188 com.liferay.portal.theme.ThemeDisplay themeDisplay)
189 throws com.liferay.portal.PortalException,
190 com.liferay.portal.SystemException {
191 return _service.addMessage(userId, userName, categoryId, threadId,
192 parentMessageId, subject, body, files, anonymous, priority,
193 tagsEntries, prefs, addCommunityPermissions, addGuestPermissions,
194 themeDisplay);
195 }
196
197 public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
198 long userId, java.lang.String userName, long categoryId, long threadId,
199 long parentMessageId, java.lang.String subject, java.lang.String body,
200 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
201 boolean anonymous, double priority, java.lang.String[] tagsEntries,
202 javax.portlet.PortletPreferences prefs,
203 java.lang.String[] communityPermissions,
204 java.lang.String[] guestPermissions,
205 com.liferay.portal.theme.ThemeDisplay themeDisplay)
206 throws com.liferay.portal.PortalException,
207 com.liferay.portal.SystemException {
208 return _service.addMessage(userId, userName, categoryId, threadId,
209 parentMessageId, subject, body, files, anonymous, priority,
210 tagsEntries, prefs, communityPermissions, guestPermissions,
211 themeDisplay);
212 }
213
214 public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
215 java.lang.String uuid, long userId, java.lang.String userName,
216 long categoryId, long threadId, long parentMessageId,
217 java.lang.String subject, java.lang.String body,
218 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
219 boolean anonymous, double priority, java.lang.String[] tagsEntries,
220 javax.portlet.PortletPreferences prefs,
221 boolean addCommunityPermissions, boolean addGuestPermissions,
222 com.liferay.portal.theme.ThemeDisplay themeDisplay)
223 throws com.liferay.portal.PortalException,
224 com.liferay.portal.SystemException {
225 return _service.addMessage(uuid, userId, userName, categoryId,
226 threadId, parentMessageId, subject, body, files, anonymous,
227 priority, tagsEntries, prefs, addCommunityPermissions,
228 addGuestPermissions, themeDisplay);
229 }
230
231 public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
232 java.lang.String uuid, long userId, java.lang.String userName,
233 long categoryId, long threadId, long parentMessageId,
234 java.lang.String subject, java.lang.String body,
235 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
236 boolean anonymous, double priority, java.lang.String[] tagsEntries,
237 javax.portlet.PortletPreferences prefs,
238 java.lang.Boolean addCommunityPermissions,
239 java.lang.Boolean addGuestPermissions,
240 java.lang.String[] communityPermissions,
241 java.lang.String[] guestPermissions,
242 com.liferay.portal.theme.ThemeDisplay themeDisplay)
243 throws com.liferay.portal.PortalException,
244 com.liferay.portal.SystemException {
245 return _service.addMessage(uuid, userId, userName, categoryId,
246 threadId, parentMessageId, subject, body, files, anonymous,
247 priority, tagsEntries, prefs, addCommunityPermissions,
248 addGuestPermissions, communityPermissions, guestPermissions,
249 themeDisplay);
250 }
251
252 public static void addMessageResources(long categoryId, long messageId,
253 boolean addCommunityPermissions, boolean addGuestPermissions)
254 throws com.liferay.portal.PortalException,
255 com.liferay.portal.SystemException {
256 _service.addMessageResources(categoryId, messageId,
257 addCommunityPermissions, addGuestPermissions);
258 }
259
260 public static void addMessageResources(long categoryId,
261 java.lang.String topicId, long messageId,
262 boolean addCommunityPermissions, boolean addGuestPermissions)
263 throws com.liferay.portal.PortalException,
264 com.liferay.portal.SystemException {
265 _service.addMessageResources(categoryId, topicId, messageId,
266 addCommunityPermissions, addGuestPermissions);
267 }
268
269 public static void addMessageResources(
270 com.liferay.portlet.messageboards.model.MBCategory category,
271 com.liferay.portlet.messageboards.model.MBMessage message,
272 boolean addCommunityPermissions, boolean addGuestPermissions)
273 throws com.liferay.portal.PortalException,
274 com.liferay.portal.SystemException {
275 _service.addMessageResources(category, message,
276 addCommunityPermissions, addGuestPermissions);
277 }
278
279 public static void addMessageResources(long categoryId, long messageId,
280 java.lang.String[] communityPermissions,
281 java.lang.String[] guestPermissions)
282 throws com.liferay.portal.PortalException,
283 com.liferay.portal.SystemException {
284 _service.addMessageResources(categoryId, messageId,
285 communityPermissions, guestPermissions);
286 }
287
288 public static void addMessageResources(long categoryId,
289 java.lang.String topicId, long messageId,
290 java.lang.String[] communityPermissions,
291 java.lang.String[] guestPermissions)
292 throws com.liferay.portal.PortalException,
293 com.liferay.portal.SystemException {
294 _service.addMessageResources(categoryId, topicId, messageId,
295 communityPermissions, guestPermissions);
296 }
297
298 public static void addMessageResources(
299 com.liferay.portlet.messageboards.model.MBCategory category,
300 com.liferay.portlet.messageboards.model.MBMessage message,
301 java.lang.String[] communityPermissions,
302 java.lang.String[] guestPermissions)
303 throws com.liferay.portal.PortalException,
304 com.liferay.portal.SystemException {
305 _service.addMessageResources(category, message, communityPermissions,
306 guestPermissions);
307 }
308
309 public static void deleteDiscussionMessage(long messageId)
310 throws com.liferay.portal.PortalException,
311 com.liferay.portal.SystemException {
312 _service.deleteDiscussionMessage(messageId);
313 }
314
315 public static void deleteDiscussionMessages(java.lang.String className,
316 long classPK)
317 throws com.liferay.portal.PortalException,
318 com.liferay.portal.SystemException {
319 _service.deleteDiscussionMessages(className, classPK);
320 }
321
322 public static void deleteMessage(long messageId)
323 throws com.liferay.portal.PortalException,
324 com.liferay.portal.SystemException {
325 _service.deleteMessage(messageId);
326 }
327
328 public static void deleteMessage(
329 com.liferay.portlet.messageboards.model.MBMessage message)
330 throws com.liferay.portal.PortalException,
331 com.liferay.portal.SystemException {
332 _service.deleteMessage(message);
333 }
334
335 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
336 long categoryId, int start, int end)
337 throws com.liferay.portal.SystemException {
338 return _service.getCategoryMessages(categoryId, start, end);
339 }
340
341 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
342 long categoryId, int start, int end,
343 com.liferay.portal.kernel.util.OrderByComparator obc)
344 throws com.liferay.portal.SystemException {
345 return _service.getCategoryMessages(categoryId, start, end, obc);
346 }
347
348 public static int getCategoryMessagesCount(long categoryId)
349 throws com.liferay.portal.SystemException {
350 return _service.getCategoryMessagesCount(categoryId);
351 }
352
353 public static int getCategoriesMessagesCount(
354 java.util.List<Long> categoryIds)
355 throws com.liferay.portal.SystemException {
356 return _service.getCategoriesMessagesCount(categoryIds);
357 }
358
359 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCompanyMessages(
360 long companyId, int start, int end)
361 throws com.liferay.portal.SystemException {
362 return _service.getCompanyMessages(companyId, start, end);
363 }
364
365 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCompanyMessages(
366 long companyId, int start, int end,
367 com.liferay.portal.kernel.util.OrderByComparator obc)
368 throws com.liferay.portal.SystemException {
369 return _service.getCompanyMessages(companyId, start, end, obc);
370 }
371
372 public static int getCompanyMessagesCount(long companyId)
373 throws com.liferay.portal.SystemException {
374 return _service.getCompanyMessagesCount(companyId);
375 }
376
377 public static com.liferay.portlet.messageboards.model.MBMessageDisplay getDiscussionMessageDisplay(
378 long userId, java.lang.String className, long classPK)
379 throws com.liferay.portal.PortalException,
380 com.liferay.portal.SystemException {
381 return _service.getDiscussionMessageDisplay(userId, className, classPK);
382 }
383
384 public static int getDiscussionMessagesCount(long classNameId, long classPK)
385 throws com.liferay.portal.SystemException {
386 return _service.getDiscussionMessagesCount(classNameId, classPK);
387 }
388
389 public static java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> getDiscussions(
390 java.lang.String className) throws com.liferay.portal.SystemException {
391 return _service.getDiscussions(className);
392 }
393
394 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
395 long groupId, int start, int end)
396 throws com.liferay.portal.SystemException {
397 return _service.getGroupMessages(groupId, start, end);
398 }
399
400 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
401 long groupId, int start, int end,
402 com.liferay.portal.kernel.util.OrderByComparator obc)
403 throws com.liferay.portal.SystemException {
404 return _service.getGroupMessages(groupId, start, end, obc);
405 }
406
407 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
408 long groupId, long userId, int start, int end)
409 throws com.liferay.portal.SystemException {
410 return _service.getGroupMessages(groupId, userId, start, end);
411 }
412
413 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
414 long groupId, long userId, int start, int end,
415 com.liferay.portal.kernel.util.OrderByComparator obc)
416 throws com.liferay.portal.SystemException {
417 return _service.getGroupMessages(groupId, userId, start, end, obc);
418 }
419
420 public static int getGroupMessagesCount(long groupId)
421 throws com.liferay.portal.SystemException {
422 return _service.getGroupMessagesCount(groupId);
423 }
424
425 public static int getGroupMessagesCount(long groupId, long userId)
426 throws com.liferay.portal.SystemException {
427 return _service.getGroupMessagesCount(groupId, userId);
428 }
429
430 public static com.liferay.portlet.messageboards.model.MBMessage getMessage(
431 long messageId)
432 throws com.liferay.portal.PortalException,
433 com.liferay.portal.SystemException {
434 return _service.getMessage(messageId);
435 }
436
437 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getMessages(
438 java.lang.String className, long classPK)
439 throws com.liferay.portal.SystemException {
440 return _service.getMessages(className, classPK);
441 }
442
443 public static com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
444 long messageId)
445 throws com.liferay.portal.PortalException,
446 com.liferay.portal.SystemException {
447 return _service.getMessageDisplay(messageId);
448 }
449
450 public static com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
451 com.liferay.portlet.messageboards.model.MBMessage message)
452 throws com.liferay.portal.PortalException,
453 com.liferay.portal.SystemException {
454 return _service.getMessageDisplay(message);
455 }
456
457 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getNoAssetMessages()
458 throws com.liferay.portal.SystemException {
459 return _service.getNoAssetMessages();
460 }
461
462 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
463 long threadId) throws com.liferay.portal.SystemException {
464 return _service.getThreadMessages(threadId);
465 }
466
467 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
468 long threadId,
469 java.util.Comparator<com.liferay.portlet.messageboards.model.MBMessage> comparator)
470 throws com.liferay.portal.SystemException {
471 return _service.getThreadMessages(threadId, comparator);
472 }
473
474 public static int getThreadMessagesCount(long threadId)
475 throws com.liferay.portal.SystemException {
476 return _service.getThreadMessagesCount(threadId);
477 }
478
479 public static void subscribeMessage(long userId, long messageId)
480 throws com.liferay.portal.PortalException,
481 com.liferay.portal.SystemException {
482 _service.subscribeMessage(userId, messageId);
483 }
484
485 public static void unsubscribeMessage(long userId, long messageId)
486 throws com.liferay.portal.PortalException,
487 com.liferay.portal.SystemException {
488 _service.unsubscribeMessage(userId, messageId);
489 }
490
491 public static com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(
492 long userId, long messageId, java.lang.String subject,
493 java.lang.String body)
494 throws com.liferay.portal.PortalException,
495 com.liferay.portal.SystemException {
496 return _service.updateDiscussionMessage(userId, messageId, subject, body);
497 }
498
499 public static com.liferay.portlet.messageboards.model.MBMessage updateMessage(
500 long userId, long messageId, java.lang.String subject,
501 java.lang.String body,
502 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
503 java.util.List<String> existingFiles, double priority,
504 java.lang.String[] tagsEntries, javax.portlet.PortletPreferences prefs,
505 com.liferay.portal.theme.ThemeDisplay themeDisplay)
506 throws com.liferay.portal.PortalException,
507 com.liferay.portal.SystemException {
508 return _service.updateMessage(userId, messageId, subject, body, files,
509 existingFiles, priority, tagsEntries, prefs, themeDisplay);
510 }
511
512 public static com.liferay.portlet.messageboards.model.MBMessage updateMessage(
513 long messageId, java.util.Date createDate, java.util.Date modifiedDate)
514 throws com.liferay.portal.PortalException,
515 com.liferay.portal.SystemException {
516 return _service.updateMessage(messageId, createDate, modifiedDate);
517 }
518
519 public static com.liferay.portlet.messageboards.model.MBMessage updateMessage(
520 long messageId, java.lang.String body)
521 throws com.liferay.portal.PortalException,
522 com.liferay.portal.SystemException {
523 return _service.updateMessage(messageId, body);
524 }
525
526 public static void updateTagsAsset(long userId,
527 com.liferay.portlet.messageboards.model.MBMessage message,
528 java.lang.String[] tagsEntries)
529 throws com.liferay.portal.PortalException,
530 com.liferay.portal.SystemException {
531 _service.updateTagsAsset(userId, message, tagsEntries);
532 }
533
534 public static MBMessageLocalService getService() {
535 return _service;
536 }
537
538 public void setService(MBMessageLocalService service) {
539 _service = service;
540 }
541
542 private static MBMessageLocalService _service;
543 }