Liferay 6.2-ce-ga5

com.liferay.portlet.messageboards.service
Class MBMessageServiceUtil

java.lang.Object
  extended by com.liferay.portlet.messageboards.service.MBMessageServiceUtil

@ProviderType
public class MBMessageServiceUtil
extends Object

Provides the remote service utility for MBMessage. This utility wraps com.liferay.portlet.messageboards.service.impl.MBMessageServiceImpl and is the primary access point for service operations in application layer code running on a remote server. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.

See Also:
MBMessageService, com.liferay.portlet.messageboards.service.base.MBMessageServiceBaseImpl, com.liferay.portlet.messageboards.service.impl.MBMessageServiceImpl

Constructor Summary
MBMessageServiceUtil()
           
 
Method Summary
static MBMessage addDiscussionMessage(long groupId, String className, long classPK, String permissionClassName, long permissionClassPK, long permissionOwnerId, long threadId, long parentMessageId, String subject, String body, ServiceContext serviceContext)
           
static MBMessage addMessage(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)
          Deprecated. As of 6.2.0, replaced by addMessage(long, String, String, String, java.util.List, boolean, double, boolean, com.liferay.portal.service.ServiceContext)
static MBMessage addMessage(long groupId, long categoryId, String subject, String body, String format, List<ObjectValuePair<String,InputStream>> inputStreamOVPs, boolean anonymous, double priority, boolean allowPingbacks, ServiceContext serviceContext)
           
static MBMessage addMessage(long categoryId, String subject, String body, ServiceContext serviceContext)
           
static MBMessage addMessage(long parentMessageId, String subject, String body, String format, List<ObjectValuePair<String,InputStream>> inputStreamOVPs, boolean anonymous, double priority, boolean allowPingbacks, ServiceContext serviceContext)
           
static void deleteDiscussionMessage(long groupId, String className, long classPK, String permissionClassName, long permissionClassPK, long permissionOwnerId, long messageId)
           
static void deleteMessage(long messageId)
           
static void deleteMessageAttachments(long messageId)
           
static String getBeanIdentifier()
          Returns the Spring bean ID for this bean.
static List<MBMessage> getCategoryMessages(long groupId, long categoryId, int status, int start, int end)
           
static int getCategoryMessagesCount(long groupId, long categoryId, int status)
           
static String getCategoryMessagesRSS(long groupId, long categoryId, int status, int max, String type, double version, String displayStyle, String feedURL, String entryURL, ThemeDisplay themeDisplay)
           
static String getCompanyMessagesRSS(long companyId, int status, int max, String type, double version, String displayStyle, String feedURL, String entryURL, ThemeDisplay themeDisplay)
           
static int getGroupMessagesCount(long groupId, int status)
           
static String getGroupMessagesRSS(long groupId, int status, int max, String type, double version, String displayStyle, String feedURL, String entryURL, ThemeDisplay themeDisplay)
           
static String getGroupMessagesRSS(long groupId, long userId, int status, int max, String type, double version, String displayStyle, String feedURL, String entryURL, ThemeDisplay themeDisplay)
           
static MBMessage getMessage(long messageId)
           
static MBMessageDisplay getMessageDisplay(long messageId, int status, String threadView, boolean includePrevAndNext)
           
static MBMessageService getService()
           
static int getThreadAnswersCount(long groupId, long categoryId, long threadId)
           
static List<MBMessage> getThreadMessages(long groupId, long categoryId, long threadId, int status, int start, int end)
           
static int getThreadMessagesCount(long groupId, long categoryId, long threadId, int status)
           
static String getThreadMessagesRSS(long threadId, int status, int max, String type, double version, String displayStyle, String feedURL, String entryURL, ThemeDisplay themeDisplay)
           
static void restoreMessageAttachmentFromTrash(long messageId, String fileName)
           
static void setBeanIdentifier(String beanIdentifier)
          Sets the Spring bean ID for this bean.
 void setService(MBMessageService service)
          Deprecated. As of 6.2.0
static void subscribeMessage(long messageId)
           
static void unsubscribeMessage(long messageId)
           
static void updateAnswer(long messageId, boolean answer, boolean cascade)
           
static MBMessage updateDiscussionMessage(String className, long classPK, String permissionClassName, long permissionClassPK, long permissionOwnerId, long messageId, String subject, String body, ServiceContext serviceContext)
           
static MBMessage updateMessage(long messageId, String subject, String body, List<ObjectValuePair<String,InputStream>> inputStreamOVPs, List<String> existingFiles, double priority, boolean allowPingbacks, ServiceContext serviceContext)
           
 
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

getBeanIdentifier

public static String getBeanIdentifier()
Returns the Spring bean ID for this bean.

Returns:
the Spring bean ID for this bean

setBeanIdentifier

public static void setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean.

Parameters:
beanIdentifier - the Spring bean ID for this bean

addDiscussionMessage

public static MBMessage addDiscussionMessage(long groupId,
                                             String className,
                                             long classPK,
                                             String permissionClassName,
                                             long permissionClassPK,
                                             long permissionOwnerId,
                                             long threadId,
                                             long parentMessageId,
                                             String subject,
                                             String body,
                                             ServiceContext serviceContext)
                                      throws PortalException,
                                             SystemException
Throws:
PortalException
SystemException

addMessage

