@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 MBMessageService
PortalException
public 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 MBMessageService
PortalException
public 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
addMessage
in interface MBMessageService
FileNotFoundException
PortalException
public MBMessage addMessage(long categoryId, String subject, String body, ServiceContext serviceContext) throws PortalException
addMessage
in interface MBMessageService
PortalException
public 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 MBMessageService
PortalException
public void addMessageAttachment(long messageId, String fileName, File file, String mimeType) throws PortalException
addMessageAttachment
in interface MBMessageService
PortalException
public void deleteDiscussionMessage(long messageId) throws PortalException
deleteDiscussionMessage
in interface MBMessageService
PortalException
@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 MBMessageService
PortalException
public void deleteMessage(long messageId) throws PortalException
deleteMessage
in interface MBMessageService
PortalException
public void deleteMessageAttachment(long messageId, String fileName) throws PortalException
deleteMessageAttachment
in interface MBMessageService
PortalException
public void deleteMessageAttachments(long messageId) throws PortalException
deleteMessageAttachments
in interface MBMessageService
PortalException
public void emptyMessageAttachments(long messageId) throws PortalException
emptyMessageAttachments
in interface MBMessageService
PortalException
public List<MBMessage> getCategoryMessages(long groupId, long categoryId, int status, int start, int end) throws PortalException
getCategoryMessages
in interface MBMessageService
PortalException
public int getCategoryMessagesCount(long groupId, long categoryId, int status)
getCategoryMessagesCount
in interface MBMessageService
public 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 MBMessageService
PortalException
public 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 MBMessageService
PortalException
public int getGroupMessagesCount(long groupId, int status)
getGroupMessagesCount
in interface MBMessageService
public 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 MBMessageService
PortalException
public 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 MBMessageService
PortalException
public MBMessage getMessage(long messageId) throws PortalException
getMessage
in interface MBMessageService
PortalException
public MBMessageDisplay getMessageDisplay(long messageId, int status) throws PortalException
getMessageDisplay
in interface MBMessageService
PortalException
@Deprecated public MBMessageDisplay getMessageDisplay(long messageId, int status, String threadView, boolean includePrevAndNext) throws PortalException
getMessageDisplay(long,
int)
getMessageDisplay
in interface MBMessageService
PortalException
public String getOSGiServiceIdentifier()
getOSGiServiceIdentifier
in interface MBMessageService
public int getThreadAnswersCount(long groupId, long categoryId, long threadId)
getThreadAnswersCount
in interface MBMessageService
public List<MBMessage> getThreadMessages(long groupId, long categoryId, long threadId, int status, int start, int end)
getThreadMessages
in interface MBMessageService
public int getThreadMessagesCount(long groupId, long categoryId, long threadId, int status)
getThreadMessagesCount
in interface MBMessageService
public 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 MBMessageService
PortalException
public void restoreMessageAttachmentFromTrash(long messageId, String fileName) throws PortalException
restoreMessageAttachmentFromTrash
in interface MBMessageService
PortalException
public void subscribeMessage(long messageId) throws PortalException
subscribeMessage
in interface MBMessageService
PortalException
public void unsubscribeMessage(long messageId) throws PortalException
unsubscribeMessage
in interface MBMessageService
PortalException
public void updateAnswer(long messageId, boolean answer, boolean cascade) throws PortalException
updateAnswer
in interface MBMessageService
PortalException
public MBMessage updateDiscussionMessage(String className, long classPK, long messageId, String subject, String body, ServiceContext serviceContext) throws PortalException
updateDiscussionMessage
in interface MBMessageService
PortalException
public 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 MBMessageService
PortalException
public MBMessageService getWrappedService()
getWrappedService
in interface ServiceWrapper<MBMessageService>
public void setWrappedService(MBMessageService mbMessageService)
setWrappedService
in interface ServiceWrapper<MBMessageService>