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