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