public class MBMessageServiceUtil
extends java.lang.Object
com.liferay.portlet.messageboards.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.MBMessageService
Constructor and Description |
---|
MBMessageServiceUtil() |
Modifier and Type | Method and Description |
---|---|
static MBMessage |
addDiscussionMessage(long groupId,
java.lang.String className,
long classPK,
long threadId,
long parentMessageId,
java.lang.String subject,
java.lang.String body,
ServiceContext serviceContext) |
static MBMessage |
addMessage(long groupId,
long categoryId,
java.lang.String subject,
java.lang.String body,
java.lang.String format,
java.util.List<ObjectValuePair<java.lang.String,java.io.InputStream>> inputStreamOVPs,
boolean anonymous,
double priority,
boolean allowPingbacks,
ServiceContext serviceContext) |
static MBMessage |
addMessage(long groupId,
long categoryId,
java.lang.String subject,
java.lang.String body,
java.lang.String format,
java.lang.String fileName,
java.io.File file,
boolean anonymous,
double priority,
boolean allowPingbacks,
ServiceContext serviceContext) |
static MBMessage |
addMessage(long categoryId,
java.lang.String subject,
java.lang.String body,
ServiceContext serviceContext) |
static MBMessage |
addMessage(long parentMessageId,
java.lang.String subject,
java.lang.String body,
java.lang.String format,
java.util.List<ObjectValuePair<java.lang.String,java.io.InputStream>> inputStreamOVPs,
boolean anonymous,
double priority,
boolean allowPingbacks,
ServiceContext serviceContext) |
static void |
addMessageAttachment(long messageId,
java.lang.String fileName,
java.io.File file,
java.lang.String mimeType) |
static void |
deleteDiscussionMessage(long messageId) |
static void |
deleteDiscussionMessage(long groupId,
java.lang.String className,
long classPK,
java.lang.String permissionClassName,
long permissionClassPK,
long permissionOwnerId,
long messageId)
Deprecated.
As of Wilberforce (7.0.x), replaced by
deleteDiscussionMessage(long) |
static void |
deleteMessage(long messageId) |
static void |
deleteMessageAttachment(long messageId,
java.lang.String fileName) |
static void |
deleteMessageAttachments(long messageId) |
static void |
emptyMessageAttachments(long messageId) |
static java.util.List<MBMessage> |
getCategoryMessages(long groupId,
long categoryId,
int status,
int start,
int end) |
static int |
getCategoryMessagesCount(long groupId,
long categoryId,
int status) |
static java.lang.String |
getCategoryMessagesRSS(long groupId,
long categoryId,
int status,
int max,
java.lang.String type,
double version,
java.lang.String displayStyle,
java.lang.String feedURL,
java.lang.String entryURL,
ThemeDisplay themeDisplay) |
static java.lang.String |
getCompanyMessagesRSS(long companyId,
int status,
int max,
java.lang.String type,
double version,
java.lang.String displayStyle,
java.lang.String feedURL,
java.lang.String entryURL,
ThemeDisplay themeDisplay) |
static int |
getGroupMessagesCount(long groupId,
int status) |
static java.lang.String |
getGroupMessagesRSS(long groupId,
int status,
int max,
java.lang.String type,
double version,
java.lang.String displayStyle,
java.lang.String feedURL,
java.lang.String entryURL,
ThemeDisplay themeDisplay) |
static java.lang.String |
getGroupMessagesRSS(long groupId,
long userId,
int status,
int max,
java.lang.String type,
double version,
java.lang.String displayStyle,
java.lang.String feedURL,
java.lang.String entryURL,
ThemeDisplay themeDisplay) |
static MBMessage |
getMessage(long messageId) |
static MBMessageDisplay |
getMessageDisplay(long messageId,
int status) |
static MBMessageDisplay |
getMessageDisplay(long messageId,
int status,
java.lang.String threadView,
boolean includePrevAndNext)
Deprecated.
As of Wilberforce (7.0.x), replaced by
getMessageDisplay(long, int) |
static java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
static MBMessageService |
getService() |
static int |
getThreadAnswersCount(long groupId,
long categoryId,
long threadId) |
static java.util.List<MBMessage> |
getThreadMessages(long groupId,
long categoryId,
long threadId,
int status,
int start,
int end) |
static int |
getThreadMessagesCount(long groupId,
long categoryId,
long threadId,
int status) |
static java.lang.String |
getThreadMessagesRSS(long threadId,
int status,
int max,
java.lang.String type,
double version,
java.lang.String displayStyle,
java.lang.String feedURL,
java.lang.String entryURL,
ThemeDisplay themeDisplay) |
static void |
restoreMessageAttachmentFromTrash(long messageId,
java.lang.String fileName) |
static void |
subscribeMessage(long messageId) |
static void |
unsubscribeMessage(long messageId) |
static void |
updateAnswer(long messageId,
boolean answer,
boolean cascade) |
static MBMessage |
updateDiscussionMessage(java.lang.String className,
long classPK,
long messageId,
java.lang.String subject,
java.lang.String body,
ServiceContext serviceContext) |
static MBMessage |
updateMessage(long messageId,
java.lang.String subject,
java.lang.String body,
java.util.List<ObjectValuePair<java.lang.String,java.io.InputStream>> inputStreamOVPs,
java.util.List<java.lang.String> existingFiles,
double priority,
boolean allowPingbacks,
ServiceContext serviceContext) |
public static MBMessage addDiscussionMessage(long groupId, java.lang.String className, long classPK, long threadId, long parentMessageId, java.lang.String subject, java.lang.String body, ServiceContext serviceContext) throws PortalException
PortalException
public static MBMessage addMessage(long groupId, long categoryId, java.lang.String subject, java.lang.String body, java.lang.String format, java.util.List<ObjectValuePair<java.lang.String,java.io.InputStream>> inputStreamOVPs, boolean anonymous, double priority, boolean allowPingbacks, ServiceContext serviceContext) throws PortalException
PortalException
public static MBMessage addMessage(long groupId, long categoryId, java.lang.String subject, java.lang.String body, java.lang.String format, java.lang.String fileName, java.io.File file, boolean anonymous, double priority, boolean allowPingbacks, ServiceContext serviceContext) throws PortalException, java.io.FileNotFoundException
PortalException
java.io.FileNotFoundException
public static MBMessage addMessage(long categoryId, java.lang.String subject, java.lang.String body, ServiceContext serviceContext) throws PortalException
PortalException
public static MBMessage addMessage(long parentMessageId, java.lang.String subject, java.lang.String body, java.lang.String format, java.util.List<ObjectValuePair<java.lang.String,java.io.InputStream>> inputStreamOVPs, boolean anonymous, double priority, boolean allowPingbacks, ServiceContext serviceContext) throws PortalException
PortalException
public static void addMessageAttachment(long messageId, java.lang.String fileName, java.io.File file, java.lang.String mimeType) throws PortalException
PortalException
public static void deleteDiscussionMessage(long messageId) throws PortalException
PortalException
@Deprecated public static void deleteDiscussionMessage(long groupId, java.lang.String className, long classPK, java.lang.String permissionClassName, long permissionClassPK, long permissionOwnerId, long messageId) throws PortalException
deleteDiscussionMessage(long)
PortalException
public static void deleteMessage(long messageId) throws PortalException
PortalException
public static void deleteMessageAttachment(long messageId, java.lang.String fileName) throws PortalException
PortalException
public static void deleteMessageAttachments(long messageId) throws PortalException
PortalException
public static void emptyMessageAttachments(long messageId) throws PortalException
PortalException
public static java.util.List<MBMessage> getCategoryMessages(long groupId, long categoryId, int status, int start, int end) throws PortalException
PortalException
public static int getCategoryMessagesCount(long groupId, long categoryId, int status)
public static java.lang.String getCategoryMessagesRSS(long groupId, long categoryId, int status, int max, java.lang.String type, double version, java.lang.String displayStyle, java.lang.String feedURL, java.lang.String entryURL, ThemeDisplay themeDisplay) throws PortalException
PortalException
public static java.lang.String getCompanyMessagesRSS(long companyId, int status, int max, java.lang.String type, double version, java.lang.String displayStyle, java.lang.String feedURL, java.lang.String entryURL, ThemeDisplay themeDisplay) throws PortalException
PortalException
public static int getGroupMessagesCount(long groupId, int status)
public static java.lang.String getGroupMessagesRSS(long groupId, int status, int max, java.lang.String type, double version, java.lang.String displayStyle, java.lang.String feedURL, java.lang.String entryURL, ThemeDisplay themeDisplay) throws PortalException
PortalException
public static java.lang.String getGroupMessagesRSS(long groupId, long userId, int status, int max, java.lang.String type, double version, java.lang.String displayStyle, java.lang.String feedURL, java.lang.String entryURL, ThemeDisplay themeDisplay) throws PortalException
PortalException
public static MBMessage getMessage(long messageId) throws PortalException
PortalException
public static MBMessageDisplay getMessageDisplay(long messageId, int status) throws PortalException
PortalException
@Deprecated public static MBMessageDisplay getMessageDisplay(long messageId, int status, java.lang.String threadView, boolean includePrevAndNext) throws PortalException
getMessageDisplay(long, int)
PortalException
public static java.lang.String getOSGiServiceIdentifier()
public static int getThreadAnswersCount(long groupId, long categoryId, long threadId)
public static java.util.List<MBMessage> getThreadMessages(long groupId, long categoryId, long threadId, int status, int start, int end)
public static int getThreadMessagesCount(long groupId, long categoryId, long threadId, int status)
public static java.lang.String getThreadMessagesRSS(long threadId, int status, int max, java.lang.String type, double version, java.lang.String displayStyle, java.lang.String feedURL, java.lang.String entryURL, ThemeDisplay themeDisplay) throws PortalException
PortalException
public static void restoreMessageAttachmentFromTrash(long messageId, java.lang.String fileName) throws PortalException
PortalException
public static void subscribeMessage(long messageId) throws PortalException
PortalException
public static void unsubscribeMessage(long messageId) throws PortalException
PortalException
public static void updateAnswer(long messageId, boolean answer, boolean cascade) throws PortalException
PortalException
public static MBMessage updateDiscussionMessage(java.lang.String className, long classPK, long messageId, java.lang.String subject, java.lang.String body, ServiceContext serviceContext) throws PortalException
PortalException
public static MBMessage updateMessage(long messageId, java.lang.String subject, java.lang.String body, java.util.List<ObjectValuePair<java.lang.String,java.io.InputStream>> inputStreamOVPs, java.util.List<java.lang.String> existingFiles, double priority, boolean allowPingbacks, ServiceContext serviceContext) throws PortalException
PortalException
public static MBMessageService getService()