1
22
23 package com.liferay.portlet.messageboards.service;
24
25
26
46 public class MBMessageLocalServiceUtil {
47 public static com.liferay.portlet.messageboards.model.MBMessage addMBMessage(
48 com.liferay.portlet.messageboards.model.MBMessage mbMessage)
49 throws com.liferay.portal.SystemException {
50 return getService().addMBMessage(mbMessage);
51 }
52
53 public static com.liferay.portlet.messageboards.model.MBMessage createMBMessage(
54 long messageId) {
55 return getService().createMBMessage(messageId);
56 }
57
58 public static void deleteMBMessage(long messageId)
59 throws com.liferay.portal.PortalException,
60 com.liferay.portal.SystemException {
61 getService().deleteMBMessage(messageId);
62 }
63
64 public static void deleteMBMessage(
65 com.liferay.portlet.messageboards.model.MBMessage mbMessage)
66 throws com.liferay.portal.SystemException {
67 getService().deleteMBMessage(mbMessage);
68 }
69
70 public static java.util.List<Object> dynamicQuery(
71 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
72 throws com.liferay.portal.SystemException {
73 return getService().dynamicQuery(dynamicQuery);
74 }
75
76 public static java.util.List<Object> dynamicQuery(
77 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
78 int end) throws com.liferay.portal.SystemException {
79 return getService().dynamicQuery(dynamicQuery, start, end);
80 }
81
82 public static com.liferay.portlet.messageboards.model.MBMessage getMBMessage(
83 long messageId)
84 throws com.liferay.portal.PortalException,
85 com.liferay.portal.SystemException {
86 return getService().getMBMessage(messageId);
87 }
88
89 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getMBMessages(
90 int start, int end) throws com.liferay.portal.SystemException {
91 return getService().getMBMessages(start, end);
92 }
93
94 public static int getMBMessagesCount()
95 throws com.liferay.portal.SystemException {
96 return getService().getMBMessagesCount();
97 }
98
99 public static com.liferay.portlet.messageboards.model.MBMessage updateMBMessage(
100 com.liferay.portlet.messageboards.model.MBMessage mbMessage)
101 throws com.liferay.portal.SystemException {
102 return getService().updateMBMessage(mbMessage);
103 }
104
105 public static com.liferay.portlet.messageboards.model.MBMessage updateMBMessage(
106 com.liferay.portlet.messageboards.model.MBMessage mbMessage,
107 boolean merge) throws com.liferay.portal.SystemException {
108 return getService().updateMBMessage(mbMessage, merge);
109 }
110
111 public static com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
112 long userId, java.lang.String userName, java.lang.String className,
113 long classPK)
114 throws com.liferay.portal.PortalException,
115 com.liferay.portal.SystemException {
116 return getService()
117 .addDiscussionMessage(userId, userName, className, classPK);
118 }
119
120 public static com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
121 long userId, java.lang.String userName, long groupId,
122 java.lang.String className, long classPK, long threadId,
123 long parentMessageId, java.lang.String subject, java.lang.String body)
124 throws com.liferay.portal.PortalException,
125 com.liferay.portal.SystemException {
126 return getService()
127 .addDiscussionMessage(userId, userName, groupId, className,
128 classPK, threadId, parentMessageId, subject, body);
129 }
130
131 public static com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
132 long userId, java.lang.String userName, long groupId,
133 java.lang.String className, long classPK, long threadId,
134 long parentMessageId, java.lang.String subject, java.lang.String body,
135 com.liferay.portal.theme.ThemeDisplay themeDisplay)
136 throws com.liferay.portal.PortalException,
137 com.liferay.portal.SystemException {
138 return getService()
139 .addDiscussionMessage(userId, userName, groupId, className,
140 classPK, threadId, parentMessageId, subject, body, themeDisplay);
141 }
142
143 public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
144 long userId, java.lang.String userName, long categoryId,
145 java.lang.String subject, java.lang.String body,
146 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
147 boolean anonymous, double priority, java.lang.String[] tagsEntries,
148 javax.portlet.PortletPreferences prefs,
149 boolean addCommunityPermissions, boolean addGuestPermissions,
150 com.liferay.portal.theme.ThemeDisplay themeDisplay)
151 throws com.liferay.portal.PortalException,
152 com.liferay.portal.SystemException {
153 return getService()
154 .addMessage(userId, userName, categoryId, subject, body,
155 files, anonymous, priority, tagsEntries, prefs,
156 addCommunityPermissions, addGuestPermissions, themeDisplay);
157 }
158
159 public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
160 long userId, java.lang.String userName, long categoryId,
161 java.lang.String subject, java.lang.String body,
162 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
163 boolean anonymous, double priority, java.lang.String[] tagsEntries,
164 javax.portlet.PortletPreferences prefs,
165 java.lang.String[] communityPermissions,
166 java.lang.String[] guestPermissions,
167 com.liferay.portal.theme.ThemeDisplay themeDisplay)
168 throws com.liferay.portal.PortalException,
169 com.liferay.portal.SystemException {
170 return getService()
171 .addMessage(userId, userName, categoryId, subject, body,
172 files, anonymous, priority, tagsEntries, prefs,
173 communityPermissions, guestPermissions, themeDisplay);
174 }
175
176 public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
177 long userId, java.lang.String userName, long categoryId,
178 java.lang.String subject, java.lang.String body,
179 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
180 boolean anonymous, double priority, java.lang.String[] tagsEntries,
181 javax.portlet.PortletPreferences prefs,
182 java.lang.Boolean addCommunityPermissions,
183 java.lang.Boolean addGuestPermissions,
184 java.lang.String[] communityPermissions,
185 java.lang.String[] guestPermissions,
186 com.liferay.portal.theme.ThemeDisplay themeDisplay)
187 throws com.liferay.portal.PortalException,
188 com.liferay.portal.SystemException {
189 return getService()
190 .addMessage(userId, userName, categoryId, subject, body,
191 files, anonymous, priority, tagsEntries, prefs,
192 addCommunityPermissions, addGuestPermissions, communityPermissions,
193 guestPermissions, themeDisplay);
194 }
195
196 public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
197 long userId, java.lang.String userName, long categoryId, long threadId,
198 long parentMessageId, java.lang.String subject, java.lang.String body,
199 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
200 boolean anonymous, double priority, java.lang.String[] tagsEntries,
201 javax.portlet.PortletPreferences prefs,
202 boolean addCommunityPermissions, boolean addGuestPermissions,
203 com.liferay.portal.theme.ThemeDisplay themeDisplay)
204 throws com.liferay.portal.PortalException,
205 com.liferay.portal.SystemException {
206 return getService()
207 .addMessage(userId, userName, categoryId, threadId,
208 parentMessageId, subject, body, files, anonymous, priority,
209 tagsEntries, prefs, addCommunityPermissions, addGuestPermissions,
210 themeDisplay);
211 }
212
213 public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
214 long userId, java.lang.String userName, long categoryId, long threadId,
215 long parentMessageId, java.lang.String subject, java.lang.String body,
216 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
217 boolean anonymous, double priority, java.lang.String[] tagsEntries,
218 javax.portlet.PortletPreferences prefs,
219 java.lang.String[] communityPermissions,
220 java.lang.String[] guestPermissions,
221 com.liferay.portal.theme.ThemeDisplay themeDisplay)
222 throws com.liferay.portal.PortalException,
223 com.liferay.portal.SystemException {
224 return getService()
225 .addMessage(userId, userName, 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, 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 boolean addCommunityPermissions, boolean addGuestPermissions,
239 com.liferay.portal.theme.ThemeDisplay themeDisplay)
240 throws com.liferay.portal.PortalException,
241 com.liferay.portal.SystemException {
242 return getService()
243 .addMessage(uuid, userId, userName, categoryId, threadId,
244 parentMessageId, subject, body, files, anonymous, priority,
245 tagsEntries, prefs, addCommunityPermissions, addGuestPermissions,
246 themeDisplay);
247 }
248
249 public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
250 java.lang.String uuid, long userId, java.lang.String userName,
251 long categoryId, long threadId, long parentMessageId,
252 java.lang.String subject, java.lang.String body,
253 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
254 boolean anonymous, double priority, java.lang.String[] tagsEntries,
255 javax.portlet.PortletPreferences prefs,
256 java.lang.Boolean addCommunityPermissions,
257 java.lang.Boolean addGuestPermissions,
258 java.lang.String[] communityPermissions,
259 java.lang.String[] guestPermissions,
260 com.liferay.portal.theme.ThemeDisplay themeDisplay)
261 throws com.liferay.portal.PortalException,
262 com.liferay.portal.SystemException {
263 return getService()
264 .addMessage(uuid, userId, userName, categoryId, threadId,
265 parentMessageId, subject, body, files, anonymous, priority,
266 tagsEntries, prefs, addCommunityPermissions, addGuestPermissions,
267 communityPermissions, guestPermissions, themeDisplay);
268 }
269
270 public static void addMessageResources(long messageId,
271 boolean addCommunityPermissions, boolean addGuestPermissions)
272 throws com.liferay.portal.PortalException,
273 com.liferay.portal.SystemException {
274 getService()
275 .addMessageResources(messageId, addCommunityPermissions,
276 addGuestPermissions);
277 }
278
279 public static void addMessageResources(
280 com.liferay.portlet.messageboards.model.MBMessage message,
281 boolean addCommunityPermissions, boolean addGuestPermissions)
282 throws com.liferay.portal.PortalException,
283 com.liferay.portal.SystemException {
284 getService()
285 .addMessageResources(message, addCommunityPermissions,
286 addGuestPermissions);
287 }
288
289 public static void addMessageResources(long messageId,
290 java.lang.String[] communityPermissions,
291 java.lang.String[] guestPermissions)
292 throws com.liferay.portal.PortalException,
293 com.liferay.portal.SystemException {
294 getService()
295 .addMessageResources(messageId, communityPermissions,
296 guestPermissions);
297 }
298
299 public static void addMessageResources(
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 getService()
306 .addMessageResources(message, communityPermissions, guestPermissions);
307 }
308
309 public static void deleteDiscussionMessage(long messageId)
310 throws com.liferay.portal.PortalException,
311 com.liferay.portal.SystemException {
312 getService().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 getService().deleteDiscussionMessages(className, classPK);
320 }
321
322 public static void deleteMessage(long messageId)
323 throws com.liferay.portal.PortalException,
324 com.liferay.portal.SystemException {
325 getService().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 getService().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 getService().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 getService().getCategoryMessages(categoryId, start, end, obc);
346 }
347
348 public static int getCategoryMessagesCount(long categoryId)
349 throws com.liferay.portal.SystemException {
350 return getService().getCategoryMessagesCount(categoryId);
351 }
352
353 public static int getCategoriesMessagesCount(
354 java.util.List<Long> categoryIds)
355 throws com.liferay.portal.SystemException {
356 return getService().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 getService().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 getService().getCompanyMessages(companyId, start, end, obc);
370 }
371
372 public static int getCompanyMessagesCount(long companyId)
373 throws com.liferay.portal.SystemException {
374 return getService().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 getService()
382 .getDiscussionMessageDisplay(userId, className, classPK);
383 }
384
385 public static com.liferay.portlet.messageboards.model.MBMessageDisplay getDiscussionMessageDisplay(
386 long userId, java.lang.String className, long classPK,
387 java.lang.String threadView)
388 throws com.liferay.portal.PortalException,
389 com.liferay.portal.SystemException {
390 return getService()
391 .getDiscussionMessageDisplay(userId, className, classPK,
392 threadView);
393 }
394
395 public static int getDiscussionMessagesCount(long classNameId, long classPK)
396 throws com.liferay.portal.SystemException {
397 return getService().getDiscussionMessagesCount(classNameId, classPK);
398 }
399
400 public static java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> getDiscussions(
401 java.lang.String className) throws com.liferay.portal.SystemException {
402 return getService().getDiscussions(className);
403 }
404
405 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
406 long groupId, int start, int end)
407 throws com.liferay.portal.SystemException {
408 return getService().getGroupMessages(groupId, start, end);
409 }
410
411 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
412 long groupId, int start, int end,
413 com.liferay.portal.kernel.util.OrderByComparator obc)
414 throws com.liferay.portal.SystemException {
415 return getService().getGroupMessages(groupId, start, end, obc);
416 }
417
418 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
419 long groupId, long userId, int start, int end)
420 throws com.liferay.portal.SystemException {
421 return getService().getGroupMessages(groupId, userId, start, end);
422 }
423
424 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
425 long groupId, long userId, int start, int end,
426 com.liferay.portal.kernel.util.OrderByComparator obc)
427 throws com.liferay.portal.SystemException {
428 return getService().getGroupMessages(groupId, userId, start, end, obc);
429 }
430
431 public static int getGroupMessagesCount(long groupId)
432 throws com.liferay.portal.SystemException {
433 return getService().getGroupMessagesCount(groupId);
434 }
435
436 public static int getGroupMessagesCount(long groupId, long userId)
437 throws com.liferay.portal.SystemException {
438 return getService().getGroupMessagesCount(groupId, userId);
439 }
440
441 public static com.liferay.portlet.messageboards.model.MBMessage getMessage(
442 long messageId)
443 throws com.liferay.portal.PortalException,
444 com.liferay.portal.SystemException {
445 return getService().getMessage(messageId);
446 }
447
448 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getMessages(
449 java.lang.String className, long classPK)
450 throws com.liferay.portal.SystemException {
451 return getService().getMessages(className, classPK);
452 }
453
454 public static com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
455 long messageId)
456 throws com.liferay.portal.PortalException,
457 com.liferay.portal.SystemException {
458 return getService().getMessageDisplay(messageId);
459 }
460
461 public static com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
462 long messageId, java.lang.String threadView)
463 throws com.liferay.portal.PortalException,
464 com.liferay.portal.SystemException {
465 return getService().getMessageDisplay(messageId, threadView);
466 }
467
468 public static com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
469 com.liferay.portlet.messageboards.model.MBMessage message)
470 throws com.liferay.portal.PortalException,
471 com.liferay.portal.SystemException {
472 return getService().getMessageDisplay(message);
473 }
474
475 public static com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
476 com.liferay.portlet.messageboards.model.MBMessage message,
477 java.lang.String threadView)
478 throws com.liferay.portal.PortalException,
479 com.liferay.portal.SystemException {
480 return getService().getMessageDisplay(message, threadView);
481 }
482
483 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getNoAssetMessages()
484 throws com.liferay.portal.SystemException {
485 return getService().getNoAssetMessages();
486 }
487
488 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
489 long threadId) throws com.liferay.portal.SystemException {
490 return getService().getThreadMessages(threadId);
491 }
492
493 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
494 long threadId,
495 java.util.Comparator<com.liferay.portlet.messageboards.model.MBMessage> comparator)
496 throws com.liferay.portal.SystemException {
497 return getService().getThreadMessages(threadId, comparator);
498 }
499
500 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
501 long threadId, int start, int end)
502 throws com.liferay.portal.SystemException {
503 return getService().getThreadMessages(threadId, start, end);
504 }
505
506 public static int getThreadMessagesCount(long threadId)
507 throws com.liferay.portal.SystemException {
508 return getService().getThreadMessagesCount(threadId);
509 }
510
511 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadRepliesMessages(
512 long threadId, int start, int end)
513 throws com.liferay.portal.SystemException {
514 return getService().getThreadRepliesMessages(threadId, start, end);
515 }
516
517 public static void reIndex(long messageId)
518 throws com.liferay.portal.SystemException {
519 getService().reIndex(messageId);
520 }
521
522 public static void reIndex(
523 com.liferay.portlet.messageboards.model.MBMessage message)
524 throws com.liferay.portal.SystemException {
525 getService().reIndex(message);
526 }
527
528 public static void subscribeMessage(long userId, long messageId)
529 throws com.liferay.portal.PortalException,
530 com.liferay.portal.SystemException {
531 getService().subscribeMessage(userId, messageId);
532 }
533
534 public static void unsubscribeMessage(long userId, long messageId)
535 throws com.liferay.portal.PortalException,
536 com.liferay.portal.SystemException {
537 getService().unsubscribeMessage(userId, messageId);
538 }
539
540 public static com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(
541 long userId, long messageId, java.lang.String subject,
542 java.lang.String body)
543 throws com.liferay.portal.PortalException,
544 com.liferay.portal.SystemException {
545 return getService()
546 .updateDiscussionMessage(userId, messageId, subject, body);
547 }
548
549 public static com.liferay.portlet.messageboards.model.MBMessage updateMessage(
550 long userId, long messageId, java.lang.String subject,
551 java.lang.String body,
552 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
553 java.util.List<String> existingFiles, double priority,
554 java.lang.String[] tagsEntries, javax.portlet.PortletPreferences prefs,
555 com.liferay.portal.theme.ThemeDisplay themeDisplay)
556 throws com.liferay.portal.PortalException,
557 com.liferay.portal.SystemException {
558 return getService()
559 .updateMessage(userId, messageId, subject, body, files,
560 existingFiles, priority, tagsEntries, prefs, themeDisplay);
561 }
562
563 public static com.liferay.portlet.messageboards.model.MBMessage updateMessage(
564 long messageId, java.util.Date createDate, java.util.Date modifiedDate)
565 throws com.liferay.portal.PortalException,
566 com.liferay.portal.SystemException {
567 return getService().updateMessage(messageId, createDate, modifiedDate);
568 }
569
570 public static com.liferay.portlet.messageboards.model.MBMessage updateMessage(
571 long messageId, java.lang.String body)
572 throws com.liferay.portal.PortalException,
573 com.liferay.portal.SystemException {
574 return getService().updateMessage(messageId, body);
575 }
576
577 public static void updateTagsAsset(long userId,
578 com.liferay.portlet.messageboards.model.MBMessage message,
579 java.lang.String[] tagsEntries)
580 throws com.liferay.portal.PortalException,
581 com.liferay.portal.SystemException {
582 getService().updateTagsAsset(userId, message, tagsEntries);
583 }
584
585 public static MBMessageLocalService getService() {
586 if (_service == null) {
587 throw new RuntimeException("MBMessageLocalService is not set");
588 }
589
590 return _service;
591 }
592
593 public void setService(MBMessageLocalService service) {
594 _service = service;
595 }
596
597 private static MBMessageLocalService _service;
598 }