com.liferay.portlet.messageboards.service
Class MBMessageLocalServiceUtil

java.lang.Object
  extended by com.liferay.portlet.messageboards.service.MBMessageLocalServiceUtil

public class MBMessageLocalServiceUtil
extends java.lang.Object

View Source

ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

This class provides static methods for the MBMessageLocalService bean. The static methods of this class calls the same methods of the bean instance. It's convenient to be able to just write one line to call a method on a bean instead of writing a lookup call and a method call.

Author:
Brian Wing Shun Chan
See Also:
MBMessageLocalService
Generated:

Constructor Summary
MBMessageLocalServiceUtil()
           
 
Method Summary
static MBMessage addDiscussionMessage(long userId, java.lang.String userName, java.lang.String className, long classPK, int status)
           
static MBMessage addDiscussionMessage(long userId, java.lang.String userName, java.lang.String className, long classPK, long threadId, long parentMessageId, java.lang.String subject, java.lang.String body, ServiceContext serviceContext)
           
static MBMessage addMBMessage(MBMessage mbMessage)
           
static MBMessage addMessage(long userId, java.lang.String userName, long groupId, long categoryId, long threadId, long parentMessageId, java.lang.String subject, java.lang.String body, java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String,byte[]>> files, boolean anonymous, double priority, boolean allowPingbacks, ServiceContext serviceContext)
           
static MBMessage addMessage(long userId, java.lang.String userName, long groupId, long categoryId, java.lang.String subject, java.lang.String body, java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String,byte[]>> files, boolean anonymous, double priority, boolean allowPingbacks, ServiceContext serviceContext)
           
static MBMessage addMessage(java.lang.String uuid, long userId, java.lang.String userName, long groupId, long categoryId, long threadId, long parentMessageId, java.lang.String subject, java.lang.String body, java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String,byte[]>> files, boolean anonymous, double priority, boolean allowPingbacks, ServiceContext serviceContext)
           
static void addMessageResources(long messageId, boolean addCommunityPermissions, boolean addGuestPermissions)
           
