Liferay 7.0-ce-b4

com.liferay.portlet.messageboards.service
Class MBMessageServiceWrapper

java.lang.Object
  extended by com.liferay.portlet.messageboards.service.MBMessageServiceWrapper
All Implemented Interfaces:
BaseService, ServiceWrapper<MBMessageService>, MBMessageService

@ProviderType
public class MBMessageServiceWrapper
extends Object
implements MBMessageService, ServiceWrapper<MBMessageService>

Provides a wrapper for MBMessageService.

See Also:
MBMessageService
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Constructor Summary
MBMessageServiceWrapper(MBMessageService mbMessageService)
           
 
Method Summary
 MBMessage addDiscussionMessage(long groupId, String className, long classPK, long threadId, long parentMessageId, String subject, String body, ServiceContext serviceContext)
           
 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, List, boolean, double, boolean, ServiceContext)
 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)
           
 MBMessage addMessage(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 categoryId, String subject, String body, ServiceContext serviceContext)
           
 MBMessage addMessage(long parentMessageId, String subject, String body, String format, List<ObjectValuePair<String,InputStream>> inputStreamOVPs, boolean anonymous, double priority, boolean allowPingbacks, ServiceContext serviceContext)
           
 void addMessageAttachment(long messageId, String fileName, File file, String mimeType)
           
 void deleteDiscussionMessage(long messageId)
           
 void deleteDiscussionMessage(long groupId, String className, long classPK, String permissionClassName, long permissionClassPK, long permissionOwnerId, long messageId)
          Deprecated. As of 7.0.0, replaced by deleteDiscussionMessage(long)
 void deleteMessage(long messageId)
           
 void deleteMessageAttachment(long messageId, String fileName)
           
 void deleteMessageAttachments(long messageId)
           
 void emptyMessageAttachments(long messageId)
           
 List<MBMessage> getCategoryMessages(long groupId, long categoryId, int status, int start, int end)
           
 int getCategoryMessagesCount(long groupId, long categoryId, int status)
           
 String getCategoryMessagesRSS(long groupId, long categoryId, int status, int max, String type, double version, String displayStyle, String feedURL, String entryURL, ThemeDisplay themeDisplay)
           
 String getCompanyMessagesRSS(long companyId, int status, int max, String type, double version, String displayStyle, String feedURL, String entryURL, ThemeDisplay themeDisplay)
           
 int getGroupMessagesCount(long groupId, int status)
           
 String getGroupMessagesRSS(long groupId, int status, int max, String type, double version, String displayStyle, String feedURL, String entryURL, ThemeDisplay themeDisplay)
           
 String getGroupMessagesRSS(long groupId, long userId, int status, int max, String type, double version, String displayStyle, String feedURL, String entryURL, ThemeDisplay themeDisplay)
           
 MBMessage getMessage(long messageId)
           
 MBMessageDisplay getMessageDisplay(long messageId, int status, boolean includePrevAndNext)
           
 MBMessageDisplay getMessageDisplay(long messageId, int status, String threadView, boolean includePrevAndNext)
          Deprecated. As of 7.0.0, replaced by getMessageDisplay(long, int, boolean)
 String getOSGiServiceIdentifier()
          Returns the OSGi service identifier.
 int getThreadAnswersCount(long groupId, long categoryId, long threadId)
           
 List<MBMessage> getThreadMessages(long groupId, long categoryId, long threadId, int status, int start, int end)
           
 int getThreadMessagesCount(long groupId, long categoryId, long threadId, int status)
           
 String getThreadMessagesRSS(long threadId, int status, int max, String type, double version, String displayStyle, String feedURL, String entryURL, ThemeDisplay themeDisplay)
           
 MBMessageService getWrappedService()
           
 void restoreMessageAttachmentFromTrash(long messageId, String fileName)
           
 void setWrappedService(MBMessageService mbMessageService)
           
 void subscribeMessage(long messageId)
           
 void unsubscribeMessage(long messageId)
           
 void updateAnswer(long messageId, boolean answer, boolean cascade)
           
 MBMessage updateDiscussionMessage(String className, long classPK, long messageId, String subject, String body, ServiceContext serviceContext)
           
 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

