@AccessControlled @JSONWebService @ProviderType @Transactional(isolation=PORTAL, rollbackFor={PortalException.class,SystemException.class}) public interface MBMessageService extends BaseService
MBMessageServiceUtil,
com.liferay.portlet.messageboards.service.base.MBMessageServiceBaseImpl,
com.liferay.portlet.messageboards.service.impl.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 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) |
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
PortalExceptionMBMessage addMessage(long categoryId, String subject, String body, ServiceContext serviceContext) throws PortalException
PortalExceptionMBMessage 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
PortalExceptionFileNotFoundExceptionMBMessage 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
PortalExceptionMBMessage 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@Transactional(propagation=SUPPORTS, readOnly=true) MBMessage getMessage(long messageId) throws PortalException
PortalExceptionMBMessage updateDiscussionMessage(String className, long classPK, long messageId, String subject, String body, ServiceContext serviceContext) throws PortalException
PortalExceptionMBMessage updateMessage(long messageId, String subject, String body, List<ObjectValuePair<String,InputStream>> inputStreamOVPs, List<String> existingFiles, double priority, boolean allowPingbacks, ServiceContext serviceContext) 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@Transactional(propagation=SUPPORTS, readOnly=true) int getCategoryMessagesCount(long groupId, long categoryId, int status)
@Transactional(propagation=SUPPORTS, readOnly=true) int getGroupMessagesCount(long groupId, int status)
@Transactional(propagation=SUPPORTS, readOnly=true) int getThreadAnswersCount(long groupId, long categoryId, long threadId)
@Transactional(propagation=SUPPORTS, readOnly=true) int getThreadMessagesCount(long groupId, long categoryId, long threadId, 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) 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
PortalExceptionString getOSGiServiceIdentifier()
@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@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) List<MBMessage> getThreadMessages(long groupId, long categoryId, long threadId, int status, int start, int end)
void addMessageAttachment(long messageId,
String fileName,
File file,
String mimeType)
throws PortalException
PortalException@Deprecated void deleteDiscussionMessage(long groupId, String className, long classPK, String permissionClassName, long permissionClassPK, long permissionOwnerId, long messageId) throws PortalException
deleteDiscussionMessage(long)PortalExceptionvoid deleteDiscussionMessage(long messageId)
throws PortalException
PortalExceptionvoid deleteMessage(long messageId)
throws PortalException
PortalExceptionvoid deleteMessageAttachment(long messageId,
String fileName)
throws PortalException
PortalExceptionvoid deleteMessageAttachments(long messageId)
throws PortalException
PortalExceptionvoid emptyMessageAttachments(long messageId)
throws PortalException
PortalExceptionvoid restoreMessageAttachmentFromTrash(long messageId,
String fileName)
throws PortalException
PortalExceptionvoid subscribeMessage(long messageId)
throws PortalException
PortalExceptionvoid unsubscribeMessage(long messageId)
throws PortalException
PortalExceptionvoid updateAnswer(long messageId,
boolean answer,
boolean cascade)
throws PortalException
PortalException