public static MBMessage addMessage(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,
                                   SystemException
Deprecated. As of 6.2.0, replaced by addMessage(long, String, String, String, java.util.List, boolean, double, boolean, com.liferay.portal.service.ServiceContext)

Throws:
PortalException
SystemException

addMessage

public static MBMessage addMessage(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,
                                   SystemException
Throws:
PortalException
SystemException

addMessage

public static MBMessage addMessage(long categoryId,
                                   String subject,
                                   String body,
                                   ServiceContext serviceContext)
                            throws PortalException,
                                   SystemException
Throws:
PortalException
SystemException

addMessage

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

deleteDiscussionMessage

public static void deleteDiscussionMessage(long groupId,
                                           String className,
                                           long classPK,
                                           String permissionClassName,
                                           long permissionClassPK,
                                           long permissionOwnerId,
                                           long messageId)
                                    throws PortalException,
                                           SystemException
Throws:
PortalException
SystemException

deleteMessage

public static void deleteMessage(long messageId)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

deleteMessageAttachments

public static void deleteMessageAttachments(long messageId)
                                     throws PortalException,
                                            SystemException
Throws:
PortalException
SystemException

getCategoryMessages

public static List<MBMessage> getCategoryMessages(long groupId,
                                                  long categoryId,
                                                  int status,
                                                  int start,
                                                  int end)
                                           throws PortalException,
                                                  SystemException
Throws:
PortalException
SystemException

getCategoryMessagesCount

public static int getCategoryMessagesCount(long groupId,
                                           long categoryId,
                                           int status)
                                    throws SystemException
Throws:
SystemException

getCategoryMessagesRSS

public static String getCategoryMessagesRSS(long groupId,
                                            long categoryId,
                                            int status,
                                            int max,
                                            String type,
                                            double version,
                                            String displayStyle,
                                            String feedURL,
                                            String entryURL,
                                            ThemeDisplay themeDisplay)
                                     throws PortalException,
                                            SystemException
Throws:
PortalException
SystemException

getCompanyMessagesRSS

public static String getCompanyMessagesRSS(long companyId,
                                           int status,
                                           int max,
                                           String type,
                                           double version,
                                           String displayStyle,
                                           String feedURL,
                                           String entryURL,
                                           ThemeDisplay themeDisplay)
                                    throws PortalException,
                                           SystemException
Throws:
PortalException
SystemException

getGroupMessagesCount

public static int getGroupMessagesCount(long groupId,
                                        int status)
                                 throws SystemException
Throws:
SystemException

getGroupMessagesRSS

public static String getGroupMessagesRSS(long groupId,
                                         int status,
                                         int max,
                                         String type,
                                         double version,
                                         String displayStyle,
                                         String feedURL,
                                         String entryURL,
                                         ThemeDisplay themeDisplay)
                                  throws PortalException,
                                         SystemException
Throws:
PortalException
SystemException

getGroupMessagesRSS

public static String getGroupMessagesRSS(long groupId,
                                         long userId,
                                         int status,
                                         int max,
                                         String type,
                                         double version,
                                         String displayStyle,
                                         String feedURL,
                                         String entryURL,
                                         ThemeDisplay themeDisplay)
                                  throws PortalException,
                                         SystemException
Throws:
PortalException
SystemException

getMessage

public static MBMessage getMessage(long messageId)
                            throws PortalException,
                                   SystemException
Throws:
PortalException
SystemException

getMessageDisplay

public static MBMessageDisplay getMessageDisplay(long messageId,
                                                 int status,
                                                 String threadView,
                                                 boolean includePrevAndNext)
                                          throws PortalException,
                                                 SystemException
Throws:
PortalException
SystemException

getThreadAnswersCount

public static int getThreadAnswersCount(long groupId,
                                        long categoryId,
                                        long threadId)
                                 throws SystemException
Throws:
SystemException

getThreadMessages

public static List<MBMessage> getThreadMessages(long groupId,
                                                long categoryId,
                                                long threadId,
                                                int status,
                                                int start,
                                                int end)
                                         throws SystemException
Throws:
SystemException

getThreadMessagesCount

public static int getThreadMessagesCount(long groupId,
                                         long categoryId,
                                         long threadId,
                                         int status)
                                  throws SystemException
Throws:
SystemException

getThreadMessagesRSS

public static String getThreadMessagesRSS(long threadId,
                                          int status,
                                          int max,
                                          String type,
                                          double version,
                                          String displayStyle,
                                          String feedURL,
                                          String entryURL,
                                          ThemeDisplay themeDisplay)
                                   throws PortalException,
                                          SystemException
Throws:
PortalException
SystemException

restoreMessageAttachmentFromTrash

public static void restoreMessageAttachmentFromTrash(long messageId,
                                                     String fileName)
                                              throws PortalException,
                                                     SystemException
Throws:
PortalException
SystemException

subscribeMessage

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

unsubscribeMessage

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

updateAnswer

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

updateDiscussionMessage

public static MBMessage updateDiscussionMessage(String className,
                                                long classPK,
                                                String permissionClassName,
                                                long permissionClassPK,
                                                long permissionOwnerId,
                                                long messageId,
                                                String subject,
                                                String body,
                                                ServiceContext serviceContext)
                                         throws PortalException,
                                                SystemException
Throws:
PortalException
SystemException

updateMessage

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

getService

public static MBMessageService getService()

setService

public void setService(MBMessageService service)
Deprecated. As of 6.2.0


Liferay 6.2-ce-ga5