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) void
addMessageAttachment
(long messageId, String fileName, File file, String mimeType) com.liferay.portal.kernel.repository.model.FileEntry
addTempAttachment
(long groupId, long categoryId, String folderName, String fileName, InputStream inputStream, String mimeType) void
deleteDiscussionMessage
(long messageId) void
deleteMessage
(long messageId) void
deleteMessageAttachment
(long messageId, String fileName) void
deleteMessageAttachments
(long messageId) void
deleteTempAttachment
(long groupId, long categoryId, String folderName, String fileName) void
emptyMessageAttachments
(long messageId) fetchMBMessageByUrlSubject
(long groupId, String urlSubject) getCategoryMessages
(long groupId, long categoryId, int status, int start, int end) int
getCategoryMessagesCount
(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) int
getChildMessagesCount
(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) int
getGroupMessagesCount
(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) int
getGroupUserMessageBoardMessagesActivityCount
(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) int
getThreadAnswersCount
(long groupId, long categoryId, long threadId) getThreadMessages
(long groupId, long categoryId, long threadId, int status, int start, int end) int
getThreadMessagesCount
(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) void
moveMessageAttachmentToTrash
(long messageId, String fileName) void
restoreMessageAttachmentFromTrash
(long messageId, String fileName) void
setWrappedService
(MBMessageService mbMessageService) void
subscribeMessage
(long messageId) void
unsubscribeMessage
(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:
addDiscussionMessage
in 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:
addMessage
in 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:
addMessage
in interfaceMBMessageService
- Throws:
com.liferay.portal.kernel.exception.PortalException
FileNotFoundException
-
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:
addMessage
in 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:
addMessage
in 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:
addMessage
in 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:
addMessageAttachment
in 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:
addTempAttachment
in interfaceMBMessageService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteDiscussionMessage
public void deleteDiscussionMessage(long messageId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteDiscussionMessage
in interfaceMBMessageService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteMessage
public void deleteMessage(long messageId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteMessage
in 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:
deleteMessageAttachment
in interfaceMBMessageService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteMessageAttachments
public void deleteMessageAttachments(long messageId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteMessageAttachments
in 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:
deleteTempAttachment
in interfaceMBMessageService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
emptyMessageAttachments
public void emptyMessageAttachments(long messageId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
emptyMessageAttachments
in 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:
fetchMBMessageByUrlSubject
in 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:
getCategoryMessages
in interfaceMBMessageService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCategoryMessagesCount
public int getCategoryMessagesCount(long groupId, long categoryId, int status) - Specified by:
getCategoryMessagesCount
in 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:
getCategoryMessagesRSS
in 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:
getChildMessages
in 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:
getChildMessagesCount
in 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:
getCompanyMessagesRSS
in interfaceMBMessageService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getGroupMessagesCount
public int getGroupMessagesCount(long groupId, int status) - Specified by:
getGroupMessagesCount
in 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:
getGroupMessagesRSS
in 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:
getGroupMessagesRSS
in 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:
getGroupUserMessageBoardMessagesActivity
in 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:
getGroupUserMessageBoardMessagesActivityCount
in 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:
getMBMessageByExternalReferenceCode
in interfaceMBMessageService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getMessage
public MBMessage getMessage(long messageId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getMessage
in 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:
getMessageDisplay
in interfaceMBMessageService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifier
in interfaceMBMessageService
- Returns:
- the OSGi service identifier
-
getTempAttachmentNames
public String[] getTempAttachmentNames(long groupId, String folderName) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getTempAttachmentNames
in interfaceMBMessageService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getThreadAnswersCount
public int getThreadAnswersCount(long groupId, long categoryId, long threadId) - Specified by:
getThreadAnswersCount
in interfaceMBMessageService
-
getThreadMessages
public List<MBMessage> getThreadMessages(long groupId, long categoryId, long threadId, int status, int start, int end) - Specified by:
getThreadMessages
in interfaceMBMessageService
-
getThreadMessagesCount
public int getThreadMessagesCount(long groupId, long categoryId, long threadId, int status) - Specified by:
getThreadMessagesCount
in 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:
getThreadMessagesRSS
in 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:
moveMessageAttachmentToTrash
in 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:
restoreMessageAttachmentFromTrash
in interfaceMBMessageService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
subscribeMessage
public void subscribeMessage(long messageId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
subscribeMessage
in interfaceMBMessageService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
unsubscribeMessage
public void unsubscribeMessage(long messageId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
unsubscribeMessage
in 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:
updateAnswer
in 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:
updateDiscussionMessage
in 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:
updateMessage
in interfaceMBMessageService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getWrappedService
- Specified by:
getWrappedService
in interfacecom.liferay.portal.kernel.service.ServiceWrapper<MBMessageService>
-
setWrappedService
- Specified by:
setWrappedService
in interfacecom.liferay.portal.kernel.service.ServiceWrapper<MBMessageService>
-
addMessage(String, long, String, String, String, List, boolean, double, boolean, ServiceContext)