MBMessageServiceWrapper

public MBMessageServiceWrapper(MBMessageService mbMessageService)
Method Detail

addDiscussionMessage

public MBMessage addDiscussionMessage(long groupId,
                                      String className,
                                      long classPK,
                                      long threadId,
                                      long parentMessageId,
                                      String subject,
                                      String body,
                                      ServiceContext serviceContext)
                               throws PortalException
Specified by:
addDiscussionMessage in interface MBMessageService
Throws:
PortalException

addMessage

public MBMessage addMessage(long categoryId,
                            String subject,
                            String body,
                            ServiceContext serviceContext)
                     throws PortalException
Specified by:
addMessage in interface MBMessageService
Throws:
PortalException

addMessage

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

addMessage

public 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
Specified by:
addMessage in interface MBMessageService
Throws:
PortalException

addMessage

@Deprecated
public 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
Deprecated. As of 6.2.0, replaced by addMessage(long, String, String, String, List, boolean, double, boolean, ServiceContext)

Specified by:
addMessage in interface MBMessageService
Throws:
PortalException

addMessage

public 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
Specified by:
addMessage in interface MBMessageService
Throws:
PortalException

addMessageAttachment

public void addMessageAttachment(long messageId,
                                 String fileName,
                                 File file,
                                 String mimeType)
                          throws PortalException
Specified by:
addMessageAttachment in interface MBMessageService
Throws:
PortalException

deleteDiscussionMessage

@Deprecated
public void deleteDiscussionMessage(long groupId,
                                               String className,
                                               long classPK,
                                               String permissionClassName,
                                               long permissionClassPK,
                                               long permissionOwnerId,
                                               long messageId)
                             throws PortalException
Deprecated. As of 7.0.0, replaced by deleteDiscussionMessage(long)

Specified by:
deleteDiscussionMessage in interface MBMessageService
Throws:
PortalException

deleteDiscussionMessage

public void deleteDiscussionMessage(long messageId)
                             throws PortalException
Specified by:
deleteDiscussionMessage in interface MBMessageService
Throws:
PortalException

deleteMessage

public void deleteMessage(long messageId)
                   throws PortalException
Specified by:
deleteMessage in interface MBMessageService
Throws:
PortalException

deleteMessageAttachment

public void deleteMessageAttachment(long messageId,
                                    String fileName)
                             throws PortalException
Specified by:
deleteMessageAttachment in interface MBMessageService
Throws:
PortalException

deleteMessageAttachments

public void deleteMessageAttachments(long messageId)
                              throws PortalException
Specified by:
deleteMessageAttachments in interface MBMessageService
Throws:
PortalException

emptyMessageAttachments

public void emptyMessageAttachments(long messageId)
                             throws PortalException
Specified by:
emptyMessageAttachments in interface MBMessageService
Throws:
PortalException

getCategoryMessages

public List<MBMessage> getCategoryMessages(long groupId,
                                           long categoryId,
                                           int status,
                                           int start,
                                           int end)
                                    throws PortalException
Specified by:
getCategoryMessages in interface MBMessageService
Throws:
PortalException

getCategoryMessagesCount

public int getCategoryMessagesCount(long groupId,
                                    long categoryId,
                                    int status)
Specified by:
getCategoryMessagesCount in interface MBMessageService

getCategoryMessagesRSS

public String getCategoryMessagesRSS(long groupId,
                                     long categoryId,
                                     int status,
                                     int max,
                                     String type,
                                     double version,
                                     String displayStyle,
                                     String feedURL,
                                     String entryURL,
                                     ThemeDisplay themeDisplay)
                              throws PortalException
Specified by:
getCategoryMessagesRSS in interface MBMessageService
Throws:
PortalException

getCompanyMessagesRSS

public String getCompanyMessagesRSS(long companyId,
                                    int status,
                                    int max,
                                    String type,
                                    double version,
                                    String displayStyle,
                                    String feedURL,
                                    String entryURL,
                                    ThemeDisplay themeDisplay)
                             throws PortalException
Specified by:
getCompanyMessagesRSS in interface MBMessageService
Throws:
PortalException

getGroupMessagesCount

