com.liferay.portlet.messageboards.service
Interface MBMessageService


public interface MBMessageService

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.MBMessageServiceImpl. Modify methods in that class and rerun ServiceBuilder to populate this class and all other generated classes.

This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.

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

Method Summary
 MBMessage addDiscussionMessage(long groupId, java.lang.String className, long classPK, long threadId, long parentMessageId, java.lang.String subject, java.lang.String body, ThemeDisplay themeDisplay)
           
 MBMessage addMessage(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, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 MBMessage addMessage(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 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 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, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 MBMessage addMessage(long categoryId, java.lang.String subject, java.lang.String body, java.util.List files, boolean anonymous, double priority, java.lang.String[] tagsEntries, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 MBMessage addMessage(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 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)
           
 MBMessage addMessage(long categoryId, java.lang.String subject, java.lang.String body, java.util.List files, boolean anonymous, double priority, java.lang.String[] tagsEntries, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 void deleteDiscussionMessage(long groupId, java.lang.String className, long classPK, long messageId)
           
 void deleteMessage(long messageId)
           
 java.lang.String getCategoryMessagesRSS(long categoryId, int max, java.lang.String type, double version, java.lang.String feedURL, java.lang.String entryURL, javax.portlet.PortletPreferences prefs)
           
 java.lang.String getCompanyMessagesRSS(long companyId, int max, java.lang.String type, double version, java.lang.String feedURL, java.lang.String entryURL, javax.portlet.PortletPreferences prefs)
           
 java.lang.String getGroupMessagesRSS(long groupId, int max, java.lang.String type, double version, java.lang.String feedURL, java.lang.String entryURL, javax.portlet.PortletPreferences prefs)
           
 MBMessage getMessage(long messageId)
           
 MBMessageDisplay getMessageDisplay(long messageId)
           
 java.lang.String getThreadMessagesRSS(long threadId, int max, java.lang.String type, double version, java.lang.String feedURL, java.lang.String entryURL, javax.portlet.PortletPreferences prefs)
           
 void subscribeMessage(long messageId)
           
 void unsubscribeMessage(long messageId)
           
 MBMessage updateDiscussionMessage(long groupId, java.lang.String className, long classPK, long messageId, java.lang.String subject, java.lang.String body)
           
 MBMessage updateMessage(long messageId, long categoryId, java.lang.String subject, java.lang.String body, java.util.List files, double priority, java.lang.String[] tagsEntries)
           
 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)
           
 

Method Detail

addDiscussionMessage

public MBMessage addDiscussionMessage(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,
                                      java.rmi.RemoteException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
java.rmi.RemoteException

addMessage

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

addMessage

public MBMessage addMessage(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,
                            java.rmi.RemoteException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
java.rmi.RemoteException

addMessage

public MBMessage addMessage(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,
                            boolean addCommunityPermissions,
                            boolean addGuestPermissions)
                     throws com.liferay.portal.SystemException,
                            com.liferay.portal.PortalException,
                            java.rmi.RemoteException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
java.rmi.RemoteException

addMessage

public MBMessage addMessage(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,
                            java.rmi.RemoteException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
java.rmi.RemoteException

addMessage

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

addMessage

public MBMessage addMessage(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,
                            java.rmi.RemoteException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
java.rmi.RemoteException

addMessage

public MBMessage addMessage(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,
                            java.lang.String[] communityPermissions,
                            java.lang.String[] guestPermissions)
                     throws com.liferay.portal.SystemException,
                            com.liferay.portal.PortalException,
                            java.rmi.RemoteException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
java.rmi.RemoteException

addMessage

public MBMessage addMessage(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,
                            java.rmi.RemoteException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
java.rmi.RemoteException

deleteDiscussionMessage

public void deleteDiscussionMessage(long groupId,
                                    java.lang.String className,
                                    long classPK,
                                    long messageId)
                             throws com.liferay.portal.SystemException,
                                    com.liferay.portal.PortalException,
                                    java.rmi.RemoteException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
java.rmi.RemoteException

deleteMessage

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

getCategoryMessagesRSS

public java.lang.String getCategoryMessagesRSS(long categoryId,
                                               int max,
                                               java.lang.String type,
                                               double version,
                                               java.lang.String feedURL,
                                               java.lang.String entryURL,
                                               javax.portlet.PortletPreferences prefs)
                                        throws com.liferay.portal.SystemException,
                                               com.liferay.portal.PortalException,
                                               java.rmi.RemoteException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
java.rmi.RemoteException

getCompanyMessagesRSS

public java.lang.String getCompanyMessagesRSS(long companyId,
                                              int max,
                                              java.lang.String type,
                                              double version,
                                              java.lang.String feedURL,
                                              java.lang.String entryURL,
                                              javax.portlet.PortletPreferences prefs)
                                       throws com.liferay.portal.SystemException,
                                              com.liferay.portal.PortalException,
                                              java.rmi.RemoteException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
java.rmi.RemoteException

getGroupMessagesRSS

public java.lang.String getGroupMessagesRSS(long groupId,
                                            int max,
                                            java.lang.String type,
                                            double version,
                                            java.lang.String feedURL,
                                            java.lang.String entryURL,
                                            javax.portlet.PortletPreferences prefs)
                                     throws com.liferay.portal.SystemException,
                                            com.liferay.portal.PortalException,
                                            java.rmi.RemoteException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
java.rmi.RemoteException

getMessage

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

getMessageDisplay

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

getThreadMessagesRSS

public java.lang.String getThreadMessagesRSS(long threadId,
                                             int max,
                                             java.lang.String type,
                                             double version,
                                             java.lang.String feedURL,
                                             java.lang.String entryURL,
                                             javax.portlet.PortletPreferences prefs)
                                      throws com.liferay.portal.SystemException,
                                             com.liferay.portal.PortalException,
                                             java.rmi.RemoteException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
java.rmi.RemoteException

subscribeMessage

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

unsubscribeMessage

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

updateDiscussionMessage

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

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)
                        throws com.liferay.portal.SystemException,
                               com.liferay.portal.PortalException,
                               java.rmi.RemoteException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
java.rmi.RemoteException

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,
                               java.rmi.RemoteException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
java.rmi.RemoteException