Class MBMessageServiceUtil
java.lang.Object
com.liferay.message.boards.service.MBMessageServiceUtil
Provides the remote service utility for MBMessage. This utility wraps
com.liferay.message.boards.service.impl.MBMessageServiceImpl and is an
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:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MBMessageaddDiscussionMessage(long groupId, String className, long classPK, long threadId, long parentMessageId, String subject, String body, com.liferay.portal.kernel.service.ServiceContext serviceContext) static MBMessageaddMessage(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.static MBMessageaddMessage(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)static MBMessageaddMessage(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)static MBMessageaddMessage(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)static MBMessageaddMessage(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) static voidaddMessageAttachment(long messageId, String fileName, File file, String mimeType) static com.liferay.portal.kernel.repository.model.FileEntryaddTempAttachment(long groupId, long categoryId, String folderName, String fileName, InputStream inputStream, String mimeType) static voiddeleteDiscussionMessage(long messageId) static voiddeleteMessage(long messageId) static voiddeleteMessageAttachment(long messageId, String fileName) static voiddeleteMessageAttachments(long messageId) static voiddeleteTempAttachment(long groupId, long categoryId, String folderName, String fileName) static voidemptyMessageAttachments(long messageId) static MBMessagefetchMBMessageByUrlSubject(long groupId, String urlSubject) getCategoryMessages(long groupId, long categoryId, int status, int start, int end) static intgetCategoryMessagesCount(long groupId, long categoryId, int status) static StringgetCategoryMessagesRSS(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) static intgetChildMessagesCount(long parentMessageId, boolean flatten, com.liferay.portal.kernel.dao.orm.QueryDefinition<MBMessage> queryDefinition) static StringgetCompanyMessagesRSS(long companyId, int status, int max, String type, double version, String displayStyle, String feedURL, String entryURL, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) static intgetGroupMessagesCount(long groupId, int status) static StringgetGroupMessagesRSS(long groupId, int status, int max, String type, double version, String displayStyle, String feedURL, String entryURL, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) static StringgetGroupMessagesRSS(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) static intgetGroupUserMessageBoardMessagesActivityCount(long groupId, long userId) static MBMessagegetMBMessageByExternalReferenceCode(String externalReferenceCode, long groupId) static MBMessagegetMessage(long messageId) static MBMessageDisplaygetMessageDisplay(long messageId, int status) static StringReturns the OSGi service identifier.static MBMessageServicestatic String[]getTempAttachmentNames(long groupId, String folderName) static intgetThreadAnswersCount(long groupId, long categoryId, long threadId) getThreadMessages(long groupId, long categoryId, long threadId, int status, int start, int end) static intgetThreadMessagesCount(long groupId, long categoryId, long threadId, int status) static StringgetThreadMessagesRSS(long threadId, int status, int max, String type, double version, String displayStyle, String feedURL, String entryURL, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) static voidmoveMessageAttachmentToTrash(long messageId, String fileName) static voidrestoreMessageAttachmentFromTrash(long messageId, String fileName) static voidsubscribeMessage(long messageId) static voidunsubscribeMessage(long messageId) static MBMessageupdateAnswer(long messageId, boolean answer, boolean cascade) static MBMessageupdateDiscussionMessage(String className, long classPK, long messageId, String subject, String body, com.liferay.portal.kernel.service.ServiceContext serviceContext) static MBMessageupdateMessage(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
-
MBMessageServiceUtil
public MBMessageServiceUtil()
-
-
Method Details
-
addDiscussionMessage
public static 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 public static 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 public static 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:
FileNotFoundExceptioncom.liferay.portal.kernel.exception.PortalException
-
addMessage
@Deprecated public static 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 public static 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
public static 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
public static 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
public static 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
public static void deleteDiscussionMessage(long messageId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteMessage
public static void deleteMessage(long messageId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteMessageAttachment
public static void deleteMessageAttachment(long messageId, String fileName) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteMessageAttachments
public static void deleteMessageAttachments(long messageId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteTempAttachment
public static 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
public static void emptyMessageAttachments(long messageId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
fetchMBMessageByUrlSubject
public static MBMessage fetchMBMessageByUrlSubject(long groupId, String urlSubject) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCategoryMessages
public static 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
public static int getCategoryMessagesCount(long groupId, long categoryId, int status) -
getCategoryMessagesRSS
public static 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
public static 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
public static 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
public static 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
public static int getGroupMessagesCount(long groupId, int status) -
getGroupMessagesRSS
public static 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
public static 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
public static 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
public static int getGroupUserMessageBoardMessagesActivityCount(long groupId, long userId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getMBMessageByExternalReferenceCode
public static MBMessage getMBMessageByExternalReferenceCode(String externalReferenceCode, long groupId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getMessage
public static MBMessage getMessage(long messageId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getMessageDisplay
public static MBMessageDisplay getMessageDisplay(long messageId, int status) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Returns:
- the OSGi service identifier
-
getTempAttachmentNames
public static String[] getTempAttachmentNames(long groupId, String folderName) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getThreadAnswersCount
public static int getThreadAnswersCount(long groupId, long categoryId, long threadId) -
getThreadMessages
-
getThreadMessagesCount
public static int getThreadMessagesCount(long groupId, long categoryId, long threadId, int status) -
getThreadMessagesRSS
public static 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
public static void moveMessageAttachmentToTrash(long messageId, String fileName) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
restoreMessageAttachmentFromTrash
public static void restoreMessageAttachmentFromTrash(long messageId, String fileName) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
subscribeMessage
public static void subscribeMessage(long messageId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
unsubscribeMessage
public static void unsubscribeMessage(long messageId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateAnswer
public static MBMessage updateAnswer(long messageId, boolean answer, boolean cascade) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateDiscussionMessage
public static 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
public static 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
-
getService
-
addMessage(String, long, String, String, String, List, boolean, double, boolean, ServiceContext)