1
22
23 package com.liferay.portlet.messageboards.service;
24
25
26
53 public class MBMessageLocalServiceUtil {
54 public static com.liferay.portlet.messageboards.model.MBMessage addMBMessage(
55 com.liferay.portlet.messageboards.model.MBMessage mbMessage)
56 throws com.liferay.portal.SystemException {
57 MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory.getService();
58
59 return mbMessageLocalService.addMBMessage(mbMessage);
60 }
61
62 public static void deleteMBMessage(long messageId)
63 throws com.liferay.portal.PortalException,
64 com.liferay.portal.SystemException {
65 MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory.getService();
66
67 mbMessageLocalService.deleteMBMessage(messageId);
68 }
69
70 public static void deleteMBMessage(
71 com.liferay.portlet.messageboards.model.MBMessage mbMessage)
72 throws com.liferay.portal.SystemException {
73 MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory.getService();
74
75 mbMessageLocalService.deleteMBMessage(mbMessage);
76 }
77
78 public static java.util.List<Object> dynamicQuery(
79 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
80 throws com.liferay.portal.SystemException {
81 MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory.getService();
82
83 return mbMessageLocalService.dynamicQuery(dynamicQuery);
84 }
85
86 public static java.util.List<Object> dynamicQuery(
87 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
88 int end) throws com.liferay.portal.SystemException {
89 MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory.getService();
90
91 return mbMessageLocalService.dynamicQuery(dynamicQuery, start, end);
92 }
93
94 public static com.liferay.portlet.messageboards.model.MBMessage getMBMessage(
95 long messageId)
96 throws com.liferay.portal.PortalException,
97 com.liferay.portal.SystemException {
98 MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory.getService();
99
100 return mbMessageLocalService.getMBMessage(messageId);
101 }
102
103 public static com.liferay.portlet.messageboards.model.MBMessage updateMBMessage(
104 com.liferay.portlet.messageboards.model.MBMessage mbMessage)
105 throws com.liferay.portal.SystemException {
106 MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory.getService();
107
108 return mbMessageLocalService.updateMBMessage(mbMessage);
109 }
110
111 public static com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
112 long userId, java.lang.String userName, java.lang.String subject,
113 java.lang.String body)
114 throws com.liferay.portal.PortalException,
115 com.liferay.portal.SystemException {
116 MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory.getService();
117
118 return mbMessageLocalService.addDiscussionMessage(userId, userName,
119 subject, body);
120 }
121
122 public static com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
123 long userId, java.lang.String userName, long groupId,
124 java.lang.String className, long classPK, long threadId,
125 long parentMessageId, java.lang.String subject, java.lang.String body)
126 throws com.liferay.portal.PortalException,
127 com.liferay.portal.SystemException {
128 MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory.getService();
129
130 return mbMessageLocalService.addDiscussionMessage(userId, userName,
131 groupId, className, classPK, threadId, parentMessageId, subject,
132 body);
133 }
134
135 public static com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
136 long userId, java.lang.String userName, long groupId,
137 java.lang.String className, long classPK, long threadId,
138 long parentMessageId, java.lang.String subject, java.lang.String body,
139 com.liferay.portal.theme.ThemeDisplay themeDisplay)
140 throws com.liferay.portal.PortalException,
141 com.liferay.portal.SystemException {
142 MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory.getService();
143
144 return mbMessageLocalService.addDiscussionMessage(userId, userName,
145 groupId, className, classPK, threadId, parentMessageId, subject,
146 body, themeDisplay);
147 }
148
149 public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
150 long userId, java.lang.String userName, long categoryId,
151 java.lang.String subject, java.lang.String body,
152 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
153 boolean anonymous, double priority, java.lang.String[] tagsEntries,
154 javax.portlet.PortletPreferences prefs,
155 boolean addCommunityPermissions, boolean addGuestPermissions,
156 com.liferay.portal.theme.ThemeDisplay themeDisplay)
157 throws com.liferay.portal.PortalException,
158 com.liferay.portal.SystemException {
159 MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory.getService();
160
161 return mbMessageLocalService.addMessage(userId, userName, categoryId,
162 subject, body, files, anonymous, priority, tagsEntries, prefs,
163 addCommunityPermissions, addGuestPermissions, themeDisplay);
164 }
165
166 public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
167 long userId, java.lang.String userName, long categoryId,
168 java.lang.String subject, java.lang.String body,
169 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
170 boolean anonymous, double priority, java.lang.String[] tagsEntries,
171 javax.portlet.PortletPreferences prefs,
172 java.lang.String[] communityPermissions,
173 java.lang.String[] guestPermissions,
174 com.liferay.portal.theme.ThemeDisplay themeDisplay)
175 throws com.liferay.portal.PortalException,
176 com.liferay.portal.SystemException {
177 MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory.getService();
178
179 return mbMessageLocalService.addMessage(userId, userName, categoryId,
180 subject, body, files, anonymous, priority, tagsEntries, prefs,
181 communityPermissions, guestPermissions, themeDisplay);
182 }
183
184 public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
185 long userId, java.lang.String userName, long categoryId,
186 java.lang.String subject, java.lang.String body,
187 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
188 boolean anonymous, double priority, java.lang.String[] tagsEntries,
189 javax.portlet.PortletPreferences prefs,
190 java.lang.Boolean addCommunityPermissions,
191 java.lang.Boolean addGuestPermissions,
192 java.lang.String[] communityPermissions,
193 java.lang.String[] guestPermissions,
194 com.liferay.portal.theme.ThemeDisplay themeDisplay)
195 throws com.liferay.portal.PortalException,
196 com.liferay.portal.SystemException {
197 MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory.getService();
198
199 return mbMessageLocalService.addMessage(userId, userName, categoryId,
200 subject, body, files, anonymous, priority, tagsEntries, prefs,
201 addCommunityPermissions, addGuestPermissions, communityPermissions,
202 guestPermissions, themeDisplay);
203 }
204
205 public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
206 long userId, java.lang.String userName, long categoryId, long threadId,
207 long parentMessageId, java.lang.String subject, java.lang.String body,
208 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
209 boolean anonymous, double priority, java.lang.String[] tagsEntries,
210 javax.portlet.PortletPreferences prefs,
211 boolean addCommunityPermissions, boolean addGuestPermissions,
212 com.liferay.portal.theme.ThemeDisplay themeDisplay)
213 throws com.liferay.portal.PortalException,
214 com.liferay.portal.SystemException {
215 MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory.getService();
216
217 return mbMessageLocalService.addMessage(userId, userName, categoryId,
218 threadId, parentMessageId, subject, body, files, anonymous,
219 priority, tagsEntries, prefs, addCommunityPermissions,
220 addGuestPermissions, themeDisplay);
221 }
222
223 public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
224 long userId, java.lang.String userName, long categoryId, long threadId,
225 long parentMessageId, java.lang.String subject, java.lang.String body,
226 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
227 boolean anonymous, double priority, java.lang.String[] tagsEntries,
228 javax.portlet.PortletPreferences prefs,
229 java.lang.String[] communityPermissions,
230 java.lang.String[] guestPermissions,
231 com.liferay.portal.theme.ThemeDisplay themeDisplay)
232 throws com.liferay.portal.PortalException,
233 com.liferay.portal.SystemException {
234 MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory.getService();
235
236 return mbMessageLocalService.addMessage(userId, userName, categoryId,
237 threadId, parentMessageId, subject, body, files, anonymous,
238 priority, tagsEntries, prefs, communityPermissions,
239 guestPermissions, themeDisplay);
240 }
241
242 public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
243 java.lang.String uuid, long userId, java.lang.String userName,
244 long categoryId, long threadId, long parentMessageId,
245 java.lang.String subject, java.lang.String body,
246 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
247 boolean anonymous, double priority, java.lang.String[] tagsEntries,
248 javax.portlet.PortletPreferences prefs,
249 boolean addCommunityPermissions, boolean addGuestPermissions,
250 com.liferay.portal.theme.ThemeDisplay themeDisplay)
251 throws com.liferay.portal.PortalException,
252 com.liferay.portal.SystemException {
253 MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory.getService();
254
255 return mbMessageLocalService.addMessage(uuid, userId, userName,
256 categoryId, threadId, parentMessageId, subject, body, files,
257 anonymous, priority, tagsEntries, prefs, addCommunityPermissions,
258 addGuestPermissions, themeDisplay);
259 }
260
261 public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
262 java.lang.String uuid, long userId, java.lang.String userName,
263 long categoryId, long threadId, long parentMessageId,
264 java.lang.String subject, java.lang.String body,
265 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
266 boolean anonymous, double priority, java.lang.String[] tagsEntries,
267 javax.portlet.PortletPreferences prefs,
268 java.lang.Boolean addCommunityPermissions,
269 java.lang.Boolean addGuestPermissions,
270 java.lang.String[] communityPermissions,
271 java.lang.String[] guestPermissions,
272 com.liferay.portal.theme.ThemeDisplay themeDisplay)
273 throws com.liferay.portal.PortalException,
274 com.liferay.portal.SystemException {
275 MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory.getService();
276
277 return mbMessageLocalService.addMessage(uuid, userId, userName,
278 categoryId, threadId, parentMessageId, subject, body, files,
279 anonymous, priority, tagsEntries, prefs, addCommunityPermissions,
280 addGuestPermissions, communityPermissions, guestPermissions,
281 themeDisplay);
282 }
283
284 public static void addMessageResources(long categoryId, long messageId,
285 boolean addCommunityPermissions, boolean addGuestPermissions)
286 throws com.liferay.portal.PortalException,
287 com.liferay.portal.SystemException {
288 MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory.getService();
289
290 mbMessageLocalService.addMessageResources(categoryId, messageId,
291 addCommunityPermissions, addGuestPermissions);
292 }
293
294 public static void addMessageResources(long categoryId,
295 java.lang.String topicId, long messageId,
296 boolean addCommunityPermissions, boolean addGuestPermissions)
297 throws com.liferay.portal.PortalException,
298 com.liferay.portal.SystemException {
299 MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory.getService();
300
301 mbMessageLocalService.addMessageResources(categoryId, topicId,
302 messageId, addCommunityPermissions, addGuestPermissions);
303 }
304
305 public static void addMessageResources(
306 com.liferay.portlet.messageboards.model.MBCategory category,
307 com.liferay.portlet.messageboards.model.MBMessage message,
308 boolean addCommunityPermissions, boolean addGuestPermissions)
309 throws com.liferay.portal.PortalException,
310 com.liferay.portal.SystemException {
311 MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory.getService();
312
313 mbMessageLocalService.addMessageResources(category, message,
314 addCommunityPermissions, addGuestPermissions);
315 }
316
317 public static void addMessageResources(long categoryId, long messageId,
318 java.lang.String[] communityPermissions,
319 java.lang.String[] guestPermissions)
320 throws com.liferay.portal.PortalException,
321 com.liferay.portal.SystemException {
322 MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory.getService();
323
324 mbMessageLocalService.addMessageResources(categoryId, messageId,
325 communityPermissions, guestPermissions);
326 }
327
328 public static void addMessageResources(long categoryId,
329 java.lang.String topicId, long messageId,
330 java.lang.String[] communityPermissions,
331 java.lang.String[] guestPermissions)
332 throws com.liferay.portal.PortalException,
333 com.liferay.portal.SystemException {
334 MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory.getService();
335
336 mbMessageLocalService.addMessageResources(categoryId, topicId,
337 messageId, communityPermissions, guestPermissions);
338 }
339
340 public static void addMessageResources(
341 com.liferay.portlet.messageboards.model.MBCategory category,
342 com.liferay.portlet.messageboards.model.MBMessage message,
343 java.lang.String[] communityPermissions,
344 java.lang.String[] guestPermissions)
345 throws com.liferay.portal.PortalException,
346 com.liferay.portal.SystemException {
347 MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory.getService();
348
349 mbMessageLocalService.addMessageResources(category, message,
350 communityPermissions, guestPermissions);
351 }
352
353 public static void deleteDiscussionMessage(long messageId)
354 throws com.liferay.portal.PortalException,
355 com.liferay.portal.SystemException {
356 MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory.getService();
357
358 mbMessageLocalService.deleteDiscussionMessage(messageId);
359 }
360
361 public static void deleteDiscussionMessages(java.lang.String className,
362 long classPK)
363 throws com.liferay.portal.PortalException,
364 com.liferay.portal.SystemException {
365 MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory.getService();
366
367 mbMessageLocalService.deleteDiscussionMessages(className, classPK);
368 }
369
370 public static void deleteMessage(long messageId)
371 throws com.liferay.portal.PortalException,
372 com.liferay.portal.SystemException {
373 MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory.getService();
374
375 mbMessageLocalService.deleteMessage(messageId);
376 }
377
378 public static void deleteMessage(
379 com.liferay.portlet.messageboards.model.MBMessage message)
380 throws com.liferay.portal.PortalException,
381 com.liferay.portal.SystemException {
382 MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory.getService();
383
384 mbMessageLocalService.deleteMessage(message);
385 }
386
387 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
388 long categoryId, int start, int end)
389 throws com.liferay.portal.SystemException {
390 MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory.getService();
391
392 return mbMessageLocalService.getCategoryMessages(categoryId, start, end);
393 }
394
395 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
396 long categoryId, int start, int end,
397 com.liferay.portal.kernel.util.OrderByComparator obc)
398 throws com.liferay.portal.SystemException {
399 MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory.getService();
400
401 return mbMessageLocalService.getCategoryMessages(categoryId, start,
402 end, obc);
403 }
404
405 public static int getCategoryMessagesCount(long categoryId)
406 throws com.liferay.portal.SystemException {
407 MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory.getService();
408
409 return mbMessageLocalService.getCategoryMessagesCount(categoryId);
410 }
411
412 public static int getCategoriesMessagesCount(
413 java.util.List<Long> categoryIds)
414 throws com.liferay.portal.SystemException {
415 MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory.getService();
416
417 return mbMessageLocalService.getCategoriesMessagesCount(categoryIds);
418 }
419
420 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCompanyMessages(
421 long companyId, int start, int end)
422 throws com.liferay.portal.SystemException {
423 MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory.getService();
424
425 return mbMessageLocalService.getCompanyMessages(companyId, start, end);
426 }
427
428 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCompanyMessages(
429 long companyId, int start, int end,
430 com.liferay.portal.kernel.util.OrderByComparator obc)
431 throws com.liferay.portal.SystemException {
432 MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory.getService();
433
434 return mbMessageLocalService.getCompanyMessages(companyId, start, end,
435 obc);
436 }
437
438 public static int getCompanyMessagesCount(long companyId)
439 throws com.liferay.portal.SystemException {
440 MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory.getService();
441
442 return mbMessageLocalService.getCompanyMessagesCount(companyId);
443 }
444
445 public static com.liferay.portlet.messageboards.model.MBMessageDisplay getDiscussionMessageDisplay(
446 long userId, java.lang.String className, long classPK)
447 throws com.liferay.portal.PortalException,
448 com.liferay.portal.SystemException {
449 MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory.getService();
450
451 return mbMessageLocalService.getDiscussionMessageDisplay(userId,
452 className, classPK);
453 }
454
455 public static int getDiscussionMessagesCount(long classNameId, long classPK)
456 throws com.liferay.portal.SystemException {
457 MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory.getService();
458
459 return mbMessageLocalService.getDiscussionMessagesCount(classNameId,
460 classPK);
461 }
462
463 public static java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> getDiscussions(
464 java.lang.String className) throws com.liferay.portal.SystemException {
465 MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory.getService();
466
467 return mbMessageLocalService.getDiscussions(className);
468 }
469
470 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
471 long groupId, int start, int end)
472 throws com.liferay.portal.SystemException {
473 MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory.getService();
474
475 return mbMessageLocalService.getGroupMessages(groupId, start, end);
476 }
477
478 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
479 long groupId, int start, int end,
480 com.liferay.portal.kernel.util.OrderByComparator obc)
481 throws com.liferay.portal.SystemException {
482 MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory.getService();
483
484 return mbMessageLocalService.getGroupMessages(groupId, start, end, obc);
485 }
486
487 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
488 long groupId, long userId, int start, int end)
489 throws com.liferay.portal.SystemException {
490 MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory.getService();
491
492 return mbMessageLocalService.getGroupMessages(groupId, userId, start,
493 end);
494 }
495
496 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
497 long groupId, long userId, int start, int end,
498 com.liferay.portal.kernel.util.OrderByComparator obc)
499 throws com.liferay.portal.SystemException {
500 MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory.getService();
501
502 return mbMessageLocalService.getGroupMessages(groupId, userId, start,
503 end, obc);
504 }
505
506 public static int getGroupMessagesCount(long groupId)
507 throws com.liferay.portal.SystemException {
508 MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory.getService();
509
510 return mbMessageLocalService.getGroupMessagesCount(groupId);
511 }
512
513 public static int getGroupMessagesCount(long groupId, long userId)
514 throws com.liferay.portal.SystemException {
515 MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory.getService();
516
517 return mbMessageLocalService.getGroupMessagesCount(groupId, userId);
518 }
519
520 public static com.liferay.portlet.messageboards.model.MBMessage getMessage(
521 long messageId)
522 throws com.liferay.portal.PortalException,
523 com.liferay.portal.SystemException {
524 MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory.getService();
525
526 return mbMessageLocalService.getMessage(messageId);
527 }
528
529 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getMessages(
530 java.lang.String className, long classPK)
531 throws com.liferay.portal.SystemException {
532 MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory.getService();
533
534 return mbMessageLocalService.getMessages(className, classPK);
535 }
536
537 public static com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
538 long messageId)
539 throws com.liferay.portal.PortalException,
540 com.liferay.portal.SystemException {
541 MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory.getService();
542
543 return mbMessageLocalService.getMessageDisplay(messageId);
544 }
545
546 public static com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
547 com.liferay.portlet.messageboards.model.MBMessage message)
548 throws com.liferay.portal.PortalException,
549 com.liferay.portal.SystemException {
550 MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory.getService();
551
552 return mbMessageLocalService.getMessageDisplay(message);
553 }
554
555 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getNoAssetMessages()
556 throws com.liferay.portal.SystemException {
557 MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory.getService();
558
559 return mbMessageLocalService.getNoAssetMessages();
560 }
561
562 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
563 long threadId) throws com.liferay.portal.SystemException {
564 MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory.getService();
565
566 return mbMessageLocalService.getThreadMessages(threadId);
567 }
568
569 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
570 long threadId,
571 java.util.Comparator<com.liferay.portlet.messageboards.model.MBMessage> comparator)
572 throws com.liferay.portal.SystemException {
573 MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory.getService();
574
575 return mbMessageLocalService.getThreadMessages(threadId, comparator);
576 }
577
578 public static int getThreadMessagesCount(long threadId)
579 throws com.liferay.portal.SystemException {
580 MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory.getService();
581
582 return mbMessageLocalService.getThreadMessagesCount(threadId);
583 }
584
585 public static void subscribeMessage(long userId, long messageId)
586 throws com.liferay.portal.PortalException,
587 com.liferay.portal.SystemException {
588 MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory.getService();
589
590 mbMessageLocalService.subscribeMessage(userId, messageId);
591 }
592
593 public static void unsubscribeMessage(long userId, long messageId)
594 throws com.liferay.portal.PortalException,
595 com.liferay.portal.SystemException {
596 MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory.getService();
597
598 mbMessageLocalService.unsubscribeMessage(userId, messageId);
599 }
600
601 public static com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(
602 long userId, long messageId, java.lang.String subject,
603 java.lang.String body)
604 throws com.liferay.portal.PortalException,
605 com.liferay.portal.SystemException {
606 MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory.getService();
607
608 return mbMessageLocalService.updateDiscussionMessage(userId, messageId,
609 subject, body);
610 }
611
612 public static com.liferay.portlet.messageboards.model.MBMessage updateMessage(
613 long userId, long messageId, java.lang.String subject,
614 java.lang.String body,
615 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
616 java.util.List<String> existingFiles, double priority,
617 java.lang.String[] tagsEntries, javax.portlet.PortletPreferences prefs,
618 com.liferay.portal.theme.ThemeDisplay themeDisplay)
619 throws com.liferay.portal.PortalException,
620 com.liferay.portal.SystemException {
621 MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory.getService();
622
623 return mbMessageLocalService.updateMessage(userId, messageId, subject,
624 body, files, existingFiles, priority, tagsEntries, prefs,
625 themeDisplay);
626 }
627
628 public static com.liferay.portlet.messageboards.model.MBMessage updateMessage(
629 long messageId, java.util.Date createDate, java.util.Date modifiedDate)
630 throws com.liferay.portal.PortalException,
631 com.liferay.portal.SystemException {
632 MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory.getService();
633
634 return mbMessageLocalService.updateMessage(messageId, createDate,
635 modifiedDate);
636 }
637
638 public static com.liferay.portlet.messageboards.model.MBMessage updateMessage(
639 long messageId, java.lang.String body)
640 throws com.liferay.portal.PortalException,
641 com.liferay.portal.SystemException {
642 MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory.getService();
643
644 return mbMessageLocalService.updateMessage(messageId, body);
645 }
646
647 public static void updateTagsAsset(long userId,
648 com.liferay.portlet.messageboards.model.MBMessage message,
649 java.lang.String[] tagsEntries)
650 throws com.liferay.portal.PortalException,
651 com.liferay.portal.SystemException {
652 MBMessageLocalService mbMessageLocalService = MBMessageLocalServiceFactory.getService();
653
654 mbMessageLocalService.updateTagsAsset(userId, message, tagsEntries);
655 }
656 }