Liferay 7.0-ce-b4

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

java.lang.Object
  extended by com.liferay.portal.service.BaseLocalServiceImpl
      extended by com.liferay.portlet.messageboards.service.base.MBMessageLocalServiceBaseImpl
          extended by com.liferay.portlet.messageboards.service.impl.MBMessageLocalServiceImpl
All Implemented Interfaces:
IdentifiableOSGiService, BaseLocalService, PersistedModelLocalService, MBMessageLocalService

public class MBMessageLocalServiceImpl
extends MBMessageLocalServiceBaseImpl


Field Summary
 
Fields inherited from class com.liferay.portlet.messageboards.service.base.MBMessageLocalServiceBaseImpl
assetEntryFinder, assetEntryLocalService, assetEntryPersistence, assetLinkLocalService, assetLinkPersistence, assetTagFinder, assetTagLocalService, assetTagPersistence, blogsEntryFinder, blogsEntryLocalService, blogsEntryPersistence, classNameLocalService, classNamePersistence, companyLocalService, companyPersistence, counterLocalService, expandoRowLocalService, expandoRowPersistence, groupFinder, groupLocalService, groupPersistence, mbCategoryFinder, mbCategoryLocalService, mbCategoryPersistence, mbDiscussionLocalService, mbDiscussionPersistence, mbMessageFinder, mbMessageLocalService, mbMessagePersistence, mbStatsUserLocalService, mbStatsUserPersistence, mbThreadFinder, mbThreadLocalService, mbThreadPersistence, persistedModelLocalServiceRegistry, portletPreferencesFinder, portletPreferencesLocalService, portletPreferencesPersistence, ratingsStatsFinder, ratingsStatsLocalService, ratingsStatsPersistence, resourceLocalService, subscriptionLocalService, subscriptionPersistence, userFinder, userLocalService, userPersistence, workflowInstanceLinkLocalService, workflowInstanceLinkPersistence
 
Constructor Summary
MBMessageLocalServiceImpl()
           
 
Method Summary
 MBMessage addDiscussionMessage(long userId, String userName, long groupId, String className, long classPK, int workflowAction)
           
 MBMessage addDiscussionMessage(long userId, String userName, long groupId, String className, long classPK, long threadId, long parentMessageId, String subject, String body, ServiceContext serviceContext)
           
 MBMessage addMessage(long userId, String userName, long groupId, long categoryId, long threadId, long parentMessageId, String subject, String body, String format, List<ObjectValuePair<String,InputStream>> inputStreamOVPs, boolean anonymous, double priority, boolean allowPingbacks, ServiceContext serviceContext)
           
 MBMessage addMessage(long userId, String userName, long groupId, long categoryId, String subject, String body, ServiceContext serviceContext)
           
 MBMessage addMessage(long userId, String userName, long groupId, long categoryId, String subject, String body, String format, List<ObjectValuePair<String,InputStream>> inputStreamOVPs, boolean anonymous, double priority, boolean allowPingbacks, ServiceContext serviceContext)
           
 MBMessage addMessage(long userId, String userName, long groupId, long categoryId, String subject, String body, String format, String fileName, File file, boolean anonymous, double priority, boolean allowPingbacks, ServiceContext serviceContext)
           
 MBMessage addMessage(long userId, String userName, long categoryId, String subject, String body, ServiceContext serviceContext)
          Deprecated. As of 7.0.0, replaced by addMessage(long, String, long, long, String, String, ServiceContext)
 void addMessageAttachment(long userId, long messageId, String fileName, File file, String mimeType)
           
 void addMessageResources(long messageId, boolean addGroupPermissions, boolean addGuestPermissions)
           
 void addMessageResources(long messageId, ModelPermissions modelPermissions)
           
 void addMessageResources(MBMessage message, boolean addGroupPermissions, boolean addGuestPermissions)
           
 void addMessageResources(MBMessage message, ModelPermissions modelPermissions)
           
 MBMessage deleteDiscussionMessage(long messageId)
           
 void deleteDiscussionMessages(String className, long classPK)
           
 MBMessage deleteMessage(long messageId)
           
 MBMessage deleteMessage(MBMessage message)
           
 void deleteMessageAttachment(long messageId, String fileName)
           
 void deleteMessageAttachments(long messageId)
           
 void emptyMessageAttachments(long messageId)
           
