@AccessControlled @JSONWebService @ProviderType @Transactional(isolation=PORTAL, rollbackFor={PortalException.class,SystemException.class}) public interface MBMessageService extends BaseService
MBMessageServiceUtil
,
MBMessageServiceBaseImpl
,
MBMessageServiceImpl
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 Wilberforce (7.0.x), 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 Wilberforce (7.0.x), 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) |
void |
restoreMessageAttachmentFromTrash(long messageId,
String fileName) |
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) |
MBMessage addDiscussionMessage(long groupId, String className, long classPK, long threadId, long parentMessageId, String subject, String body, ServiceContext serviceContext) throws PortalException
PortalException
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
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
MBMessage addMessage(long categoryId, String subject, String body, ServiceContext serviceContext) throws PortalException
PortalException
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
void addMessageAttachment(long messageId, String fileName, File file, String mimeType) throws PortalException
PortalException
void deleteDiscussionMessage(long messageId) throws PortalException
PortalException
@Deprecated void deleteDiscussionMessage(long groupId, String className, long classPK, String permissionClassName, long permissionClassPK, long permissionOwnerId, long messageId) throws PortalException
deleteDiscussionMessage(long)
PortalException
void deleteMessage(long messageId) throws PortalException
PortalException
void deleteMessageAttachment(long messageId, String fileName) throws PortalException
PortalException
void deleteMessageAttachments(long messageId) throws PortalException
PortalException
void emptyMessageAttachments(long messageId) throws PortalException
PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) List<MBMessage> getCategoryMessages(long groupId, long categoryId, int status, int start, int end) throws PortalException
PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) int getCategoryMessagesCount(long groupId, long categoryId, int status)
@Transactional(propagation=SUPPORTS, readOnly=true) 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
@Transactional(propagation=SUPPORTS, readOnly=true) String getCompanyMessagesRSS(long companyId, int status, int max, String type, double version, String displayStyle, String feedURL, String entryURL, ThemeDisplay themeDisplay) throws PortalException
PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) int getGroupMessagesCount(long groupId, int status)
@Transactional(propagation=SUPPORTS, readOnly=true) String getGroupMessagesRSS(long groupId, int status, int max, String type, double version, String displayStyle, String feedURL, String entryURL, ThemeDisplay themeDisplay) throws PortalException
PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) 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
@Transactional(propagation=SUPPORTS, readOnly=true) MBMessage getMessage(long messageId) throws PortalException
PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) MBMessageDisplay getMessageDisplay(long messageId, int status) throws PortalException
PortalException
@Deprecated @Transactional(propagation=SUPPORTS, readOnly=true) MBMessageDisplay getMessageDisplay(long messageId, int status, String threadView, boolean includePrevAndNext) throws PortalException
getMessageDisplay(long, int)
PortalException
String getOSGiServiceIdentifier()
@Transactional(propagation=SUPPORTS, readOnly=true) int getThreadAnswersCount(long groupId, long categoryId, long threadId)
@Transactional(propagation=SUPPORTS, readOnly=true) List<MBMessage> getThreadMessages(long groupId, long categoryId, long threadId, int status, int start, int end)
@Transactional(propagation=SUPPORTS, readOnly=true) int getThreadMessagesCount(long groupId, long categoryId, long threadId, int status)
@Transactional(propagation=SUPPORTS, readOnly=true) String getThreadMessagesRSS(long threadId, int status, int max, String type, double version, String displayStyle, String feedURL, String entryURL, ThemeDisplay themeDisplay) throws PortalException
PortalException
void restoreMessageAttachmentFromTrash(long messageId, String fileName) throws PortalException
PortalException
void subscribeMessage(long messageId) throws PortalException
PortalException
void unsubscribeMessage(long messageId) throws PortalException
PortalException
void updateAnswer(long messageId, boolean answer, boolean cascade) throws PortalException
PortalException
MBMessage updateDiscussionMessage(String className, long classPK, long messageId, String subject, String body, ServiceContext serviceContext) throws PortalException
PortalException
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