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