protected  String getBody(String subject, String body)
           
 List<MBMessage> getCategoryMessages(long groupId, long categoryId, int status, int start, int end)
           
 List<MBMessage> getCategoryMessages(long groupId, long categoryId, int status, int start, int end, OrderByComparator<MBMessage> obc)
           
 int getCategoryMessagesCount(long groupId, long categoryId, int status)
           
 List<MBMessage> getCompanyMessages(long companyId, int status, int start, int end)
           
 List<MBMessage> getCompanyMessages(long companyId, int status, int start, int end, OrderByComparator<MBMessage> obc)
           
 int getCompanyMessagesCount(long companyId, int status)
           
 MBMessageDisplay getDiscussionMessageDisplay(long userId, long groupId, String className, long classPK, int status)
           
 MBMessageDisplay getDiscussionMessageDisplay(long userId, long groupId, String className, long classPK, int status, Comparator<MBMessage> comparator)
           
 MBMessageDisplay getDiscussionMessageDisplay(long userId, long groupId, String className, long classPK, int status, String threadView)
          Deprecated. As of 7.0.0, replaced by getDiscussionMessageDisplay(long, long, String, long, int)
 int getDiscussionMessagesCount(long classNameId, long classPK, int status)
           
 int getDiscussionMessagesCount(String className, long classPK, int status)
           
 List<MBDiscussion> getDiscussions(String className)
           
 List<MBMessage> getGroupMessages(long groupId, int status, int start, int end)
           
 List<MBMessage> getGroupMessages(long groupId, int status, int start, int end, OrderByComparator<MBMessage> obc)
           
 List<MBMessage> getGroupMessages(long groupId, long userId, int status, int start, int end)
           
 List<MBMessage> getGroupMessages(long groupId, long userId, int status, int start, int end, OrderByComparator<MBMessage> obc)
           
 int getGroupMessagesCount(long groupId, int status)
           
 int getGroupMessagesCount(long groupId, long userId, int status)
           
 MBMessage getMessage(long messageId)
           
 MBMessageDisplay getMessageDisplay(long userId, long messageId, int status, boolean includePrevAndNext)
           
 MBMessageDisplay getMessageDisplay(long userId, long messageId, int status, String threadView, boolean includePrevAndNext)
          Deprecated. As of 7.0.0, replaced by getMessageDisplay(long, long, int, boolean)
 MBMessageDisplay getMessageDisplay(long userId, MBMessage message, int status, boolean includePrevAndNext)
           
 MBMessageDisplay getMessageDisplay(long userId, MBMessage message, int status, boolean includePrevAndNext, Comparator<MBMessage> comparator)
           
 MBMessageDisplay getMessageDisplay(long userId, MBMessage message, int status, String threadView, boolean includePrevAndNext)
          Deprecated. As of 7.0.0, replaced by getMessageDisplay(long, MBMessage, int, boolean)
 MBMessageDisplay getMessageDisplay(long userId, MBMessage message, int status, String threadView, boolean includePrevAndNext, Comparator<MBMessage> comparator)
          Deprecated. As of 7.0.0, replaced by getMessageDisplay(long, MBMessage, int, boolean, Comparator) (
 List<MBMessage> getMessages(String className, long classPK, int status)
           
protected  String getMessageURL(MBMessage message, ServiceContext serviceContext)
           
 List<MBMessage> getNoAssetMessages()
           
 int getPositionInThread(long messageId)
           
protected  String getSubject(String subject, String body)
           
protected  MBSubscriptionSender getSubscriptionSender(long userId, MBMessage message, String messageURL, String entryTitle, boolean htmlFormat, String messageBody, String categoryName, String inReplyTo, String fromName, String fromAddress, String replyToAddress, String emailAddress, String fullName, LocalizedValuesMap subjectLocalizedValuesMap, LocalizedValuesMap bodyLocalizedValuesMap, ServiceContext serviceContext)
           
 List<MBMessage> getThreadMessages(long threadId, int status)
           
 List<MBMessage> getThreadMessages(long threadId, int status, Comparator<MBMessage> comparator)
           
 List<MBMessage> getThreadMessages(long threadId, int status, int start, int end)
           
 int getThreadMessagesCount(long threadId, int status)
           
 List<MBMessage> getThreadRepliesMessages(long threadId, int status, int start, int end)
           
 List<MBMessage> getUserDiscussionMessages(long userId, long[] classNameIds, int status, int start, int end, OrderByComparator<MBMessage> obc)
           
 List<MBMessage> getUserDiscussionMessages(long userId, long classNameId, long classPK, int status, int start, int end, OrderByComparator<MBMessage> obc)
           
 List<MBMessage> getUserDiscussionMessages(long userId, String className, long classPK, int status, int start, int end, OrderByComparator<MBMessage> obc)
           
 int getUserDiscussionMessagesCount(long userId, long[] classNameIds, int status)
           
 int getUserDiscussionMessagesCount(long userId, long classNameId, long classPK, int status)
           
 int getUserDiscussionMessagesCount(long userId, String className, long classPK, int status)
           
 long moveMessageAttachmentToTrash(long userId, long messageId, String fileName)
           
protected  void notifyDiscussionSubscribers(long userId, MBMessage message, ServiceContext serviceContext)
           
protected  void notifySubscribers(long userId, MBMessage message, String messageURL, ServiceContext serviceContext)
           
protected  void pingPingback(MBMessage message, ServiceContext serviceContext)
           
 void restoreMessageAttachmentFromTrash(long userId, long messageId, String deletedFileName)
           
protected  void startWorkflowInstance(long userId, MBMessage message, ServiceContext serviceContext)
           
 void subscribeMessage(long userId, long messageId)
           
 void unsubscribeMessage(long userId, long messageId)
           
 void updateAnswer(long messageId, boolean answer, boolean cascade)
           
 void updateAnswer(MBMessage message, boolean answer, boolean cascade)
           
 void updateAsset(long userId, MBMessage message, long[] assetCategoryIds, String[] assetTagNames, long[] assetLinkEntryIds)
           
protected  void updateAsset(long userId, MBMessage message, long[] assetCategoryIds, String[] assetTagNames, long[] assetLinkEntryIds, boolean assetEntryVisible)
           
 MBMessage updateDiscussionMessage(long userId, long messageId, String className, long classPK, String subject, String body, ServiceContext serviceContext)
           
 MBMessage updateMessage(long userId, long messageId, String body, ServiceContext serviceContext)
           
 MBMessage updateMessage(long userId, long messageId, String subject, String body, List<ObjectValuePair<String,InputStream>> inputStreamOVPs, List<String> existingFiles, double priority, boolean allowPingbacks, ServiceContext serviceContext)
           
 MBMessage updateMessage(long messageId, String body)
          Deprecated. As of 7.0.0, with no direct replacement
protected  void updatePriorities(long threadId, double priority)
           
 MBMessage updateStatus(long userId, long messageId, int status, ServiceContext serviceContext)
          Deprecated. As of 7.0.0, replaced by updateStatus(long, long, int, ServiceContext, Map)
 MBMessage updateStatus(long userId, long messageId, int status, ServiceContext serviceContext, Map<String,Serializable> workflowContext)
           
protected  void updateThreadStatus(MBThread thread, MBMessage message, User user, int oldStatus, Date modifiedDate)
           
 void updateUserName(long userId, String userName)
           
protected  void validate(String subject, String body)
           
protected  void validateDiscussionMaxComments(String className, long classPK)
           
 
Methods inherited from class com.liferay.portlet.messageboards.service.base.MBMessageLocalServiceBaseImpl
addMBMessage, afterPropertiesSet, createMBMessage, deleteMBMessage, deleteMBMessage, deletePersistedModel, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, fetchMBMessage, fetchMBMessageByUuidAndGroupId, getActionableDynamicQuery, getAssetEntryFinder, getAssetEntryLocalService, getAssetEntryPersistence, getAssetLinkLocalService, getAssetLinkPersistence, getAssetTagFinder, getAssetTagLocalService, getAssetTagPersistence, getBlogsEntryFinder, getBlogsEntryLocalService, getBlogsEntryPersistence, getClassNameLocalService, getClassNamePersistence, getCompanyLocalService, getCompanyPersistence, getCounterLocalService, getExpandoRowLocalService, getExpandoRowPersistence, getExportActionableDynamicQuery, getGroupFinder, getGroupLocalService, getGroupPersistence, getIndexableActionableDynamicQuery, getMBCategoryFinder, getMBCategoryLocalService, getMBCategoryPersistence, getMBDiscussionLocalService, getMBDiscussionPersistence, getMBMessage, getMBMessageByUuidAndGroupId, getMBMessageFinder, getMBMessageLocalService, getMBMessagePersistence, getMBMessages, getMBMessagesByUuidAndCompanyId, getMBMessagesByUuidAndCompanyId, getMBMessagesCount, getMBStatsUserLocalService, getMBStatsUserPersistence, getMBThreadFinder, getMBThreadLocalService, getMBThreadPersistence, getModelClass, getModelClassName, getOSGiServiceIdentifier, getPersistedModel, getPortletPreferencesFinder, getPortletPreferencesLocalService, getPortletPreferencesPersistence, getRatingsStatsFinder, getRatingsStatsLocalService, getRatingsStatsPersistence, getResourceLocalService, getSubscriptionLocalService, getSubscriptionPersistence, getUserFinder, getUserLocalService, getUserPersistence, getWorkflowInstanceLinkLocalService, getWorkflowInstanceLinkPersistence, initActionableDynamicQuery, runSQL, setAssetEntryFinder, setAssetEntryLocalService, setAssetEntryPersistence, setAssetLinkLocalService, setAssetLinkPersistence, setAssetTagFinder, setAssetTagLocalService, setAssetTagPersistence, setBlogsEntryFinder, setBlogsEntryLocalService, setBlogsEntryPersistence, setClassNameLocalService, setClassNamePersistence, setCompanyLocalService, setCompanyPersistence, setCounterLocalService, setExpandoRowLocalService, setExpandoRowPersistence, setGroupFinder, setGroupLocalService, setGroupPersistence, setMBCategoryFinder, setMBCategoryLocalService, setMBCategoryPersistence, setMBDiscussionLocalService, setMBDiscussionPersistence, setMBMessageFinder, setMBMessageLocalService, setMBMessagePersistence, setMBStatsUserLocalService, setMBStatsUserPersistence, setMBThreadFinder, setMBThreadLocalService, setMBThreadPersistence, setPortletPreferencesFinder, setPortletPreferencesLocalService, setPortletPreferencesPersistence, setRatingsStatsFinder, setRatingsStatsLocalService, setRatingsStatsPersistence, setResourceLocalService, setSubscriptionLocalService, setSubscriptionPersistence, setUserFinder, setUserLocalService, setUserPersistence, setWorkflowInstanceLinkLocalService, setWorkflowInstanceLinkPersistence, updateMBMessage
 
Methods inherited from class com.liferay.portal.service.BaseLocalServiceImpl
getClassLoader, getLocalizationMap
 
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 MBMessage addDiscussionMessage(long userId,
                                      String userName,
                                      long groupId,
                                      String className,
                                      long classPK,
                                      int workflowAction)
                               throws PortalException
Throws:
PortalException

addDiscussionMessage

public MBMessage addDiscussionMessage(long userId,
                                      String userName,
                                      long groupId,
                                      String className,
                                      long classPK,
                                      long threadId,
                                      long parentMessageId,
                                      String subject,
                                      String body,
                                      ServiceContext serviceContext)
                               throws PortalException
Throws:
PortalException

addMessage

public MBMessage addMessage(long userId,
                            String userName,
                            long groupId,
                            long categoryId,
                            long threadId,
                            long parentMessageId,
                            String subject,
                            String body,
                            String format,
                            List<ObjectValuePair<String,InputStream>> inputStreamOVPs,
                            boolean anonymous,
                            double priority,
                            boolean allowPingbacks,
                            ServiceContext serviceContext)
                     throws PortalException
Throws:
PortalException

addMessage

public MBMessage addMessage(long userId,
                            String userName,
                            long groupId,
                            long categoryId,
                            String subject,
                            String body,
                            ServiceContext serviceContext)
                     throws PortalException
Throws:
PortalException

addMessage

public MBMessage addMessage(long userId,
                            String userName,
                            long groupId,
                            long categoryId,
                            String subject,
                            String body,
                            String format,
                            List<ObjectValuePair<String,InputStream>> inputStreamOVPs,
                            boolean anonymous,
                            double priority,
                            boolean allowPingbacks,
                            ServiceContext serviceContext)
                     throws PortalException
Throws:
PortalException

addMessage

public MBMessage addMessage(long userId,
                            String userName,
                            long groupId,
                            long categoryId,
                            String subject,
                            String body,
                            String format,
                            String fileName,
                            File file,
                            boolean anonymous,
                            double priority,
                            boolean allowPingbacks,
                            ServiceContext serviceContext)
                     throws FileNotFoundException,
                            PortalException
Throws:
FileNotFoundException
PortalException

addMessage

@Deprecated
public MBMessage addMessage(long userId,
                                       String userName,
                                       long categoryId,
                                       String subject,
                                       String body,
                                       ServiceContext serviceContext)
                     throws PortalException
Deprecated. As of 7.0.0, replaced by addMessage(long, String, long, long, String, String, ServiceContext)

Throws:
PortalException

addMessageAttachment

public void addMessageAttachment(long userId,
                                 long messageId,
                                 String fileName,
                                 File file,
                                 String mimeType)
                          throws PortalException
Throws:
PortalException

addMessageResources

public void addMessageResources(long messageId,
                                boolean addGroupPermissions,
                                boolean addGuestPermissions)
                         throws PortalException
Throws:
PortalException

addMessageResources

public void addMessageResources(long messageId,
                                ModelPermissions modelPermissions)
                         throws PortalException
Throws:
PortalException

addMessageResources

public void addMessageResources(MBMessage message,
                                boolean addGroupPermissions,
                                boolean addGuestPermissions)
                         throws PortalException
Throws:
PortalException

addMessageResources

public void addMessageResources(MBMessage message,
                                ModelPermissions modelPermissions)
                         throws PortalException
Throws:
PortalException

deleteDiscussionMessage

@Indexable(type=DELETE)
public MBMessage deleteDiscussionMessage(long messageId)
                                  throws PortalException
Throws:
PortalException

deleteDiscussionMessages

public void deleteDiscussionMessages(String className,
                                     long classPK)
                              throws PortalException
Throws:
PortalException

deleteMessage

@Indexable(type=DELETE)
public MBMessage deleteMessage(long messageId)
                        throws PortalException
Throws:
PortalException

deleteMessage

@Indexable(type=DELETE)
@SystemEvent(type=1)
public MBMessage deleteMessage(MBMessage message)
                        throws PortalException
Throws:
PortalException

deleteMessageAttachment

public void deleteMessageAttachment(long messageId,
                                    String fileName)
                             throws PortalException
Throws:
PortalException

deleteMessageAttachments

public void deleteMessageAttachments(long messageId)
                              throws PortalException
Throws:
PortalException

emptyMessageAttachments

public void emptyMessageAttachments(long messageId)
                             throws PortalException
Throws:
PortalException

getCategoryMessages

public List<MBMessage> getCategoryMessages(long groupId,
                                           long categoryId,
                                           int status,
                                           int start,
                                           int end)

getCategoryMessages

public List<MBMessage> getCategoryMessages(long groupId,
                                           long categoryId,
                                           int status,
                                           int start,
                                           int end,
                                           OrderByComparator<MBMessage> obc)

getCategoryMessagesCount

public int getCategoryMessagesCount(long groupId,
                                    long categoryId,
                                    int status)

getCompanyMessages

public List<MBMessage> getCompanyMessages(long companyId,
                                          int status,
                                          int start,
                                          int end)

getCompanyMessages

public List<MBMessage> getCompanyMessages(long companyId,
                                          int status,
                                          int start,
                                          int end,
                                          OrderByComparator<MBMessage> obc)

getCompanyMessagesCount

public int getCompanyMessagesCount(long companyId,
                                   int status)

getDiscussionMessageDisplay

public MBMessageDisplay getDiscussionMessageDisplay(long userId,
                                                    long groupId,
                                                    String className,
                                                    long classPK,
                                                    int status)
                                             throws PortalException
Throws:
PortalException

getDiscussionMessageDisplay

public MBMessageDisplay getDiscussionMessageDisplay(long userId,
                                                    long groupId,
                                                    String className,
                                                    long classPK,
                                                    int status,
                                                    Comparator<MBMessage> comparator)
                                             throws PortalException
Throws:
PortalException

getDiscussionMessageDisplay

@Deprecated
public MBMessageDisplay getDiscussionMessageDisplay(long userId,
                                                               long groupId,
                                                               String className,
                                                               long classPK,
                                                               int status,
                                                               String threadView)
                                             throws PortalException
Deprecated. As of 7.0.0, replaced by getDiscussionMessageDisplay(long, long, String, long, int)

Throws:
PortalException

getDiscussionMessagesCount

public int getDiscussionMessagesCount(long classNameId,
                                      long classPK,
                                      int status)

getDiscussionMessagesCount

public int getDiscussionMessagesCount(String className,
                                      long classPK,
                                      int status)

getDiscussions

public List<MBDiscussion> getDiscussions(String className)

getGroupMessages

public List<MBMessage> getGroupMessages(long groupId,
                                        int status,
                                        int start,
                                        int end)

getGroupMessages

public List<MBMessage> getGroupMessages(long groupId,
                                        int status,
                                        int start,
                                        int end,
                                        OrderByComparator<MBMessage> obc)

getGroupMessages

public List<MBMessage> getGroupMessages(long groupId,
                                        long userId,
                                        int status,
                                        int start,
                                        int end)

getGroupMessages

public List<MBMessage> getGroupMessages(long groupId,
                                        long userId,
                                        int status,
                                        int start,
                                        int end,
                                        OrderByComparator<MBMessage> obc)

getGroupMessagesCount

public int getGroupMessagesCount(long groupId,
                                 int status)

getGroupMessagesCount

public int getGroupMessagesCount(long groupId,
                                 long userId,
                                 int status)

getMessage

public MBMessage getMessage(long messageId)
                     throws PortalException
Throws:
PortalException

getMessageDisplay

public MBMessageDisplay getMessageDisplay(long userId,
                                          long messageId,
                                          int status,
                                          boolean includePrevAndNext)
                                   throws PortalException
Throws:
PortalException

getMessageDisplay

@Deprecated
public MBMessageDisplay getMessageDisplay(long userId,
                                                     long messageId,
                                                     int status,
                                                     String threadView,
                                                     boolean includePrevAndNext)
                                   throws PortalException
Deprecated. As of 7.0.0, replaced by getMessageDisplay(long, long, int, boolean)

Throws:
PortalException

getMessageDisplay

public MBMessageDisplay getMessageDisplay(long userId,
                                          MBMessage message,
                                          int status,
                                          boolean includePrevAndNext)
                                   throws PortalException
Throws:
PortalException

getMessageDisplay

public MBMessageDisplay getMessageDisplay(long userId,
                                          MBMessage message,
                                          int status,
                                          boolean includePrevAndNext,
                                          Comparator<MBMessage> comparator)
                                   throws PortalException
Throws:
PortalException

getMessageDisplay

@Deprecated
public MBMessageDisplay getMessageDisplay(long userId,
                                                     MBMessage message,
                                                     int status,
                                                     String threadView,
                                                     boolean includePrevAndNext)
                                   throws PortalException
Deprecated. As of 7.0.0, replaced by getMessageDisplay(long, MBMessage, int, boolean)

Throws:
PortalException

getMessageDisplay

@Deprecated
public MBMessageDisplay getMessageDisplay(long userId,
                                                     MBMessage message,
                                                     int status,
                                                     String threadView,
                                                     boolean includePrevAndNext,
                                                     Comparator<MBMessage> comparator)
                                   throws PortalException
Deprecated. As of 7.0.0, replaced by getMessageDisplay(long, MBMessage, int, boolean, Comparator) (

Throws:
PortalException

getMessages

public List<MBMessage> getMessages(String className,
                                   long classPK,
                                   int status)

getNoAssetMessages

public List<MBMessage> getNoAssetMessages()

getPositionInThread

public int getPositionInThread(long messageId)
                        throws PortalException
Throws:
PortalException

getThreadMessages

public List<MBMessage> getThreadMessages(long threadId,
                                         int status)

getThreadMessages

public List<MBMessage> getThreadMessages(long threadId,
                                         int status,
                                         Comparator<MBMessage> comparator)

getThreadMessages

public List<MBMessage> getThreadMessages(long threadId,
                                         int status,
                                         int start,
                                         int end)

getThreadMessagesCount

public int getThreadMessagesCount(long threadId,
                                  int status)

getThreadRepliesMessages

public List<MBMessage> getThreadRepliesMessages(long threadId,
                                                int status,
                                                int start,
                                                int end)

getUserDiscussionMessages

public List<MBMessage> getUserDiscussionMessages(long userId,
                                                 long classNameId,
                                                 long classPK,
                                                 int status,
                                                 int start,
                                                 int end,
                                                 OrderByComparator<MBMessage> obc)

getUserDiscussionMessages

public List<MBMessage> getUserDiscussionMessages(long userId,
                                                 long[] classNameIds,
                                                 int status,
                                                 int start,
                                                 int end,
                                                 OrderByComparator<MBMessage> obc)

getUserDiscussionMessages

public List<MBMessage> getUserDiscussionMessages(long userId,
                                                 String className,
                                                 long classPK,
                                                 int status,
                                                 int start,
                                                 int end,
                                                 OrderByComparator<MBMessage> obc)

getUserDiscussionMessagesCount

public int getUserDiscussionMessagesCount(long userId,
                                          long classNameId,
                                          long classPK,
                                          int status)

getUserDiscussionMessagesCount

public int getUserDiscussionMessagesCount(long userId,
                                          long[] classNameIds,
                                          int status)

getUserDiscussionMessagesCount

public int getUserDiscussionMessagesCount(long userId,
                                          String className,
                                          long classPK,
                                          int status)

moveMessageAttachmentToTrash

public long moveMessageAttachmentToTrash(long userId,
                                         long messageId,
                                         String fileName)
                                  throws PortalException
Throws:
PortalException

restoreMessageAttachmentFromTrash

public void restoreMessageAttachmentFromTrash(long userId,
                                              long messageId,
                                              String deletedFileName)
                                       throws PortalException
Throws:
PortalException

subscribeMessage

public void subscribeMessage(long userId,
                             long messageId)
                      throws PortalException
Throws:
PortalException

unsubscribeMessage

public void unsubscribeMessage(long userId,
                               long messageId)
                        throws PortalException
Throws:
PortalException

updateAnswer

public void updateAnswer(long messageId,
                         boolean answer,
                         boolean cascade)
                  throws PortalException
Throws:
PortalException

updateAnswer

public void updateAnswer(MBMessage message,
                         boolean answer,
                         boolean cascade)
                  throws PortalException
Throws:
PortalException

updateAsset

public void updateAsset(long userId,
                        MBMessage message,
                        long[] assetCategoryIds,
                        String[] assetTagNames,
                        long[] assetLinkEntryIds)
                 throws PortalException
Throws:
PortalException

updateDiscussionMessage

public MBMessage updateDiscussionMessage(long userId,
                                         long messageId,
                                         String className,
                                         long classPK,
                                         String subject,
                                         String body,
                                         ServiceContext serviceContext)
                                  throws PortalException
Throws:
PortalException

updateMessage

public MBMessage updateMessage(long userId,
                               long messageId,
                               String body,
                               ServiceContext serviceContext)
                        throws PortalException
Throws:
PortalException

updateMessage

public MBMessage updateMessage(long userId,
                               long messageId,
                               String subject,
                               String body,
                               List<ObjectValuePair<String,InputStream>> inputStreamOVPs,
                               List<String> existingFiles,
                               double priority,
                               boolean allowPingbacks,
                               ServiceContext serviceContext)
                        throws PortalException
Throws:
PortalException

updateMessage

@Deprecated
public MBMessage updateMessage(long messageId,
                                          String body)
                        throws PortalException
Deprecated. As of 7.0.0, with no direct replacement

Throws:
PortalException

updateStatus

@Deprecated
public MBMessage updateStatus(long userId,
                                         long messageId,
                                         int status,
                                         ServiceContext serviceContext)
                       throws PortalException
Deprecated. As of 7.0.0, replaced by updateStatus(long, long, int, ServiceContext, Map)

Throws:
PortalException

updateStatus

public MBMessage updateStatus(long userId,
                              long messageId,
                              int status,
                              ServiceContext serviceContext,
                              Map<String,Serializable> workflowContext)
                       throws PortalException
Throws:
PortalException

updateUserName

public void updateUserName(long userId,
                           String userName)

getBody

protected String getBody(String subject,
                         String body)

getMessageURL

protected String getMessageURL(MBMessage message,
                               ServiceContext serviceContext)
                        throws PortalException
Throws:
PortalException

getSubject

protected String getSubject(String subject,
                            String body)

getSubscriptionSender

protected MBSubscriptionSender getSubscriptionSender(long userId,
                                                     MBMessage message,
                                                     String messageURL,
                                                     String entryTitle,
                                                     boolean htmlFormat,
                                                     String messageBody,
                                                     String categoryName,
                                                     String inReplyTo,
                                                     String fromName,
                                                     String fromAddress,
                                                     String replyToAddress,
                                                     String emailAddress,
                                                     String fullName,
                                                     LocalizedValuesMap subjectLocalizedValuesMap,
                                                     LocalizedValuesMap bodyLocalizedValuesMap,
                                                     ServiceContext serviceContext)

notifyDiscussionSubscribers

protected void notifyDiscussionSubscribers(long userId,
                                           MBMessage message,
                                           ServiceContext serviceContext)
                                    throws PortalException
Throws:
PortalException

notifySubscribers

protected void notifySubscribers(long userId,
                                 MBMessage message,
                                 String messageURL,
                                 ServiceContext serviceContext)
                          throws PortalException
Throws:
PortalException

pingPingback

protected void pingPingback(MBMessage message,
                            ServiceContext serviceContext)

startWorkflowInstance

protected void startWorkflowInstance(long userId,
                                     MBMessage message,
                                     ServiceContext serviceContext)
                              throws PortalException
Throws:
PortalException

updateAsset

protected void updateAsset(long userId,
                           MBMessage message,
                           long[] assetCategoryIds,
                           String[] assetTagNames,
                           long[] assetLinkEntryIds,
                           boolean assetEntryVisible)
                    throws PortalException
Throws:
PortalException

updatePriorities

protected void updatePriorities(long threadId,
                                double priority)

updateThreadStatus

protected void updateThreadStatus(MBThread thread,
                                  MBMessage message,
                                  User user,
                                  int oldStatus,
                                  Date modifiedDate)
                           throws PortalException
Throws:
PortalException

validate

protected void validate(String subject,
                        String body)
                 throws PortalException
Throws:
PortalException

validateDiscussionMaxComments

protected void validateDiscussionMaxComments(String className,
                                             long classPK)
                                      throws PortalException
Throws:
PortalException

Liferay 7.0-ce-b4