Class MBMessageServiceWrapper
java.lang.Object
com.liferay.message.boards.service.MBMessageServiceWrapper
- All Implemented Interfaces:
MBMessageService,com.liferay.portal.kernel.service.BaseService,com.liferay.portal.kernel.service.ServiceWrapper<MBMessageService>
public class MBMessageServiceWrapper
extends Object
implements MBMessageService, com.liferay.portal.kernel.service.ServiceWrapper<MBMessageService>
Provides a wrapper for
MBMessageService.- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddDiscussionMessage(long groupId, String className, long classPK, long threadId, long parentMessageId, String subject, String body, com.liferay.portal.kernel.service.ServiceContext serviceContext) addMessage(long groupId, long categoryId, String subject, String body, String format, String fileName, File file, boolean anonymous, double priority, boolean allowPingbacks, com.liferay.portal.kernel.service.ServiceContext serviceContext) Deprecated.addMessage(long groupId, long categoryId, String subject, String body, String format, List<com.liferay.portal.kernel.util.ObjectValuePair<String, InputStream>> inputStreamOVPs, boolean anonymous, double priority, boolean allowPingbacks, com.liferay.portal.kernel.service.ServiceContext serviceContext) Deprecated.As of Cavanaugh (7.4.x), replaced byaddMessage(String, long, String, String, String, List, boolean, double, boolean, ServiceContext)addMessage(long categoryId, String subject, String body, com.liferay.portal.kernel.service.ServiceContext serviceContext) Deprecated.As of Cavanaugh (7.4.x), replaced byaddMessage(String, long, String, String, String, List, boolean, double, boolean, ServiceContext)addMessage(long parentMessageId, String subject, String body, String format, List<com.liferay.portal.kernel.util.ObjectValuePair<String, InputStream>> inputStreamOVPs, boolean anonymous, double priority, boolean allowPingbacks, com.liferay.portal.kernel.service.ServiceContext serviceContext) Deprecated.As of Cavanaugh (7.4.x), replaced byaddMessage(String, long, String, String, String, List, boolean, double, boolean, ServiceContext)addMessage(String externalReferenceCode, long parentMessageId, String subject, String body, String format, List<com.liferay.portal.kernel.util.ObjectValuePair<String, InputStream>> inputStreamOVPs, boolean anonymous, double priority, boolean allowPingbacks, com.liferay.portal.kernel.service.ServiceContext serviceContext) voidaddMessageAttachment(long messageId, String fileName, File file, String mimeType) com.liferay.portal.kernel.repository.model.FileEntryaddTempAttachment(long groupId, long categoryId, String folderName, String fileName, InputStream inputStream, String mimeType) voiddeleteDiscussionMessage(long messageId) voiddeleteMessage(long messageId) voiddeleteMessageAttachment(long messageId, String fileName) voiddeleteMessageAttachments(long messageId) voiddeleteTempAttachment(long groupId, long categoryId, String folderName, String fileName) voidemptyMessageAttachments(long messageId) fetchMBMessageByUrlSubject(long groupId, String urlSubject) getCategoryMessages(long groupId, long categoryId, int status, int start, int end) intgetCategoryMessagesCount(long groupId, long categoryId, int status) getCategoryMessagesRSS(long groupId, long categoryId, int status, int max, String type, double version, String displayStyle, String feedURL, String entryURL, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) getChildMessages(long parentMessageId, boolean flatten, com.liferay.portal.kernel.dao.orm.QueryDefinition<MBMessage> queryDefinition) intgetChildMessagesCount(long parentMessageId, boolean flatten, com.liferay.portal.kernel.dao.orm.QueryDefinition<MBMessage> queryDefinition) getCompanyMessagesRSS(long companyId, int status, int max, String type, double version, String displayStyle, String feedURL, String entryURL, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) intgetGroupMessagesCount(long groupId, int status) getGroupMessagesRSS(long groupId, int status, int max, String type, double version, String displayStyle, String feedURL, String entryURL, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) getGroupMessagesRSS(long groupId, long userId, int status, int max, String type, double version, String displayStyle, String feedURL, String entryURL, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) getGroupUserMessageBoardMessagesActivity(long groupId, long userId, int start, int end) intgetGroupUserMessageBoardMessagesActivityCount(long groupId, long userId) getMBMessageByExternalReferenceCode(String externalReferenceCode, long groupId) getMessage(long messageId) getMessageDisplay(long messageId, int status) Returns the OSGi service identifier.String[]getTempAttachmentNames(long groupId, String folderName) intgetThreadAnswersCount(long groupId, long categoryId, long threadId) getThreadMessages(long groupId, long categoryId, long threadId, int status, int start, int end) intgetThreadMessagesCount(long groupId, long categoryId, long threadId, int status) getThreadMessagesRSS(long threadId, int status, int max, String type, double version, String displayStyle, String feedURL, String entryURL, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) voidmoveMessageAttachmentToTrash(long messageId, String fileName) voidrestoreMessageAttachmentFromTrash(long messageId, String fileName) voidsetWrappedService(MBMessageService mbMessageService) voidsubscribeMessage(long messageId) voidunsubscribeMessage(long messageId) updateAnswer(long messageId, boolean answer, boolean cascade) updateDiscussionMessage(String className, long classPK, long messageId, String subject, String body, com.liferay.portal.kernel.service.ServiceContext serviceContext) updateMessage(long messageId, String subject, String body, List<com.liferay.portal.kernel.util.ObjectValuePair<String, InputStream>> inputStreamOVPs, double priority, boolean allowPingbacks, com.liferay.portal.kernel.service.ServiceContext serviceContext)
-
Constructor Details
-
MBMessageServiceWrapper
public MBMessageServiceWrapper() -
MBMessageServiceWrapper
-
-
Method Details
-
addDiscussionMessage
public MBMessage addDiscussionMessage(long groupId, String className, long classPK, long threadId, long parentMessageId, String subject, String body, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
addDiscussionMessagein interfaceMBMessageService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addMessage
@Deprecated public MBMessage addMessage(long groupId, long categoryId, String subject, String body, String format, List<com.liferay.portal.kernel.util.ObjectValuePair<String, InputStream>> inputStreamOVPs, boolean anonymous, double priority, boolean allowPingbacks, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalExceptionDeprecated.As of Cavanaugh (7.4.x), replaced byaddMessage(String, long, String, String, String, List, boolean, double, boolean, ServiceContext)- Specified by:
addMessagein interfaceMBMessageService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addMessage
@Deprecated public MBMessage addMessage(long groupId, long categoryId, String subject, String body, String format, String fileName, File file, boolean anonymous, double priority, boolean allowPingbacks, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, FileNotFoundException Deprecated.As of Cavanaugh (7.4.x), replaced byaddMessage(String, long, String, String, String, List, boolean, double, boolean, ServiceContext)- Specified by:
addMessagein interfaceMBMessageService- Throws:
com.liferay.portal.kernel.exception.PortalExceptionFileNotFoundException
-
addMessage
@Deprecated public MBMessage addMessage(long categoryId, String subject, String body, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException Deprecated.As of Cavanaugh (7.4.x), replaced byaddMessage(String, long, String, String, String, List, boolean, double, boolean, ServiceContext)- Specified by:
addMessagein interfaceMBMessageService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addMessage
@Deprecated public MBMessage addMessage(long parentMessageId, String subject, String body, String format, List<com.liferay.portal.kernel.util.ObjectValuePair<String, InputStream>> inputStreamOVPs, boolean anonymous, double priority, boolean allowPingbacks, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalExceptionDeprecated.As of Cavanaugh (7.4.x), replaced byaddMessage(String, long, String, String, String, List, boolean, double, boolean, ServiceContext)- Specified by:
addMessagein interfaceMBMessageService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addMessage
public MBMessage addMessage(String externalReferenceCode, long parentMessageId, String subject, String body, String format, List<com.liferay.portal.kernel.util.ObjectValuePair<String, InputStream>> inputStreamOVPs, boolean anonymous, double priority, boolean allowPingbacks, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException- Specified by:
addMessagein interfaceMBMessageService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addMessageAttachment
public void addMessageAttachment(long messageId, String fileName, File file, String mimeType) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
addMessageAttachmentin interfaceMBMessageService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addTempAttachment
public com.liferay.portal.kernel.repository.model.FileEntry addTempAttachment(long groupId, long categoryId, String folderName, String fileName, InputStream inputStream, String mimeType) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
addTempAttachmentin interfaceMBMessageService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteDiscussionMessage
public void deleteDiscussionMessage(long messageId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteDiscussionMessagein interfaceMBMessageService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteMessage
public void deleteMessage(long messageId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteMessagein interfaceMBMessageService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteMessageAttachment
public void deleteMessageAttachment(long messageId, String fileName) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteMessageAttachmentin interfaceMBMessageService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteMessageAttachments
public void deleteMessageAttachments(long messageId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteMessageAttachmentsin interfaceMBMessageService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteTempAttachment
public void deleteTempAttachment(long groupId, long categoryId, String folderName, String fileName) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteTempAttachmentin interfaceMBMessageService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
emptyMessageAttachments
public void emptyMessageAttachments(long messageId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
emptyMessageAttachmentsin interfaceMBMessageService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
fetchMBMessageByUrlSubject
public MBMessage fetchMBMessageByUrlSubject(long groupId, String urlSubject) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
fetchMBMessageByUrlSubjectin interfaceMBMessageService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCategoryMessages
public List<MBMessage> getCategoryMessages(long groupId, long categoryId, int status, int start, int end) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getCategoryMessagesin interfaceMBMessageService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCategoryMessagesCount
public int getCategoryMessagesCount(long groupId, long categoryId, int status) - Specified by:
getCategoryMessagesCountin interfaceMBMessageService
-
getCategoryMessagesRSS
public String getCategoryMessagesRSS(long groupId, long categoryId, int status, int max, String type, double version, String displayStyle, String feedURL, String entryURL, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getCategoryMessagesRSSin interfaceMBMessageService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getChildMessages
public List<MBMessage> getChildMessages(long parentMessageId, boolean flatten, com.liferay.portal.kernel.dao.orm.QueryDefinition<MBMessage> queryDefinition) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getChildMessagesin interfaceMBMessageService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getChildMessagesCount
public int getChildMessagesCount(long parentMessageId, boolean flatten, com.liferay.portal.kernel.dao.orm.QueryDefinition<MBMessage> queryDefinition) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getChildMessagesCountin interfaceMBMessageService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCompanyMessagesRSS
public String getCompanyMessagesRSS(long companyId, int status, int max, String type, double version, String displayStyle, String feedURL, String entryURL, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getCompanyMessagesRSSin interfaceMBMessageService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getGroupMessagesCount
public int getGroupMessagesCount(long groupId, int status) - Specified by:
getGroupMessagesCountin interfaceMBMessageService
-
getGroupMessagesRSS
public String getGroupMessagesRSS(long groupId, int status, int max, String type, double version, String displayStyle, String feedURL, String entryURL, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getGroupMessagesRSSin interfaceMBMessageService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getGroupMessagesRSS
public String getGroupMessagesRSS(long groupId, long userId, int status, int max, String type, double version, String displayStyle, String feedURL, String entryURL, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getGroupMessagesRSSin interfaceMBMessageService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getGroupUserMessageBoardMessagesActivity
public List<MBMessage> getGroupUserMessageBoardMessagesActivity(long groupId, long userId, int start, int end) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getGroupUserMessageBoardMessagesActivityin interfaceMBMessageService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getGroupUserMessageBoardMessagesActivityCount
public int getGroupUserMessageBoardMessagesActivityCount(long groupId, long userId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getGroupUserMessageBoardMessagesActivityCountin interfaceMBMessageService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getMBMessageByExternalReferenceCode
public MBMessage getMBMessageByExternalReferenceCode(String externalReferenceCode, long groupId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getMBMessageByExternalReferenceCodein interfaceMBMessageService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getMessage
public MBMessage getMessage(long messageId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getMessagein interfaceMBMessageService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getMessageDisplay
public MBMessageDisplay getMessageDisplay(long messageId, int status) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getMessageDisplayin interfaceMBMessageService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifierin interfaceMBMessageService- Returns:
- the OSGi service identifier
-
getTempAttachmentNames
public String[] getTempAttachmentNames(long groupId, String folderName) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getTempAttachmentNamesin interfaceMBMessageService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getThreadAnswersCount
public int getThreadAnswersCount(long groupId, long categoryId, long threadId) - Specified by:
getThreadAnswersCountin interfaceMBMessageService
-
getThreadMessages
public List<MBMessage> getThreadMessages(long groupId, long categoryId, long threadId, int status, int start, int end) - Specified by:
getThreadMessagesin interfaceMBMessageService
-
getThreadMessagesCount
public int getThreadMessagesCount(long groupId, long categoryId, long threadId, int status) - Specified by:
getThreadMessagesCountin interfaceMBMessageService
-
getThreadMessagesRSS
public String getThreadMessagesRSS(long threadId, int status, int max, String type, double version, String displayStyle, String feedURL, String entryURL, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getThreadMessagesRSSin interfaceMBMessageService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
moveMessageAttachmentToTrash
public void moveMessageAttachmentToTrash(long messageId, String fileName) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
moveMessageAttachmentToTrashin interfaceMBMessageService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
restoreMessageAttachmentFromTrash
public void restoreMessageAttachmentFromTrash(long messageId, String fileName) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
restoreMessageAttachmentFromTrashin interfaceMBMessageService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
subscribeMessage
public void subscribeMessage(long messageId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
subscribeMessagein interfaceMBMessageService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
unsubscribeMessage
public void unsubscribeMessage(long messageId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
unsubscribeMessagein interfaceMBMessageService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateAnswer
public MBMessage updateAnswer(long messageId, boolean answer, boolean cascade) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updateAnswerin interfaceMBMessageService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateDiscussionMessage
public MBMessage updateDiscussionMessage(String className, long classPK, long messageId, String subject, String body, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updateDiscussionMessagein interfaceMBMessageService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateMessage
public MBMessage updateMessage(long messageId, String subject, String body, List<com.liferay.portal.kernel.util.ObjectValuePair<String, InputStream>> inputStreamOVPs, double priority, boolean allowPingbacks, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException- Specified by:
updateMessagein interfaceMBMessageService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getWrappedService
- Specified by:
getWrappedServicein interfacecom.liferay.portal.kernel.service.ServiceWrapper<MBMessageService>
-
setWrappedService
- Specified by:
setWrappedServicein interfacecom.liferay.portal.kernel.service.ServiceWrapper<MBMessageService>
-
addMessage(String, long, String, String, String, List, boolean, double, boolean, ServiceContext)