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