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, org.springframework.beans.factory.InitializingBean

public class MBMessageLocalServiceImpl
extends MBMessageLocalServiceBaseImpl

View Source

Author:
Brian Wing Shun Chan

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, mbDiscussionPersistence, mbMessageFinder, mbMessageFlagFinder, mbMessageFlagLocalService, mbMessageFlagPersistence, mbMessagePersistence, mbStatsUserLocalService, mbStatsUserPersistence, mbThreadFinder, mbThreadLocalService, mbThreadPersistence, mbThreadService, portletPreferencesFinder, portletPreferencesLocalService, portletPreferencesPersistence, portletPreferencesService, 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, long groupId, java.lang.String className, long classPK, long threadId, long parentMessageId, java.lang.String subject, java.lang.String body)
           
 com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(long userId, long groupId, java.lang.String className, long classPK, long threadId, long parentMessageId, java.lang.String subject, java.lang.String body, com.liferay.portal.theme.ThemeDisplay themeDisplay)
           
 com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(long userId, java.lang.String subject, java.lang.String body)
           
 com.liferay.portlet.messageboards.model.MBMessage addMessage(long userId, 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, java.lang.String[] tagsEntries, javax.portlet.PortletPreferences prefs, boolean addCommunityPermissions, boolean addGuestPermissions, com.liferay.portal.theme.ThemeDisplay themeDisplay)
           
 com.liferay.portlet.messageboards.model.MBMessage addMessage(long userId, 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, java.lang.String[] tagsEntries, javax.portlet.PortletPreferences prefs, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions, com.liferay.portal.theme.ThemeDisplay themeDisplay)
           
 com.liferay.portlet.messageboards.model.MBMessage addMessage(long userId, 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, java.lang.String[] tagsEntries, javax.portlet.PortletPreferences prefs, java.lang.Boolean addCommunityPermissions, java.lang.Boolean addGuestPermissions, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions, com.liferay.portal.theme.ThemeDisplay themeDisplay)
           
 com.liferay.portlet.messageboards.model.MBMessage addMessage(long userId, 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, java.lang.String[] tagsEntries, javax.portlet.PortletPreferences prefs, boolean addCommunityPermissions, boolean addGuestPermissions, com.liferay.portal.theme.ThemeDisplay themeDisplay)
           
 com.liferay.portlet.messageboards.model.MBMessage addMessage(long userId, 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, java.lang.String[] tagsEntries, javax.portlet.PortletPreferences prefs, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions, com.liferay.portal.theme.ThemeDisplay themeDisplay)
           
 com.liferay.portlet.messageboards.model.MBMessage addMessage(java.lang.String uuid, long userId, 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, java.lang.String[] tagsEntries, javax.portlet.PortletPreferences prefs, java.lang.Boolean addCommunityPermissions, java.lang.Boolean addGuestPermissions, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions, com.liferay.portal.theme.ThemeDisplay themeDisplay)
           
 com.liferay.portlet.messageboards.model.MBMessage addMessage(java.lang.String uuid, long userId, 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, java.lang.String[] tagsEntries, javax.portlet.PortletPreferences prefs, boolean addCommunityPermissions, boolean addGuestPermissions, com.liferay.portal.theme.ThemeDisplay themeDisplay)
           
 void addMessageResources(long categoryId, long messageId, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addMessageResources(long categoryId, long messageId, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 void addMessageResources(long categoryId, java.lang.String topicId, long messageId, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addMessageResources(long categoryId, java.lang.String topicId, long messageId, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 void addMessageResources(com.liferay.portlet.messageboards.model.MBCategory category, com.liferay.portlet.messageboards.model.MBMessage message, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addMessageResources(com.liferay.portlet.messageboards.model.MBCategory category, 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)
           
 void deleteMessage(long messageId)
           
 void deleteMessage(com.liferay.portlet.messageboards.model.MBMessage message)
           
 int getCategoriesMessagesCount(java.util.List<java.lang.Long> categoryIds)
           
 java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(long categoryId, int begin, int end)
           
 java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(long categoryId, int begin, 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 begin, int end)
           
 java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCompanyMessages(long companyId, int begin, 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)
           
 int getDiscussionMessagesCount(long classNameId, long classPK)
           
 java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(long groupId, int begin, int end)
           
 java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(long groupId, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(long groupId, long userId, int begin, int end)
           
 java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(long groupId, long userId, int begin, 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)
           
 com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(com.liferay.portlet.messageboards.model.MBMessage message)
           
 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)
           
 int getThreadMessagesCount(long threadId)
           
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, javax.portlet.PortletPreferences prefs, com.liferay.portal.theme.ThemeDisplay themeDisplay, boolean update)
           
protected  void sendBlogsCommentsEmail(long userId, long entryId, com.liferay.portlet.messageboards.model.MBMessage message, com.liferay.portal.theme.ThemeDisplay themeDisplay)
           
 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, java.lang.String[] tagsEntries, javax.portlet.PortletPreferences prefs, com.liferay.portal.theme.ThemeDisplay themeDisplay)
           
 com.liferay.portlet.messageboards.model.MBMessage updateMessage(long messageId, java.lang.String body)
           
 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, afterPropertiesSet, 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, getMBDiscussionPersistence, getMBMessageFinder, getMBMessageFlagFinder, getMBMessageFlagLocalService, getMBMessageFlagPersistence, getMBMessagePersistence, getMBStatsUserLocalService, getMBStatsUserPersistence, getMBThreadFinder, getMBThreadLocalService, getMBThreadPersistence, getMBThreadService, getPortletPreferencesFinder, getPortletPreferencesLocalService, getPortletPreferencesPersistence, getPortletPreferencesService, getResourceFinder, getResourceLocalService, getResourcePersistence, getResourceService, getSocialActivityFinder, getSocialActivityLocalService, getSocialActivityPersistence, getSubscriptionLocalService, getSubscriptionPersistence, getTagsAssetFinder, getTagsAssetLocalService, getTagsAssetPersistence, getTagsAssetService, getTagsEntryFinder, getTagsEntryLocalService, getTagsEntryPersistence, getTagsEntryService, getUserFinder, getUserLocalService, getUserPersistence, getUserService, setBlogsEntryFinder, setBlogsEntryLocalService, setBlogsEntryPersistence, setBlogsEntryService, setCompanyLocalService, setCompanyPersistence, setCompanyService, setCounterLocalService, setCounterService, setDLLocalService, setDLService, setGroupFinder, setGroupLocalService, setGroupPersistence, setGroupService, setMailService, setMBBanLocalService, setMBBanPersistence, setMBBanService, setMBCategoryFinder, setMBCategoryLocalService, setMBCategoryPersistence, setMBCategoryService, setMBDiscussionPersistence, setMBMessageFinder, setMBMessageFlagFinder, setMBMessageFlagLocalService, setMBMessageFlagPersistence, setMBMessagePersistence, setMBStatsUserLocalService, setMBStatsUserPersistence, setMBThreadFinder, setMBThreadLocalService, setMBThreadPersistence, setMBThreadService, setPortletPreferencesFinder, setPortletPreferencesLocalService, setPortletPreferencesPersistence, setPortletPreferencesService, setResourceFinder, setResourceLocalService, setResourcePersistence, setResourceService, setSocialActivityFinder, setSocialActivityLocalService, setSocialActivityPersistence, setSubscriptionLocalService, setSubscriptionPersistence, setTagsAssetFinder, setTagsAssetLocalService, setTagsAssetPersistence, setTagsAssetService, setTagsEntryFinder, setTagsEntryLocalService, setTagsEntryPersistence, setTagsEntryService, setUserFinder, setUserLocalService, setUserPersistence, setUserService, 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 subject,
                                                                              java.lang.String body)
                                                                       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,
                                                                              long groupId,
                                                                              java.lang.String className,
                                                                              long classPK,
                                                                              long threadId,
                                                                              long parentMessageId,
                                                                              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

addDiscussionMessage

public com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(long userId,
                                                                              long groupId,
                                                                              java.lang.String className,
                                                                              long classPK,
                                                                              long threadId,
                                                                              long parentMessageId,
                                                                              java.lang.String subject,
                                                                              java.lang.String body,
                                                                              com.liferay.portal.theme.ThemeDisplay themeDisplay)
                                                                       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,
                                                                    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,
                                                                    java.lang.String[] tagsEntries,
                                                                    javax.portlet.PortletPreferences prefs,
                                                                    boolean addCommunityPermissions,
                                                                    boolean addGuestPermissions,
                                                                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
                                                             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,
                                                                    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,
                                                                    java.lang.String[] tagsEntries,
                                                                    javax.portlet.PortletPreferences prefs,
                                                                    java.lang.String[] communityPermissions,
                                                                    java.lang.String[] guestPermissions,
                                                                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
                                                             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,
                                                                    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,
                                                                    java.lang.String[] tagsEntries,
                                                                    javax.portlet.PortletPreferences prefs,
                                                                    java.lang.Boolean addCommunityPermissions,
                                                                    java.lang.Boolean addGuestPermissions,
                                                                    java.lang.String[] communityPermissions,
                                                                    java.lang.String[] guestPermissions,
                                                                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
                                                             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,
                                                                    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,
                                                                    java.lang.String[] tagsEntries,
                                                                    javax.portlet.PortletPreferences prefs,
                                                                    boolean addCommunityPermissions,
                                                                    boolean addGuestPermissions,
                                                                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
                                                             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,
                                                                    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,
                                                                    java.lang.String[] tagsEntries,
                                                                    javax.portlet.PortletPreferences prefs,
                                                                    java.lang.String[] communityPermissions,
                                                                    java.lang.String[] guestPermissions,
                                                                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
                                                             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,
                                                                    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,
                                                                    java.lang.String[] tagsEntries,
                                                                    javax.portlet.PortletPreferences prefs,
                                                                    boolean addCommunityPermissions,
                                                                    boolean addGuestPermissions,
                                                                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
                                                             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,
                                                                    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,
                                                                    java.lang.String[] tagsEntries,
                                                                    javax.portlet.PortletPreferences prefs,
                                                                    java.lang.Boolean addCommunityPermissions,
                                                                    java.lang.Boolean addGuestPermissions,
                                                                    java.lang.String[] communityPermissions,
                                                                    java.lang.String[] guestPermissions,
                                                                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
                                                             throws com.liferay.portal.PortalException,
                                                                    com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addMessageResources

public void addMessageResources(long categoryId,
                                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(long categoryId,
                                java.lang.String topicId,
                                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.MBCategory category,
                                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 categoryId,
                                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(long categoryId,
                                java.lang.String topicId,
                                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.MBCategory category,
                                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 begin,
                                                                                             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 begin,
                                                                                             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

getCategoriesMessagesCount

public int getCategoriesMessagesCount(java.util.List<java.lang.Long> categoryIds)
                               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 begin,
                                                                                            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 begin,
                                                                                            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

getDiscussionMessagesCount

public int getDiscussionMessagesCount(long classNameId,
                                      long classPK)
                               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 begin,
                                                                                          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 begin,
                                                                                          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 begin,
                                                                                          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 begin,
                                                                                          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.PortalException,
                                                                                     com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getMessageDisplay

public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(long messageId)
                                                                           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)
                                                                           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

getThreadMessagesCount

public int getThreadMessagesCount(long threadId)
                           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,
                                                                       java.lang.String[] tagsEntries,
                                                                       javax.portlet.PortletPreferences prefs,
                                                                       com.liferay.portal.theme.ThemeDisplay themeDisplay)
                                                                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

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,
                                 javax.portlet.PortletPreferences prefs,
                                 com.liferay.portal.theme.ThemeDisplay themeDisplay,
                                 boolean update)
                          throws java.io.IOException,
                                 com.liferay.portal.PortalException,
                                 com.liferay.portal.SystemException
Throws:
java.io.IOException
com.liferay.portal.PortalException
com.liferay.portal.SystemException

sendBlogsCommentsEmail

protected void sendBlogsCommentsEmail(long userId,
                                      long entryId,
                                      com.liferay.portlet.messageboards.model.MBMessage message,
                                      com.liferay.portal.theme.ThemeDisplay themeDisplay)
                               throws java.io.IOException,
                                      com.liferay.portal.PortalException,
                                      com.liferay.portal.SystemException
Throws:
java.io.IOException
com.liferay.portal.PortalException
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