public int getGroupMessagesCount(long groupId,
                                 int status)
Specified by:
getGroupMessagesCount in interface MBMessageService

getGroupMessagesRSS

public String getGroupMessagesRSS(long groupId,
                                  int status,
                                  int max,
                                  String type,
                                  double version,
                                  String displayStyle,
                                  String feedURL,
                                  String entryURL,
                                  ThemeDisplay themeDisplay)
                           throws PortalException
Specified by:
getGroupMessagesRSS in interface MBMessageService
Throws:
PortalException

getGroupMessagesRSS

public String getGroupMessagesRSS(long groupId,
                                  long userId,
                                  int status,
                                  int max,
                                  String type,
                                  double version,
                                  String displayStyle,
                                  String feedURL,
                                  String entryURL,
                                  ThemeDisplay themeDisplay)
                           throws PortalException
Specified by:
getGroupMessagesRSS in interface MBMessageService
Throws:
PortalException

getMessage

public MBMessage getMessage(long messageId)
                     throws PortalException
Specified by:
getMessage in interface MBMessageService
Throws:
PortalException

getMessageDisplay

public MBMessageDisplay getMessageDisplay(long messageId,
                                          int status,
                                          boolean includePrevAndNext)
                                   throws PortalException
Specified by:
getMessageDisplay in interface MBMessageService
Throws:
PortalException

getMessageDisplay

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

Specified by:
getMessageDisplay in interface MBMessageService
Throws:
PortalException

getOSGiServiceIdentifier

public String getOSGiServiceIdentifier()
Returns the OSGi service identifier.

Specified by:
getOSGiServiceIdentifier in interface MBMessageService
Returns:
the OSGi service identifier

getThreadAnswersCount

public int getThreadAnswersCount(long groupId,
                                 long categoryId,
                                 long threadId)
Specified by:
getThreadAnswersCount in interface MBMessageService

getThreadMessages

public List<MBMessage> getThreadMessages(long groupId,
                                         long categoryId,
                                         long threadId,
                                         int status,
                                         int start,
                                         int end)
Specified by:
getThreadMessages in interface MBMessageService

getThreadMessagesCount

public int getThreadMessagesCount(long groupId,
                                  long categoryId,
                                  long threadId,
                                  int status)
Specified by:
getThreadMessagesCount in interface MBMessageService

getThreadMessagesRSS

public String getThreadMessagesRSS(long threadId,
                                   int status,
                                   int max,
                                   String type,
                                   double version,
                                   String displayStyle,
                                   String feedURL,
                                   String entryURL,
                                   ThemeDisplay themeDisplay)
                            throws PortalException
Specified by:
getThreadMessagesRSS in interface MBMessageService
Throws:
PortalException

restoreMessageAttachmentFromTrash

public void restoreMessageAttachmentFromTrash(long messageId,
                                              String fileName)
                                       throws PortalException
Specified by:
restoreMessageAttachmentFromTrash in interface MBMessageService
Throws:
PortalException

subscribeMessage

public void subscribeMessage(long messageId)
                      throws PortalException
Specified by:
subscribeMessage in interface MBMessageService
Throws:
PortalException

unsubscribeMessage

public void unsubscribeMessage(long messageId)
                        throws PortalException
Specified by:
unsubscribeMessage in interface MBMessageService
Throws:
PortalException

updateAnswer

public void updateAnswer(long messageId,
                         boolean answer,
                         boolean cascade)
                  throws PortalException
Specified by:
updateAnswer in interface MBMessageService
Throws:
PortalException

updateDiscussionMessage

public MBMessage updateDiscussionMessage(String className,
                                         long classPK,
                                         long messageId,
                                         String subject,
                                         String body,
                                         ServiceContext serviceContext)
                                  throws PortalException
Specified by:
updateDiscussionMessage in interface MBMessageService
Throws:
PortalException

updateMessage

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

getWrappedService

public MBMessageService getWrappedService()
Specified by:
getWrappedService in interface ServiceWrapper<MBMessageService>

setWrappedService

public void setWrappedService(MBMessageService mbMessageService)
Specified by:
setWrappedService in interface ServiceWrapper<MBMessageService>

Liferay 7.0-ce-b4