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