com.liferay.portlet.messageboards.service
Interface MBMessageLocalService


public interface MBMessageLocalService

View Source

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

This interface defines the service. The default implementation is com.liferay.portlet.messageboards.service.impl.MBMessageLocalServiceImpl. Modify methods in that class and rerun ServiceBuilder to populate this class and all other generated classes.

This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.

Author:
Brian Wing Shun Chan
See Also:
MBMessageServiceFactory, MBMessageServiceUtil

Method Summary
 MBMessage addDiscussionMessage(long userId, long groupId, java.lang.String className, long classPK, long threadId, long parentMessageId, java.lang.String subject, java.lang.String body, ThemeDisplay themeDisplay)
           
 MBMessage addDiscussionMessage(long userId, java.lang.String subject, java.lang.String body)
           
 MBMessage addMBMessage(MBMessage model)
           
 MBMessage addMessage(long userId, long categoryId, long threadId, long parentMessageId, java.lang.String subject, java.lang.String body, java.util.List files, boolean anonymous, double priority, java.lang.String[] tagsEntries, javax.portlet.PortletPreferences prefs, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 MBMessage addMessage(long userId, long categoryId, long threadId, long parentMessageId, java.lang.String subject, java.lang.String body, java.util.List 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)
           
 MBMessage addMessage(long userId, long categoryId, long threadId, long parentMessageId, java.lang.String subject, java.lang.String body, java.util.List files, boolean anonymous, double priority, java.lang.String[] tagsEntries, javax.portlet.PortletPreferences prefs, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 MBMessage addMessage(long userId, long categoryId, java.lang.String subject, java.lang.String body, java.util.List files, boolean anonymous, double priority, java.lang.String[] tagsEntries, javax.portlet.PortletPreferences prefs, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 MBMessage addMessage(long userId, long categoryId, java.lang.String subject, java.lang.String body, java.util.List 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)
           
 MBMessage addMessage(long userId, long categoryId, java.lang.String subject, java.lang.String body, java.util.List files, boolean anonymous, double priority, java.lang.String[] tagsEntries, javax.portlet.PortletPreferences prefs, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 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(MBCategory category, MBMessage message, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addMessageResources(MBCategory category, 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(MBMessage message)
           
 java.util.List dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
           
 java.util.List dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer, int begin, int end)
           
 int getCategoriesMessagesCount(java.util.List categoryIds)
           
 java.util.List getCategoryMessages(long categoryId, int begin, int end)
           
 java.util.List getCategoryMessages(long categoryId, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 int getCategoryMessagesCount(long categoryId)
           
 java.util.List getCompanyMessages(long companyId, int begin, int end)
           
 java.util.List getCompanyMessages(long companyId, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 int getCompanyMessagesCount(long companyId)
           
 MBMessageDisplay getDiscussionMessageDisplay(long userId, java.lang.String className, long classPK)
           
 int getDiscussionMessagesCount(long classNameId, long classPK)
           
 java.util.List getGroupMessages(long groupId, int begin, int end)
           
 java.util.List getGroupMessages(long groupId, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 int getGroupMessagesCount(long groupId)
           
 MBMessage getMessage(long messageId)
           
 MBMessageDisplay getMessageDisplay(long messageId)
           
 MBMessageDisplay getMessageDisplay(MBMessage message)
           
 java.util.List getThreadMessages(long threadId)
           
 java.util.List getThreadMessages(long threadId, java.util.Comparator comparator)
           
 int getThreadMessagesCount(long threadId)
           
 void subscribeMessage(long userId, long messageId)
           
 void unsubscribeMessage(long userId, long messageId)
           
 MBMessage updateDiscussionMessage(long messageId, java.lang.String subject, java.lang.String body)
           
 MBMessage updateMBMessage(MBMessage model)
           
 MBMessage updateMessage(long messageId, java.util.Date createDate, java.util.Date modifiedDate)
           
 MBMessage updateMessage(long messageId, long categoryId, java.lang.String subject, java.lang.String body, java.util.List files, double priority, java.lang.String[] tagsEntries, javax.portlet.PortletPreferences prefs)
           
 MBMessage updateMessage(long messageId, java.lang.String body)
           
 

Method Detail

addMBMessage

public MBMessage addMBMessage(MBMessage model)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

public java.util.List dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

public java.util.List dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
                                   int begin,
                                   int end)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateMBMessage

public MBMessage updateMBMessage(MBMessage model)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

addDiscussionMessage

public MBMessage addDiscussionMessage(long userId,
                                      java.lang.String subject,
                                      java.lang.String body)
                               throws com.liferay.portal.SystemException,
                                      com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

addDiscussionMessage

public MBMessage addDiscussionMessage(long userId,
                                      long groupId,
                                      java.lang.String className,
                                      long classPK,
                                      long threadId,
                                      long parentMessageId,
                                      java.lang.String subject,
                                      java.lang.String body,
                                      ThemeDisplay themeDisplay)
                               throws com.liferay.portal.SystemException,
                                      com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

addMessage

public MBMessage addMessage(long userId,
                            long categoryId,
                            java.lang.String subject,
                            java.lang.String body,
                            java.util.List files,
                            boolean anonymous,
                            double priority,
                            java.lang.String[] tagsEntries,
                            javax.portlet.PortletPreferences prefs,
                            boolean addCommunityPermissions,
                            boolean addGuestPermissions)
                     throws com.liferay.portal.SystemException,
                            com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

addMessage

public MBMessage addMessage(long userId,
                            long categoryId,
                            java.lang.String subject,
                            java.lang.String body,
                            java.util.List files,
                            boolean anonymous,
                            double priority,
                            java.lang.String[] tagsEntries,
                            javax.portlet.PortletPreferences prefs,
                            java.lang.String[] communityPermissions,
                            java.lang.String[] guestPermissions)
                     throws com.liferay.portal.SystemException,
                            com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

addMessage

public MBMessage addMessage(long userId,
                            long categoryId,
                            java.lang.String subject,
                            java.lang.String body,
                            java.util.List 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)
                     throws com.liferay.portal.SystemException,
                            com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

addMessage

public MBMessage addMessage(long userId,
                            long categoryId,
                            long threadId,
                            long parentMessageId,
                            java.lang.String subject,
                            java.lang.String body,
                            java.util.List files,
                            boolean anonymous,
                            double priority,
                            java.lang.String[] tagsEntries,
                            javax.portlet.PortletPreferences prefs,
                            boolean addCommunityPermissions,
                            boolean addGuestPermissions)
                     throws com.liferay.portal.SystemException,
                            com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

addMessage

public MBMessage addMessage(long userId,
                            long categoryId,
                            long threadId,
                            long parentMessageId,
                            java.lang.String subject,
                            java.lang.String body,
                            java.util.List files,
                            boolean anonymous,
                            double priority,
                            java.lang.String[] tagsEntries,
                            javax.portlet.PortletPreferences prefs,
                            java.lang.String[] communityPermissions,
                            java.lang.String[] guestPermissions)
                     throws com.liferay.portal.SystemException,
                            com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

addMessage

public MBMessage addMessage(long userId,
                            long categoryId,
                            long threadId,
                            long parentMessageId,
                            java.lang.String subject,
                            java.lang.String body,
                            java.util.List 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)
                     throws com.liferay.portal.SystemException,
                            com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

addMessageResources

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

addMessageResources

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

addMessageResources

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

addMessageResources

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

addMessageResources

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

addMessageResources

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

deleteDiscussionMessage

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

deleteDiscussionMessages

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

deleteMessage

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

deleteMessage

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

getCategoryMessages

public java.util.List getCategoryMessages(long categoryId,
                                          int begin,
                                          int end)
                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getCategoryMessages

public java.util.List 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 categoryIds)
                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getCompanyMessages

public java.util.List getCompanyMessages(long companyId,
                                         int begin,
                                         int end)
                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getCompanyMessages

public java.util.List 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 MBMessageDisplay getDiscussionMessageDisplay(long userId,
                                                    java.lang.String className,
                                                    long classPK)
                                             throws com.liferay.portal.SystemException,
                                                    com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

getDiscussionMessagesCount

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

getGroupMessages

public java.util.List getGroupMessages(long groupId,
                                       int begin,
                                       int end)
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroupMessages

public java.util.List getGroupMessages(long groupId,
                                       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

getMessage

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

getMessageDisplay

public MBMessageDisplay getMessageDisplay(long messageId)
                                   throws com.liferay.portal.SystemException,
                                          com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

getMessageDisplay

public MBMessageDisplay getMessageDisplay(MBMessage message)
                                   throws com.liferay.portal.SystemException,
                                          com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

getThreadMessages

public java.util.List getThreadMessages(long threadId)
                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getThreadMessages

public java.util.List getThreadMessages(long threadId,
                                        java.util.Comparator 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.SystemException,
                             com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

unsubscribeMessage

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

updateDiscussionMessage

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

updateMessage

public MBMessage updateMessage(long messageId,
                               long categoryId,
                               java.lang.String subject,
                               java.lang.String body,
                               java.util.List files,
                               double priority,
                               java.lang.String[] tagsEntries,
                               javax.portlet.PortletPreferences prefs)
                        throws com.liferay.portal.SystemException,
                               com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

updateMessage

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

updateMessage

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