com.liferay.portlet.messageboards.service.impl
Class MBMessageLocalServiceImpl

java.lang.Object
  extended by com.liferay.portlet.messageboards.service.base.MBMessageLocalServiceBaseImpl
      extended by com.liferay.portlet.messageboards.service.impl.MBMessageLocalServiceImpl
All Implemented Interfaces:
com.liferay.portlet.messageboards.service.MBMessageLocalService

public class MBMessageLocalServiceImpl
extends MBMessageLocalServiceBaseImpl

View Source

Author:
Brian Wing Shun Chan, Raymond Augé

Field Summary
 
Fields inherited from class com.liferay.portlet.messageboards.service.base.MBMessageLocalServiceBaseImpl
blogsEntryFinder, blogsEntryLocalService, blogsEntryPersistence, blogsEntryService, companyLocalService, companyPersistence, companyService, counterLocalService, counterService, dlLocalService, dlService, groupFinder, groupLocalService, groupPersistence, groupService, mailService, mbBanLocalService, mbBanPersistence, mbBanService, mbCategoryFinder, mbCategoryLocalService, mbCategoryPersistence, mbCategoryService, mbDiscussionLocalService, mbDiscussionPersistence, mbMailingListLocalService, mbMailingListPersistence, mbMessageFinder, mbMessageFlagLocalService, mbMessageFlagPersistence, mbMessageFlagService, mbMessageLocalService, mbMessagePersistence, mbMessageService, mbStatsUserLocalService, mbStatsUserPersistence, mbThreadFinder, mbThreadLocalService, mbThreadPersistence, mbThreadService, portletPreferencesFinder, portletPreferencesLocalService, portletPreferencesPersistence, portletPreferencesService, ratingsStatsLocalService, ratingsStatsPersistence, resourceFinder, resourceLocalService, resourcePersistence, resourceService, socialActivityFinder, socialActivityLocalService, socialActivityPersistence, subscriptionLocalService, subscriptionPersistence, tagsAssetFinder, tagsAssetLocalService, tagsAssetPersistence, tagsAssetService, tagsEntryFinder, tagsEntryLocalService, tagsEntryPersistence, tagsEntryService, userFinder, userLocalService, userPersistence, userService
 
