com.liferay.portlet.messageboards.service
Class MBMessageServiceUtil

java.lang.Object
  extended bycom.liferay.portlet.messageboards.service.MBMessageServiceUtil

public class MBMessageServiceUtil
extends java.lang.Object

View Source

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

This class provides static methods for the com.liferay.portlet.messageboards.service.MBMessageService bean. The static methods of this class calls the same methods of the bean instance. It's convenient to be able to just write one line to call a method on a bean instead of writing a lookup call and a method call.

com.liferay.portlet.messageboards.service.MBMessageServiceFactory is responsible for the lookup of the bean.

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

Constructor Summary
MBMessageServiceUtil()
           
 
Method Summary
static MBMessage addDiscussionMessage(long groupId, java.lang.String className, long classPK, long threadId, long parentMessageId, java.lang.String subject, java.lang.String body, ThemeDisplay themeDisplay)
           
static 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)
           
static 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)
           
static 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)
           
static 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)
           
static 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)
           
static 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)
           
static 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)
           
static 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)
           
static void deleteDiscussionMessage(long groupId, java.lang.String className, long classPK, long messageId)
           
static void deleteMessage(long messageId)
           
static 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)
           
static 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)
           
static 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)
           
static MBMessage getMessage(long messageId)
           
static MBMessageDisplay getMessageDisplay(long messageId)
           
static 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)
           
static void subscribeMessage(long messageId)
           
static void unsubscribeMessage(long messageId)
           
static MBMessage updateDiscussionMessage(long groupId, java.lang.String className, long classPK, long messageId, java.lang.String subject, java.lang.String body)
           
static MBMessage updateMessage(long messageId, long categoryId, java.lang.String subject, java.lang.String body, java.util.List files, double priority, java.lang.String[] tagsEntries)
           
static 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MBMessageServiceUtil

public MBMessageServiceUtil()
Method Detail

addDiscussionMessage

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

addMessage

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

addMessage

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

addMessage

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

addMessage

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

addMessage

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

addMessage

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

addMessage

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

addMessage

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

deleteDiscussionMessage

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

deleteMessage

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

getCategoryMessagesRSS

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

getCompanyMessagesRSS

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

getGroupMessagesRSS

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

getMessage

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

getMessageDisplay

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

getThreadMessagesRSS

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

subscribeMessage

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

unsubscribeMessage

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

updateDiscussionMessage

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

updateMessage

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

updateMessage

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