static void addMessageResources(long messageId, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
static void addMessageResources(MBMessage message, boolean addCommunityPermissions, boolean addGuestPermissions)
           
static void addMessageResources(MBMessage message, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
static MBMessage createMBMessage(long messageId)
           
static void deleteDiscussionMessage(long messageId)
           
static void deleteDiscussionMessages(java.lang.String className, long classPK)
           
static void deleteMBMessage(long messageId)
           
static void deleteMBMessage(MBMessage mbMessage)
           
static void deleteMessage(long messageId)
           
static void deleteMessage(MBMessage message)
           
static java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
static java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
static java.util.List<MBMessage> getCategoryMessages(long groupId, long categoryId, int status, int start, int end)
           
static java.util.List<MBMessage> getCategoryMessages(long groupId, long categoryId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static int getCategoryMessagesCount(long groupId, long categoryId, int status)
           
static java.util.List<MBMessage> getCompanyMessages(long companyId, int status, int start, int end)
           
static java.util.List<MBMessage> getCompanyMessages(long companyId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static int getCompanyMessagesCount(long companyId, int status)
           
static MBMessageDisplay getDiscussionMessageDisplay(long userId, java.lang.String className, long classPK, int status)
           
static MBMessageDisplay getDiscussionMessageDisplay(long userId, java.lang.String className, long classPK, int status, java.lang.String threadView)
           
static int getDiscussionMessagesCount(long classNameId, long classPK, int status)
           
static java.util.List<MBDiscussion> getDiscussions(java.lang.String className)
           
static java.util.List<MBMessage> getGroupMessages(long groupId, int status, int start, int end)
           
static java.util.List<MBMessage> getGroupMessages(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List<MBMessage> getGroupMessages(long groupId, long userId, int status, int start, int end)
           
static java.util.List<MBMessage> getGroupMessages(long groupId, long userId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static int getGroupMessagesCount(long groupId, int status)
           
static int getGroupMessagesCount(long groupId, long userId, int status)
           
static MBMessage getMBMessage(long messageId)
           
static java.util.List<MBMessage> getMBMessages(int start, int end)
           
static int getMBMessagesCount()
           
static MBMessage getMessage(long messageId)
           
static MBMessageDisplay getMessageDisplay(long messageId, int status, java.lang.String threadView)
           
static MBMessageDisplay getMessageDisplay(MBMessage message, int status, java.lang.String threadView)
           
static java.util.List<MBMessage> getMessages(java.lang.String className, long classPK, int status)
           
static java.util.List<MBMessage> getNoAssetMessages()
           
static int getPositionInThread(long messageId)
           
static MBMessageLocalService getService()
           
static java.util.List<MBMessage> getThreadMessages(long threadId, int status)
           
static java.util.List<MBMessage> getThreadMessages(long threadId, int status, java.util.Comparator<MBMessage> comparator)
           
static java.util.List<MBMessage> getThreadMessages(long threadId, int status, int start, int end)
           
static int getThreadMessagesCount(long threadId, int status)
           
static java.util.List<MBMessage> getThreadRepliesMessages(long threadId, int status, int start, int end)
           
 void setService(MBMessageLocalService service)
           
static void subscribeMessage(long userId, long messageId)
           
static void unsubscribeMessage(long userId, long messageId)
           
static void updateAsset(long userId, MBMessage message, long[] assetCategoryIds, java.lang.String[] assetTagNames)
           
static MBMessage updateDiscussionMessage(long userId, long messageId, java.lang.String subject, java.lang.String body, int status)
           
static MBMessage updateMBMessage(MBMessage mbMessage)
           
static MBMessage updateMBMessage(MBMessage mbMessage, boolean merge)
           
static MBMessage updateMessage(long messageId, java.util.Date createDate, java.util.Date modifiedDate)
           
static MBMessage updateMessage(long userId, long messageId, java.lang.String subject, java.lang.String body, java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String,byte[]>> files, java.util.List<java.lang.String> existingFiles, double priority, boolean allowPingbacks, ServiceContext serviceContext)
           
static MBMessage updateMessage(long messageId, java.lang.String body)
           
static MBMessage updateStatus(long userId, long messageId, ServiceContext serviceContext)
           
static MBMessage updateStatus(long userId, MBMessage message, ServiceContext serviceContext, boolean reindex)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MBMessageLocalServiceUtil

public MBMessageLocalServiceUtil()
Method Detail

addMBMessage

public static MBMessage addMBMessage(MBMessage mbMessage)
                              throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

createMBMessage

public static MBMessage createMBMessage(long messageId)

deleteMBMessage

public static void deleteMBMessage(long messageId)
                            throws com.liferay.portal.kernel.exception.PortalException,
                                   com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

deleteMBMessage

public static void deleteMBMessage(MBMessage mbMessage)
                            throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

dynamicQuery

public static java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                                                     throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

dynamicQuery

public static java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
                                                            int start,
                                                            int end)
                                                     throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getMBMessage

public static MBMessage getMBMessage(long messageId)
                              throws com.liferay.portal.kernel.exception.PortalException,
                                     com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getMBMessages

public static java.util.List<MBMessage> getMBMessages(int start,
                                                      int end)
                                               throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getMBMessagesCount

public static int getMBMessagesCount()
                              throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

updateMBMessage

public static MBMessage updateMBMessage(MBMessage mbMessage)
                                 throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

updateMBMessage

public static MBMessage updateMBMessage(MBMessage mbMessage,
                                        boolean merge)
                                 throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

addDiscussionMessage

public static MBMessage addDiscussionMessage(long userId,
                                             java.lang.String userName,
                                             java.lang.String className,
                                             long classPK,
                                             int status)
                                      throws com.liferay.portal.kernel.exception.PortalException,
                                             com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

addDiscussionMessage

public static MBMessage addDiscussionMessage(long userId,
                                             java.lang.String userName,
                                             java.lang.String className,
                                             long classPK,
                                             long threadId,
                                             long parentMessageId,
                                             java.lang.String subject,
                                             java.lang.String body,
                                             ServiceContext serviceContext)
                                      throws com.liferay.portal.kernel.exception.PortalException,
                                             com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

addMessage

public static MBMessage addMessage(long userId,
                                   java.lang.String userName,
                                   long groupId,
                                   long categoryId,
                                   java.lang.String subject,
                                   java.lang.String body,
                                   java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String,byte[]>> files,
                                   boolean anonymous,
                                   double priority,
                                   boolean allowPingbacks,
                                   ServiceContext serviceContext)
                            throws com.liferay.portal.kernel.exception.PortalException,
                                   com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

addMessage

public static MBMessage addMessage(long userId,
                                   java.lang.String userName,
                                   long groupId,
                                   long categoryId,
                                   long threadId,
                                   long parentMessageId,
                                   java.lang.String subject,
                                   java.lang.String body,
                                   java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String,byte[]>> files,
                                   boolean anonymous,
                                   double priority,
                                   boolean allowPingbacks,
                                   ServiceContext serviceContext)
                            throws com.liferay.portal.kernel.exception.PortalException,
                                   com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

addMessage

public static MBMessage addMessage(java.lang.String uuid,
                                   long userId,
                                   java.lang.String userName,
                                   long groupId,
                                   long categoryId,
                                   long threadId,
                                   long parentMessageId,
                                   java.lang.String subject,
                                   java.lang.String body,
                                   java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String,byte[]>> files,
                                   boolean anonymous,
                                   double priority,
                                   boolean allowPingbacks,
                                   ServiceContext serviceContext)
                            throws com.liferay.portal.kernel.exception.PortalException,
                                   com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

addMessageResources

public static void addMessageResources(long messageId,
                                       boolean addCommunityPermissions,
                                       boolean addGuestPermissions)
                                throws com.liferay.portal.kernel.exception.PortalException,
                                       com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

addMessageResources

public static void addMessageResources(MBMessage message,
                                       boolean addCommunityPermissions,
                                       boolean addGuestPermissions)
                                throws com.liferay.portal.kernel.exception.PortalException,
                                       com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

addMessageResources

public static void addMessageResources(long messageId,
                                       java.lang.String[] communityPermissions,
                                       java.lang.String[] guestPermissions)
                                throws com.liferay.portal.kernel.exception.PortalException,
                                       com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

addMessageResources

public static void addMessageResources(MBMessage message,
                                       java.lang.String[] communityPermissions,
                                       java.lang.String[] guestPermissions)
                                throws com.liferay.portal.kernel.exception.PortalException,
                                       com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

deleteDiscussionMessage

public static void deleteDiscussionMessage(long messageId)
                                    throws com.liferay.portal.kernel.exception.PortalException,
                                           com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

deleteDiscussionMessages

public static void deleteDiscussionMessages(java.lang.String className,
                                            long classPK)
                                     throws com.liferay.portal.kernel.exception.PortalException,
                                            com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

deleteMessage

public static void deleteMessage(long messageId)
                          throws com.liferay.portal.kernel.exception.PortalException,
                                 com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

deleteMessage

public static void deleteMessage(MBMessage message)
                          throws com.liferay.portal.kernel.exception.PortalException,
                                 com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getCategoryMessages

public static java.util.List<MBMessage> getCategoryMessages(long groupId,
                                                            long categoryId,
                                                            int status,
                                                            int start,
                                                            int end)
                                                     throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getCategoryMessages

public static java.util.List<MBMessage> getCategoryMessages(long groupId,
                                                            long categoryId,
                                                            int status,
                                                            int start,
                                                            int end,
                                                            com.liferay.portal.kernel.util.OrderByComparator obc)
                                                     throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getCategoryMessagesCount

public static int getCategoryMessagesCount(long groupId,
                                           long categoryId,
                                           int status)
                                    throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getCompanyMessages

public static java.util.List<MBMessage> getCompanyMessages(long companyId,
                                                           int status,
                                                           int start,
                                                           int end)
                                                    throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getCompanyMessages

public static java.util.List<MBMessage> getCompanyMessages(long companyId,
                                                           int status,
                                                           int start,
                                                           int end,
                                                           com.liferay.portal.kernel.util.OrderByComparator obc)
                                                    throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getCompanyMessagesCount

public static int getCompanyMessagesCount(long companyId,
                                          int status)
                                   throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getDiscussionMessageDisplay

public static MBMessageDisplay getDiscussionMessageDisplay(long userId,
                                                           java.lang.String className,
                                                           long classPK,
                                                           int status)
                                                    throws com.liferay.portal.kernel.exception.PortalException,
                                                           com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getDiscussionMessageDisplay

public static MBMessageDisplay getDiscussionMessageDisplay(long userId,
                                                           java.lang.String className,
                                                           long classPK,
                                                           int status,
                                                           java.lang.String threadView)
                                                    throws com.liferay.portal.kernel.exception.PortalException,
                                                           com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getDiscussionMessagesCount

public static int getDiscussionMessagesCount(long classNameId,
                                             long classPK,
                                             int status)
                                      throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getDiscussions

public static java.util.List<MBDiscussion> getDiscussions(java.lang.String className)
                                                   throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getGroupMessages

public static java.util.List<MBMessage> getGroupMessages(long groupId,
                                                         int status,
                                                         int start,
                                                         int end)
                                                  throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getGroupMessages

public static java.util.List<MBMessage> getGroupMessages(long groupId,
                                                         int status,
                                                         int start,
                                                         int end,
                                                         com.liferay.portal.kernel.util.OrderByComparator obc)
                                                  throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getGroupMessages

public static java.util.List<MBMessage> getGroupMessages(long groupId,
                                                         long userId,
                                                         int status,
                                                         int start,
                                                         int end)
                                                  throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getGroupMessages

public static java.util.List<MBMessage> getGroupMessages(long groupId,
                                                         long userId,
                                                         int status,
                                                         int start,
                                                         int end,
                                                         com.liferay.portal.kernel.util.OrderByComparator obc)
                                                  throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getGroupMessagesCount

public static int getGroupMessagesCount(long groupId,
                                        int status)
                                 throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getGroupMessagesCount

public static int getGroupMessagesCount(long groupId,
                                        long userId,
                                        int status)
                                 throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getMessage

public static MBMessage getMessage(long messageId)
                            throws com.liferay.portal.kernel.exception.PortalException,
                                   com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getMessages

public static java.util.List<MBMessage> getMessages(java.lang.String className,
                                                    long classPK,
                                                    int status)
                                             throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getMessageDisplay

public static MBMessageDisplay getMessageDisplay(long messageId,
                                                 int status,
                                                 java.lang.String threadView)
                                          throws com.liferay.portal.kernel.exception.PortalException,
                                                 com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getMessageDisplay

public static MBMessageDisplay getMessageDisplay(MBMessage message,
                                                 int status,
                                                 java.lang.String threadView)
                                          throws com.liferay.portal.kernel.exception.PortalException,
                                                 com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getNoAssetMessages

public static java.util.List<MBMessage> getNoAssetMessages()
                                                    throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getPositionInThread

public static int getPositionInThread(long messageId)
                               throws com.liferay.portal.kernel.exception.PortalException,
                                      com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getThreadMessages

public static java.util.List<MBMessage> getThreadMessages(long threadId,
                                                          int status)
                                                   throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getThreadMessages

public static java.util.List<MBMessage> getThreadMessages(long threadId,
                                                          int status,
                                                          java.util.Comparator<MBMessage> comparator)
                                                   throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getThreadMessages

public static java.util.List<MBMessage> getThreadMessages(long threadId,
                                                          int status,
                                                          int start,
                                                          int end)
                                                   throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getThreadMessagesCount

public static int getThreadMessagesCount(long threadId,
                                         int status)
                                  throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getThreadRepliesMessages

public static java.util.List<MBMessage> getThreadRepliesMessages(long threadId,
                                                                 int status,
                                                                 int start,
                                                                 int end)
                                                          throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

subscribeMessage

public static void subscribeMessage(long userId,
                                    long messageId)
                             throws com.liferay.portal.kernel.exception.PortalException,
                                    com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

unsubscribeMessage

public static void unsubscribeMessage(long userId,
                                      long messageId)
                               throws com.liferay.portal.kernel.exception.PortalException,
                                      com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

updateAsset

public static void updateAsset(long userId,
                               MBMessage message,
                               long[] assetCategoryIds,
                               java.lang.String[] assetTagNames)
                        throws com.liferay.portal.kernel.exception.PortalException,
                               com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

updateDiscussionMessage

public static MBMessage updateDiscussionMessage(long userId,
                                                long messageId,
                                                java.lang.String subject,
                                                java.lang.String body,
                                                int status)
                                         throws com.liferay.portal.kernel.exception.PortalException,
                                                com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

updateMessage

public static MBMessage updateMessage(long userId,
                                      long messageId,
                                      java.lang.String subject,
                                      java.lang.String body,
                                      java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String,byte[]>> files,
                                      java.util.List<java.lang.String> existingFiles,
                                      double priority,
                                      boolean allowPingbacks,
                                      ServiceContext serviceContext)
                               throws com.liferay.portal.kernel.exception.PortalException,
                                      com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

updateMessage

public static MBMessage updateMessage(long messageId,
                                      java.util.Date createDate,
                                      java.util.Date modifiedDate)
                               throws com.liferay.portal.kernel.exception.PortalException,
                                      com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

updateMessage

public static MBMessage updateMessage(long messageId,
                                      java.lang.String body)
                               throws com.liferay.portal.kernel.exception.PortalException,
                                      com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

updateStatus

public static MBMessage updateStatus(long userId,
                                     MBMessage message,
                                     ServiceContext serviceContext,
                                     boolean reindex)
                              throws com.liferay.portal.kernel.exception.PortalException,
                                     com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

updateStatus

public static MBMessage updateStatus(long userId,
                                     long messageId,
                                     ServiceContext serviceContext)
                              throws com.liferay.portal.kernel.exception.PortalException,
                                     com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getService

public static MBMessageLocalService getService()

setService

public void setService(MBMessageLocalService service)