Constructor Summary
MBMessageLocalServiceImpl()
           
 
Method Summary
 com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(long userId, java.lang.String userName, java.lang.String className, long classPK)
           
 com.liferay.portlet.messageboards.model.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, com.liferay.portal.service.ServiceContext serviceContext)
           
 com.liferay.portlet.messageboards.model.MBMessage addMessage(long userId, java.lang.String userName, 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, com.liferay.portal.service.ServiceContext serviceContext)
           
 com.liferay.portlet.messageboards.model.MBMessage addMessage(long userId, java.lang.String userName, 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, com.liferay.portal.service.ServiceContext serviceContext)
           
 com.liferay.portlet.messageboards.model.MBMessage addMessage(java.lang.String uuid, long userId, java.lang.String userName, 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, com.liferay.portal.service.ServiceContext serviceContext)
           
 void addMessageResources(long messageId, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addMessageResources(long messageId, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 void addMessageResources(com.liferay.portlet.messageboards.model.MBMessage message, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addMessageResources(com.liferay.portlet.messageboards.model.MBMessage message, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 void deleteDiscussionMessage(long messageId)
           
 void deleteDiscussionMessages(java.lang.String className, long classPK)
           
protected  void deleteDiscussionSocialActivities(java.lang.String className, java.util.List<com.liferay.portlet.messageboards.model.MBMessage> messages)
           
 void deleteMessage(long messageId)
           
 void deleteMessage(com.liferay.portlet.messageboards.model.MBMessage message)
           
 java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(long categoryId, int start, int end)
           
 java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(long categoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 int getCategoryMessagesCount(long categoryId)
           
 java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCompanyMessages(long companyId, int start, int end)
           
 java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCompanyMessages(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 int getCompanyMessagesCount(long companyId)
           
 com.liferay.portlet.messageboards.model.MBMessageDisplay getDiscussionMessageDisplay(long userId, java.lang.String className, long classPK)
           
 com.liferay.portlet.messageboards.model.MBMessageDisplay getDiscussionMessageDisplay(long userId, java.lang.String className, long classPK, java.lang.String threadView)
           
 int getDiscussionMessagesCount(long classNameId, long classPK)
           
 java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> getDiscussions(java.lang.String className)
           
 java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(long groupId, int start, int end)
           
 java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(long groupId, long userId, int start, int end)
           
 java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(long groupId, long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 int getGroupMessagesCount(long groupId)
           
 int getGroupMessagesCount(long groupId, long userId)
           
 com.liferay.portlet.messageboards.model.MBMessage getMessage(long messageId)
           
 com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(long messageId, java.lang.String threadView)
           
 com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(com.liferay.portlet.messageboards.model.MBMessage message, java.lang.String threadView)
           
 java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getMessages(java.lang.String className, long classPK)
           
 java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getNoAssetMessages()
           
 java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(long threadId)
           
 java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(long threadId, java.util.Comparator<com.liferay.portlet.messageboards.model.MBMessage> comparator)
           
 java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(long threadId, int start, int end)
           
 int getThreadMessagesCount(long threadId)
           
 java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadRepliesMessages(long threadId, int start, int end)
           
protected  void logAddMessage(long messageId, org.apache.commons.lang.time.StopWatch stopWatch, int block)
           
protected  void notifySubscribers(com.liferay.portlet.messageboards.model.MBCategory category, com.liferay.portlet.messageboards.model.MBMessage message, com.liferay.portal.service.ServiceContext serviceContext, boolean update)
           
 void reIndex(long messageId)
           
 void reIndex(com.liferay.portlet.messageboards.model.MBMessage message)
           
protected  void sendBlogsCommentsEmail(long userId, com.liferay.portlet.blogs.model.BlogsEntry entry, com.liferay.portlet.messageboards.model.MBMessage message, com.liferay.portal.service.ServiceContext serviceContext)
           
 void subscribeMessage(long userId, long messageId)
           
 void unsubscribeMessage(long userId, long messageId)
           
 com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(long userId, long messageId, java.lang.String subject, java.lang.String body)
           
 com.liferay.portlet.messageboards.model.MBMessage updateMessage(long messageId, java.util.Date createDate, java.util.Date modifiedDate)
           
 com.liferay.portlet.messageboards.model.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, com.liferay.portal.service.ServiceContext serviceContext)
           
 com.liferay.portlet.messageboards.model.MBMessage updateMessage(long messageId, java.lang.String body)
           
protected  void updatePriorities(long threadId, double priority)
           
 void updateTagsAsset(long userId, com.liferay.portlet.messageboards.model.MBMessage message, java.lang.String[] tagsEntries)
           
protected  void validate(java.lang.String subject, java.lang.String body)
           
 
Methods inherited from class com.liferay.portlet.messageboards.service.base.MBMessageLocalServiceBaseImpl
addMBMessage, createMBMessage, deleteMBMessage, deleteMBMessage, dynamicQuery, dynamicQuery, getBlogsEntryFinder, getBlogsEntryLocalService, getBlogsEntryPersistence, getBlogsEntryService, getCompanyLocalService, getCompanyPersistence, getCompanyService, getCounterLocalService, getCounterService, getDLLocalService, getDLService, getGroupFinder, getGroupLocalService, getGroupPersistence, getGroupService, getMailService, getMBBanLocalService, getMBBanPersistence, getMBBanService, getMBCategoryFinder, getMBCategoryLocalService, getMBCategoryPersistence, getMBCategoryService, getMBDiscussionLocalService, getMBDiscussionPersistence, getMBMailingListLocalService, getMBMailingListPersistence, getMBMessage, getMBMessageFinder, getMBMessageFlagLocalService, getMBMessageFlagPersistence, getMBMessageFlagService, getMBMessageLocalService, getMBMessagePersistence, getMBMessages, getMBMessagesCount, getMBMessageService, getMBStatsUserLocalService, getMBStatsUserPersistence, getMBThreadFinder, getMBThreadLocalService, getMBThreadPersistence, getMBThreadService, getPortletPreferencesFinder, getPortletPreferencesLocalService, getPortletPreferencesPersistence, getPortletPreferencesService, getRatingsStatsLocalService, getRatingsStatsPersistence, getResourceFinder, getResourceLocalService, getResourcePersistence, getResourceService, getSocialActivityFinder, getSocialActivityLocalService, getSocialActivityPersistence, getSubscriptionLocalService, getSubscriptionPersistence, getTagsAssetFinder, getTagsAssetLocalService, getTagsAssetPersistence, getTagsAssetService, getTagsEntryFinder, getTagsEntryLocalService, getTagsEntryPersistence, getTagsEntryService, getUserFinder, getUserLocalService, getUserPersistence, getUserService, runSQL, setBlogsEntryFinder, setBlogsEntryLocalService, setBlogsEntryPersistence, setBlogsEntryService, setCompanyLocalService, setCompanyPersistence, setCompanyService, setCounterLocalService, setCounterService, setDLLocalService, setDLService, setGroupFinder, setGroupLocalService, setGroupPersistence, setGroupService, setMailService, setMBBanLocalService, setMBBanPersistence, setMBBanService, setMBCategoryFinder, setMBCategoryLocalService, setMBCategoryPersistence, setMBCategoryService, setMBDiscussionLocalService, setMBDiscussionPersistence, setMBMailingListLocalService, setMBMailingListPersistence, setMBMessageFinder, setMBMessageFlagLocalService, setMBMessageFlagPersistence, setMBMessageFlagService, setMBMessageLocalService, setMBMessagePersistence, setMBMessageService, setMBStatsUserLocalService, setMBStatsUserPersistence, setMBThreadFinder, setMBThreadLocalService, setMBThreadPersistence, setMBThreadService, setPortletPreferencesFinder, setPortletPreferencesLocalService, setPortletPreferencesPersistence, setPortletPreferencesService, setRatingsStatsLocalService, setRatingsStatsPersistence, setResourceFinder, setResourceLocalService, setResourcePersistence, setResourceService, setSocialActivityFinder, setSocialActivityLocalService, setSocialActivityPersistence, setSubscriptionLocalService, setSubscriptionPersistence, setTagsAssetFinder, setTagsAssetLocalService, setTagsAssetPersistence, setTagsAssetService, setTagsEntryFinder, setTagsEntryLocalService, setTagsEntryPersistence, setTagsEntryService, setUserFinder, setUserLocalService, setUserPersistence, setUserService, updateMBMessage, updateMBMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MBMessageLocalServiceImpl

public MBMessageLocalServiceImpl()
Method Detail

addDiscussionMessage

public com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(long userId,
                                                                              java.lang.String userName,
                                                                              java.lang.String className,
                                                                              long classPK)
                                                                       throws com.liferay.portal.PortalException,
                                                                              com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addDiscussionMessage

public com.liferay.portlet.messageboards.model.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,
                                                                              com.liferay.portal.service.ServiceContext serviceContext)
                                                                       throws com.liferay.portal.PortalException,
                                                                              com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addMessage

public com.liferay.portlet.messageboards.model.MBMessage addMessage(long userId,
                                                                    java.lang.String userName,
                                                                    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,
                                                                    com.liferay.portal.service.ServiceContext serviceContext)
                                                             throws com.liferay.portal.PortalException,
                                                                    com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addMessage

public com.liferay.portlet.messageboards.model.MBMessage addMessage(long userId,
                                                                    java.lang.String userName,
                                                                    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,
                                                                    com.liferay.portal.service.ServiceContext serviceContext)
                                                             throws com.liferay.portal.PortalException,
                                                                    com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addMessage

public com.liferay.portlet.messageboards.model.MBMessage addMessage(java.lang.String uuid,
                                                                    long userId,
                                                                    java.lang.String userName,
                                                                    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,
                                                                    com.liferay.portal.service.ServiceContext serviceContext)
                                                             throws com.liferay.portal.PortalException,
                                                                    com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addMessageResources

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

addMessageResources

public void addMessageResources(com.liferay.portlet.messageboards.model.MBMessage message,
                                boolean addCommunityPermissions,
                                boolean addGuestPermissions)
                         throws com.liferay.portal.PortalException,
                                com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addMessageResources

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

addMessageResources

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

deleteDiscussionMessage

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

deleteDiscussionMessages

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

deleteMessage

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

deleteMessage

public void deleteMessage(com.liferay.portlet.messageboards.model.MBMessage message)
                   throws com.liferay.portal.PortalException,
                          com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getCategoryMessages

public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(long categoryId,
                                                                                             int start,
                                                                                             int end)
                                                                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getCategoryMessages

public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(long categoryId,
                                                                                             int start,
                                                                                             int end,
                                                                                             com.liferay.portal.kernel.util.OrderByComparator obc)
                                                                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getCategoryMessagesCount

public int getCategoryMessagesCount(long categoryId)
                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getCompanyMessages

public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCompanyMessages(long companyId,
                                                                                            int start,
                                                                                            int end)
                                                                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getCompanyMessages

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

getCompanyMessagesCount

public int getCompanyMessagesCount(long companyId)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getDiscussionMessageDisplay

public com.liferay.portlet.messageboards.model.MBMessageDisplay getDiscussionMessageDisplay(long userId,
                                                                                            java.lang.String className,
                                                                                            long classPK)
                                                                                     throws com.liferay.portal.PortalException,
                                                                                            com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getDiscussionMessageDisplay

public com.liferay.portlet.messageboards.model.MBMessageDisplay getDiscussionMessageDisplay(long userId,
                                                                                            java.lang.String className,
                                                                                            long classPK,
                                                                                            java.lang.String threadView)
                                                                                     throws com.liferay.portal.PortalException,
                                                                                            com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getDiscussionMessagesCount

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

getDiscussions

public java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> getDiscussions(java.lang.String className)
                                                                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroupMessages

public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(long groupId,
                                                                                          int start,
                                                                                          int end)
                                                                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroupMessages

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

getGroupMessages

public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(long groupId,
                                                                                          long userId,
                                                                                          int start,
                                                                                          int end)
                                                                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroupMessages

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

getGroupMessagesCount

public int getGroupMessagesCount(long groupId)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroupMessagesCount

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

getMessage

public com.liferay.portlet.messageboards.model.MBMessage getMessage(long messageId)
                                                             throws com.liferay.portal.PortalException,
                                                                    com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getMessages

public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getMessages(java.lang.String className,
                                                                                     long classPK)
                                                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getMessageDisplay

public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(long messageId,
                                                                                  java.lang.String threadView)
                                                                           throws com.liferay.portal.PortalException,
                                                                                  com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getMessageDisplay

public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(com.liferay.portlet.messageboards.model.MBMessage message,
                                                                                  java.lang.String threadView)
                                                                           throws com.liferay.portal.PortalException,
                                                                                  com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getNoAssetMessages

public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getNoAssetMessages()
                                                                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getThreadMessages

public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(long threadId)
                                                                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getThreadMessages

public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(long threadId,
                                                                                           java.util.Comparator<com.liferay.portlet.messageboards.model.MBMessage> comparator)
                                                                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getThreadMessages

public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(long threadId,
                                                                                           int start,
                                                                                           int end)
                                                                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getThreadMessagesCount

public int getThreadMessagesCount(long threadId)
                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getThreadRepliesMessages

public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadRepliesMessages(long threadId,
                                                                                                  int start,
                                                                                                  int end)
                                                                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

reIndex

public void reIndex(long messageId)
             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

reIndex

public void reIndex(com.liferay.portlet.messageboards.model.MBMessage message)
             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

subscribeMessage

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

unsubscribeMessage

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

updateDiscussionMessage

public com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(long userId,
                                                                                 long messageId,
                                                                                 java.lang.String subject,
                                                                                 java.lang.String body)
                                                                          throws com.liferay.portal.PortalException,
                                                                                 com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateMessage

public com.liferay.portlet.messageboards.model.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,
                                                                       com.liferay.portal.service.ServiceContext serviceContext)
                                                                throws com.liferay.portal.PortalException,
                                                                       com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateMessage

public com.liferay.portlet.messageboards.model.MBMessage updateMessage(long messageId,
                                                                       java.util.Date createDate,
                                                                       java.util.Date modifiedDate)
                                                                throws com.liferay.portal.PortalException,
                                                                       com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateMessage

public com.liferay.portlet.messageboards.model.MBMessage updateMessage(long messageId,
                                                                       java.lang.String body)
                                                                throws com.liferay.portal.PortalException,
                                                                       com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateTagsAsset

public void updateTagsAsset(long userId,
                            com.liferay.portlet.messageboards.model.MBMessage message,
                            java.lang.String[] tagsEntries)
                     throws com.liferay.portal.PortalException,
                            com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteDiscussionSocialActivities

protected void deleteDiscussionSocialActivities(java.lang.String className,
                                                java.util.List<com.liferay.portlet.messageboards.model.MBMessage> messages)
                                         throws com.liferay.portal.PortalException,
                                                com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

logAddMessage

protected void logAddMessage(long messageId,
                             org.apache.commons.lang.time.StopWatch stopWatch,
                             int block)

notifySubscribers

protected void notifySubscribers(com.liferay.portlet.messageboards.model.MBCategory category,
                                 com.liferay.portlet.messageboards.model.MBMessage message,
                                 com.liferay.portal.service.ServiceContext serviceContext,
                                 boolean update)
                          throws com.liferay.portal.PortalException,
                                 com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

sendBlogsCommentsEmail

protected void sendBlogsCommentsEmail(long userId,
                                      com.liferay.portlet.blogs.model.BlogsEntry entry,
                                      com.liferay.portlet.messageboards.model.MBMessage message,
                                      com.liferay.portal.service.ServiceContext serviceContext)
                               throws java.io.IOException,
                                      com.liferay.portal.PortalException,
                                      com.liferay.portal.SystemException
Throws:
java.io.IOException
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updatePriorities

protected void updatePriorities(long threadId,
                                double priority)
                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

validate

protected void validate(java.lang.String subject,
                        java.lang.String body)
                 throws com.liferay.portal.PortalException
Throws:
com.liferay.portal.PortalException