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