Interface MBMessageService
- All Superinterfaces:
com.liferay.portal.kernel.service.BaseService
- All Known Implementing Classes:
MBMessageServiceWrapper
@AccessControlled
@CTAware
@JSONWebService
@ProviderType
@Transactional(isolation=PORTAL,
rollbackFor={com.liferay.portal.kernel.exception.PortalException.class,com.liferay.portal.kernel.exception.SystemException.class})
public interface MBMessageService
extends com.liferay.portal.kernel.service.BaseService
Provides the remote service interface for MBMessage. 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:
- Generated:
-
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
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)
-
Method Details
-
addDiscussionMessage
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 - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addMessage
@Deprecated 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)
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addMessage
@Deprecated 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 FileNotFoundException, 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)
- Throws:
FileNotFoundException
com.liferay.portal.kernel.exception.PortalException
-
addMessage
@Deprecated 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)
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addMessage
@Deprecated 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)
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addMessage
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- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addMessageAttachment
void addMessageAttachment(long messageId, String fileName, File file, String mimeType) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addTempAttachment
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 - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteDiscussionMessage
void deleteDiscussionMessage(long messageId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteMessage
void deleteMessage(long messageId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteMessageAttachment
void deleteMessageAttachment(long messageId, String fileName) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteMessageAttachments
void deleteMessageAttachments(long messageId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteTempAttachment
void deleteTempAttachment(long groupId, long categoryId, String folderName, String fileName) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
emptyMessageAttachments
void emptyMessageAttachments(long messageId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
fetchMBMessageByUrlSubject
@Transactional(propagation=SUPPORTS, readOnly=true) MBMessage fetchMBMessageByUrlSubject(long groupId, String urlSubject) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCategoryMessages
@Transactional(propagation=SUPPORTS, readOnly=true) List<MBMessage> getCategoryMessages(long groupId, long categoryId, int status, int start, int end) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCategoryMessagesCount
@Transactional(propagation=SUPPORTS, readOnly=true) int getCategoryMessagesCount(long groupId, long categoryId, int status) -
getCategoryMessagesRSS
@Transactional(propagation=SUPPORTS, readOnly=true) 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 - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getChildMessages
@Transactional(propagation=SUPPORTS, readOnly=true) List<MBMessage> getChildMessages(long parentMessageId, boolean flatten, com.liferay.portal.kernel.dao.orm.QueryDefinition<MBMessage> queryDefinition) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getChildMessagesCount
@Transactional(propagation=SUPPORTS, readOnly=true) int getChildMessagesCount(long parentMessageId, boolean flatten, com.liferay.portal.kernel.dao.orm.QueryDefinition<MBMessage> queryDefinition) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCompanyMessagesRSS
@Transactional(propagation=SUPPORTS, readOnly=true) 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 - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getGroupMessagesCount
@Transactional(propagation=SUPPORTS, readOnly=true) int getGroupMessagesCount(long groupId, int status) -
getGroupMessagesRSS
@Transactional(propagation=SUPPORTS, readOnly=true) 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 - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getGroupMessagesRSS
@Transactional(propagation=SUPPORTS, readOnly=true) 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 - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getGroupUserMessageBoardMessagesActivity
@Transactional(propagation=SUPPORTS, readOnly=true) List<MBMessage> getGroupUserMessageBoardMessagesActivity(long groupId, long userId, int start, int end) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getGroupUserMessageBoardMessagesActivityCount
@Transactional(propagation=SUPPORTS, readOnly=true) int getGroupUserMessageBoardMessagesActivityCount(long groupId, long userId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getMBMessageByExternalReferenceCode
@Transactional(propagation=SUPPORTS, readOnly=true) MBMessage getMBMessageByExternalReferenceCode(String externalReferenceCode, long groupId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getMessage
@Transactional(propagation=SUPPORTS, readOnly=true) MBMessage getMessage(long messageId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getMessageDisplay
@Transactional(propagation=SUPPORTS, readOnly=true) MBMessageDisplay getMessageDisplay(long messageId, int status) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getOSGiServiceIdentifier
String getOSGiServiceIdentifier()Returns the OSGi service identifier.- Returns:
- the OSGi service identifier
-
getTempAttachmentNames
@Transactional(propagation=SUPPORTS, readOnly=true) String[] getTempAttachmentNames(long groupId, String folderName) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getThreadAnswersCount
@Transactional(propagation=SUPPORTS, readOnly=true) int getThreadAnswersCount(long groupId, long categoryId, long threadId) -
getThreadMessages
-
getThreadMessagesCount
@Transactional(propagation=SUPPORTS, readOnly=true) int getThreadMessagesCount(long groupId, long categoryId, long threadId, int status) -
getThreadMessagesRSS
@Transactional(propagation=SUPPORTS, readOnly=true) 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 - Throws:
com.liferay.portal.kernel.exception.PortalException
-
moveMessageAttachmentToTrash
void moveMessageAttachmentToTrash(long messageId, String fileName) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
restoreMessageAttachmentFromTrash
void restoreMessageAttachmentFromTrash(long messageId, String fileName) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
subscribeMessage
void subscribeMessage(long messageId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
unsubscribeMessage
void unsubscribeMessage(long messageId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateAnswer
MBMessage updateAnswer(long messageId, boolean answer, boolean cascade) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateDiscussionMessage
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 - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateMessage
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- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addMessage(String, long, String, String, String, List, boolean, double, boolean, ServiceContext)