1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
13   */
14  
15  package com.liferay.portlet.messageboards.service;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  
19  /**
20   * <a href="MBMessageLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
21   *
22   * <p>
23   * ServiceBuilder generated this class. Modifications in this class will be
24   * overwritten the next time is generated.
25   * </p>
26   *
27   * <p>
28   * This class provides static methods for the
29   * {@link MBMessageLocalService} bean. The static methods of
30   * this class calls the same methods of the bean instance. It's convenient to be
31   * able to just write one line to call a method on a bean instead of writing a
32   * lookup call and a method call.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       MBMessageLocalService
37   * @generated
38   */
39  public class MBMessageLocalServiceUtil {
40      public static com.liferay.portlet.messageboards.model.MBMessage addMBMessage(
41          com.liferay.portlet.messageboards.model.MBMessage mbMessage)
42          throws com.liferay.portal.SystemException {
43          return getService().addMBMessage(mbMessage);
44      }
45  
46      public static com.liferay.portlet.messageboards.model.MBMessage createMBMessage(
47          long messageId) {
48          return getService().createMBMessage(messageId);
49      }
50  
51      public static void deleteMBMessage(long messageId)
52          throws com.liferay.portal.PortalException,
53              com.liferay.portal.SystemException {
54          getService().deleteMBMessage(messageId);
55      }
56  
57      public static void deleteMBMessage(
58          com.liferay.portlet.messageboards.model.MBMessage mbMessage)
59          throws com.liferay.portal.SystemException {
60          getService().deleteMBMessage(mbMessage);
61      }
62  
63      public static java.util.List<Object> dynamicQuery(
64          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65          throws com.liferay.portal.SystemException {
66          return getService().dynamicQuery(dynamicQuery);
67      }
68  
69      public static java.util.List<Object> dynamicQuery(
70          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71          int end) throws com.liferay.portal.SystemException {
72          return getService().dynamicQuery(dynamicQuery, start, end);
73      }
74  
75      public static com.liferay.portlet.messageboards.model.MBMessage getMBMessage(
76          long messageId)
77          throws com.liferay.portal.PortalException,
78              com.liferay.portal.SystemException {
79          return getService().getMBMessage(messageId);
80      }
81  
82      public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getMBMessages(
83          int start, int end) throws com.liferay.portal.SystemException {
84          return getService().getMBMessages(start, end);
85      }
86  
87      public static int getMBMessagesCount()
88          throws com.liferay.portal.SystemException {
89          return getService().getMBMessagesCount();
90      }
91  
92      public static com.liferay.portlet.messageboards.model.MBMessage updateMBMessage(
93          com.liferay.portlet.messageboards.model.MBMessage mbMessage)
94          throws com.liferay.portal.SystemException {
95          return getService().updateMBMessage(mbMessage);
96      }
97  
98      public static com.liferay.portlet.messageboards.model.MBMessage updateMBMessage(
99          com.liferay.portlet.messageboards.model.MBMessage mbMessage,
100         boolean merge) throws com.liferay.portal.SystemException {
101         return getService().updateMBMessage(mbMessage, merge);
102     }
103 
104     public static com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
105         long userId, java.lang.String userName, long groupId,
106         java.lang.String className, long classPK, long threadId,
107         long parentMessageId, java.lang.String subject, java.lang.String body)
108         throws com.liferay.portal.PortalException,
109             com.liferay.portal.SystemException {
110         return getService()
111                    .addDiscussionMessage(userId, userName, groupId, className,
112             classPK, threadId, parentMessageId, subject, body);
113     }
114 
115     public static com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
116         long userId, java.lang.String userName, long groupId,
117         java.lang.String className, long classPK, long threadId,
118         long parentMessageId, java.lang.String subject, java.lang.String body,
119         com.liferay.portal.theme.ThemeDisplay themeDisplay)
120         throws com.liferay.portal.PortalException,
121             com.liferay.portal.SystemException {
122         return getService()
123                    .addDiscussionMessage(userId, userName, groupId, className,
124             classPK, threadId, parentMessageId, subject, body, themeDisplay);
125     }
126 
127     public static com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
128         long userId, java.lang.String userName, java.lang.String className,
129         long classPK)
130         throws com.liferay.portal.PortalException,
131             com.liferay.portal.SystemException {
132         return getService()
133                    .addDiscussionMessage(userId, userName, className, classPK);
134     }
135 
136     public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
137         long userId, java.lang.String userName, long categoryId, long threadId,
138         long parentMessageId, java.lang.String subject, java.lang.String body,
139         java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
140         boolean anonymous, double priority, java.lang.String[] tagsEntries,
141         javax.portlet.PortletPreferences prefs,
142         boolean addCommunityPermissions, boolean addGuestPermissions,
143         com.liferay.portal.theme.ThemeDisplay themeDisplay)
144         throws com.liferay.portal.PortalException,
145             com.liferay.portal.SystemException {
146         return getService()
147                    .addMessage(userId, userName, categoryId, threadId,
148             parentMessageId, subject, body, files, anonymous, priority,
149             tagsEntries, prefs, addCommunityPermissions, addGuestPermissions,
150             themeDisplay);
151     }
152 
153     public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
154         long userId, java.lang.String userName, long categoryId, long threadId,
155         long parentMessageId, 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, threadId,
166             parentMessageId, subject, body, files, anonymous, priority,
167             tagsEntries, prefs, communityPermissions, guestPermissions,
168             themeDisplay);
169     }
170 
171     public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
172         long userId, java.lang.String userName, long categoryId,
173         java.lang.String subject, java.lang.String body,
174         java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
175         boolean anonymous, double priority, java.lang.String[] tagsEntries,
176         javax.portlet.PortletPreferences prefs,
177         boolean addCommunityPermissions, boolean addGuestPermissions,
178         com.liferay.portal.theme.ThemeDisplay themeDisplay)
179         throws com.liferay.portal.PortalException,
180             com.liferay.portal.SystemException {
181         return getService()
182                    .addMessage(userId, userName, categoryId, subject, body,
183             files, anonymous, priority, tagsEntries, prefs,
184             addCommunityPermissions, addGuestPermissions, themeDisplay);
185     }
186 
187     public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
188         long userId, java.lang.String userName, long categoryId,
189         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         java.lang.Boolean addCommunityPermissions,
194         java.lang.Boolean addGuestPermissions,
195         java.lang.String[] communityPermissions,
196         java.lang.String[] guestPermissions,
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, subject, body,
202             files, anonymous, priority, tagsEntries, prefs,
203             addCommunityPermissions, addGuestPermissions, communityPermissions,
204             guestPermissions, themeDisplay);
205     }
206 
207     public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
208         long userId, java.lang.String userName, long categoryId,
209         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, subject, body,
220             files, anonymous, priority, tagsEntries, prefs,
221             communityPermissions, guestPermissions, themeDisplay);
222     }
223 
224     public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
225         java.lang.String uuid, long userId, java.lang.String userName,
226         long categoryId, long threadId, long parentMessageId,
227         java.lang.String subject, java.lang.String body,
228         java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
229         boolean anonymous, double priority, java.lang.String[] tagsEntries,
230         javax.portlet.PortletPreferences prefs,
231         boolean addCommunityPermissions, boolean addGuestPermissions,
232         com.liferay.portal.theme.ThemeDisplay themeDisplay)
233         throws com.liferay.portal.PortalException,
234             com.liferay.portal.SystemException {
235         return getService()
236                    .addMessage(uuid, userId, userName, categoryId, threadId,
237             parentMessageId, subject, body, files, anonymous, priority,
238             tagsEntries, prefs, addCommunityPermissions, addGuestPermissions,
239             themeDisplay);
240     }
241 
242     public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
243         java.lang.String uuid, long userId, java.lang.String userName,
244         long categoryId, long threadId, long parentMessageId,
245         java.lang.String subject, java.lang.String body,
246         java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
247         boolean anonymous, double priority, java.lang.String[] tagsEntries,
248         javax.portlet.PortletPreferences prefs,
249         java.lang.Boolean addCommunityPermissions,
250         java.lang.Boolean addGuestPermissions,
251         java.lang.String[] communityPermissions,
252         java.lang.String[] guestPermissions,
253         com.liferay.portal.theme.ThemeDisplay themeDisplay)
254         throws com.liferay.portal.PortalException,
255             com.liferay.portal.SystemException {
256         return getService()
257                    .addMessage(uuid, userId, userName, categoryId, threadId,
258             parentMessageId, subject, body, files, anonymous, priority,
259             tagsEntries, prefs, addCommunityPermissions, addGuestPermissions,
260             communityPermissions, guestPermissions, themeDisplay);
261     }
262 
263     public static void addMessageResources(long messageId,
264         boolean addCommunityPermissions, boolean addGuestPermissions)
265         throws com.liferay.portal.PortalException,
266             com.liferay.portal.SystemException {
267         getService()
268             .addMessageResources(messageId, addCommunityPermissions,
269             addGuestPermissions);
270     }
271 
272     public static void addMessageResources(long messageId,
273         java.lang.String[] communityPermissions,
274         java.lang.String[] guestPermissions)
275         throws com.liferay.portal.PortalException,
276             com.liferay.portal.SystemException {
277         getService()
278             .addMessageResources(messageId, communityPermissions,
279             guestPermissions);
280     }
281 
282     public static void addMessageResources(
283         com.liferay.portlet.messageboards.model.MBMessage message,
284         boolean addCommunityPermissions, boolean addGuestPermissions)
285         throws com.liferay.portal.PortalException,
286             com.liferay.portal.SystemException {
287         getService()
288             .addMessageResources(message, addCommunityPermissions,
289             addGuestPermissions);
290     }
291 
292     public static void addMessageResources(
293         com.liferay.portlet.messageboards.model.MBMessage message,
294         java.lang.String[] communityPermissions,
295         java.lang.String[] guestPermissions)
296         throws com.liferay.portal.PortalException,
297             com.liferay.portal.SystemException {
298         getService()
299             .addMessageResources(message, communityPermissions, guestPermissions);
300     }
301 
302     public static void deleteDiscussionMessage(long messageId)
303         throws com.liferay.portal.PortalException,
304             com.liferay.portal.SystemException {
305         getService().deleteDiscussionMessage(messageId);
306     }
307 
308     public static void deleteDiscussionMessages(java.lang.String className,
309         long classPK)
310         throws com.liferay.portal.PortalException,
311             com.liferay.portal.SystemException {
312         getService().deleteDiscussionMessages(className, classPK);
313     }
314 
315     public static void deleteMessage(long messageId)
316         throws com.liferay.portal.PortalException,
317             com.liferay.portal.SystemException {
318         getService().deleteMessage(messageId);
319     }
320 
321     public static void deleteMessage(
322         com.liferay.portlet.messageboards.model.MBMessage message)
323         throws com.liferay.portal.PortalException,
324             com.liferay.portal.SystemException {
325         getService().deleteMessage(message);
326     }
327 
328     public static int getCategoriesMessagesCount(
329         java.util.List<Long> categoryIds)
330         throws com.liferay.portal.SystemException {
331         return getService().getCategoriesMessagesCount(categoryIds);
332     }
333 
334     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
335         long categoryId, int start, int end)
336         throws com.liferay.portal.SystemException {
337         return getService().getCategoryMessages(categoryId, start, end);
338     }
339 
340     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
341         long categoryId, int start, int end,
342         com.liferay.portal.kernel.util.OrderByComparator obc)
343         throws com.liferay.portal.SystemException {
344         return getService().getCategoryMessages(categoryId, start, end, obc);
345     }
346 
347     public static int getCategoryMessagesCount(long categoryId)
348         throws com.liferay.portal.SystemException {
349         return getService().getCategoryMessagesCount(categoryId);
350     }
351 
352     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCompanyMessages(
353         long companyId, int start, int end)
354         throws com.liferay.portal.SystemException {
355         return getService().getCompanyMessages(companyId, start, end);
356     }
357 
358     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCompanyMessages(
359         long companyId, int start, int end,
360         com.liferay.portal.kernel.util.OrderByComparator obc)
361         throws com.liferay.portal.SystemException {
362         return getService().getCompanyMessages(companyId, start, end, obc);
363     }
364 
365     public static int getCompanyMessagesCount(long companyId)
366         throws com.liferay.portal.SystemException {
367         return getService().getCompanyMessagesCount(companyId);
368     }
369 
370     public static com.liferay.portlet.messageboards.model.MBMessageDisplay getDiscussionMessageDisplay(
371         long userId, java.lang.String className, long classPK)
372         throws com.liferay.portal.PortalException,
373             com.liferay.portal.SystemException {
374         return getService()
375                    .getDiscussionMessageDisplay(userId, className, classPK);
376     }
377 
378     public static com.liferay.portlet.messageboards.model.MBMessageDisplay getDiscussionMessageDisplay(
379         long userId, java.lang.String className, long classPK,
380         java.lang.String threadView)
381         throws com.liferay.portal.PortalException,
382             com.liferay.portal.SystemException {
383         return getService()
384                    .getDiscussionMessageDisplay(userId, className, classPK,
385             threadView);
386     }
387 
388     public static int getDiscussionMessagesCount(long classNameId, long classPK)
389         throws com.liferay.portal.SystemException {
390         return getService().getDiscussionMessagesCount(classNameId, classPK);
391     }
392 
393     public static java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> getDiscussions(
394         java.lang.String className) throws com.liferay.portal.SystemException {
395         return getService().getDiscussions(className);
396     }
397 
398     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
399         long groupId, int start, int end)
400         throws com.liferay.portal.SystemException {
401         return getService().getGroupMessages(groupId, start, end);
402     }
403 
404     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
405         long groupId, int start, int end,
406         com.liferay.portal.kernel.util.OrderByComparator obc)
407         throws com.liferay.portal.SystemException {
408         return getService().getGroupMessages(groupId, start, end, obc);
409     }
410 
411     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
412         long groupId, long userId, int start, int end)
413         throws com.liferay.portal.SystemException {
414         return getService().getGroupMessages(groupId, userId, start, end);
415     }
416 
417     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
418         long groupId, long userId, int start, int end,
419         com.liferay.portal.kernel.util.OrderByComparator obc)
420         throws com.liferay.portal.SystemException {
421         return getService().getGroupMessages(groupId, userId, start, end, obc);
422     }
423 
424     public static int getGroupMessagesCount(long groupId)
425         throws com.liferay.portal.SystemException {
426         return getService().getGroupMessagesCount(groupId);
427     }
428 
429     public static int getGroupMessagesCount(long groupId, long userId)
430         throws com.liferay.portal.SystemException {
431         return getService().getGroupMessagesCount(groupId, userId);
432     }
433 
434     public static com.liferay.portlet.messageboards.model.MBMessage getMessage(
435         long messageId)
436         throws com.liferay.portal.PortalException,
437             com.liferay.portal.SystemException {
438         return getService().getMessage(messageId);
439     }
440 
441     public static com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
442         long messageId)
443         throws com.liferay.portal.PortalException,
444             com.liferay.portal.SystemException {
445         return getService().getMessageDisplay(messageId);
446     }
447 
448     public static com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
449         long messageId, java.lang.String threadView)
450         throws com.liferay.portal.PortalException,
451             com.liferay.portal.SystemException {
452         return getService().getMessageDisplay(messageId, threadView);
453     }
454 
455     public static com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
456         com.liferay.portlet.messageboards.model.MBMessage message)
457         throws com.liferay.portal.PortalException,
458             com.liferay.portal.SystemException {
459         return getService().getMessageDisplay(message);
460     }
461 
462     public static com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
463         com.liferay.portlet.messageboards.model.MBMessage message,
464         java.lang.String threadView)
465         throws com.liferay.portal.PortalException,
466             com.liferay.portal.SystemException {
467         return getService().getMessageDisplay(message, threadView);
468     }
469 
470     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getMessages(
471         java.lang.String className, long classPK)
472         throws com.liferay.portal.SystemException {
473         return getService().getMessages(className, classPK);
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 int getPositionInThread(long messageId)
482         throws com.liferay.portal.PortalException,
483             com.liferay.portal.SystemException {
484         return getService().getPositionInThread(messageId);
485     }
486 
487     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
488         long threadId) throws com.liferay.portal.SystemException {
489         return getService().getThreadMessages(threadId);
490     }
491 
492     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
493         long threadId,
494         java.util.Comparator<com.liferay.portlet.messageboards.model.MBMessage> comparator)
495         throws com.liferay.portal.SystemException {
496         return getService().getThreadMessages(threadId, comparator);
497     }
498 
499     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
500         long threadId, int start, int end)
501         throws com.liferay.portal.SystemException {
502         return getService().getThreadMessages(threadId, start, end);
503     }
504 
505     public static int getThreadMessagesCount(long threadId)
506         throws com.liferay.portal.SystemException {
507         return getService().getThreadMessagesCount(threadId);
508     }
509 
510     public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadRepliesMessages(
511         long threadId, int start, int end)
512         throws com.liferay.portal.SystemException {
513         return getService().getThreadRepliesMessages(threadId, start, end);
514     }
515 
516     public static void reIndex(long messageId)
517         throws com.liferay.portal.SystemException {
518         getService().reIndex(messageId);
519     }
520 
521     public static void reIndex(
522         com.liferay.portlet.messageboards.model.MBMessage message)
523         throws com.liferay.portal.SystemException {
524         getService().reIndex(message);
525     }
526 
527     public static void subscribeMessage(long userId, long messageId)
528         throws com.liferay.portal.PortalException,
529             com.liferay.portal.SystemException {
530         getService().subscribeMessage(userId, messageId);
531     }
532 
533     public static void unsubscribeMessage(long userId, long messageId)
534         throws com.liferay.portal.PortalException,
535             com.liferay.portal.SystemException {
536         getService().unsubscribeMessage(userId, messageId);
537     }
538 
539     public static com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(
540         long userId, long messageId, java.lang.String subject,
541         java.lang.String body)
542         throws com.liferay.portal.PortalException,
543             com.liferay.portal.SystemException {
544         return getService()
545                    .updateDiscussionMessage(userId, messageId, subject, body);
546     }
547 
548     public static com.liferay.portlet.messageboards.model.MBMessage updateMessage(
549         long messageId, java.util.Date createDate, java.util.Date modifiedDate)
550         throws com.liferay.portal.PortalException,
551             com.liferay.portal.SystemException {
552         return getService().updateMessage(messageId, createDate, modifiedDate);
553     }
554 
555     public static com.liferay.portlet.messageboards.model.MBMessage updateMessage(
556         long userId, long messageId, java.lang.String subject,
557         java.lang.String body,
558         java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
559         java.util.List<String> existingFiles, double priority,
560         java.lang.String[] tagsEntries, javax.portlet.PortletPreferences prefs,
561         com.liferay.portal.theme.ThemeDisplay themeDisplay)
562         throws com.liferay.portal.PortalException,
563             com.liferay.portal.SystemException {
564         return getService()
565                    .updateMessage(userId, messageId, subject, body, files,
566             existingFiles, priority, tagsEntries, prefs, themeDisplay);
567     }
568 
569     public static com.liferay.portlet.messageboards.model.MBMessage updateMessage(
570         long messageId, java.lang.String body)
571         throws com.liferay.portal.PortalException,
572             com.liferay.portal.SystemException {
573         return getService().updateMessage(messageId, body);
574     }
575 
576     public static void updateTagsAsset(long userId,
577         com.liferay.portlet.messageboards.model.MBMessage message,
578         java.lang.String[] tagsEntries)
579         throws com.liferay.portal.PortalException,
580             com.liferay.portal.SystemException {
581         getService().updateTagsAsset(userId, message, tagsEntries);
582     }
583 
584     public static MBMessageLocalService getService() {
585         if (_service == null) {
586             _service = (MBMessageLocalService)PortalBeanLocatorUtil.locate(MBMessageLocalService.class.getName());
587         }
588 
589         return _service;
590     }
591 
592     public void setService(MBMessageLocalService service) {
593         _service = service;
594     }
595 
596     private static MBMessageLocalService _service;
597 }