@ProviderType
public class MBMessageServiceUtil
extends java.lang.Object
com.liferay.portlet.messageboards.service.impl.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,
com.liferay.portlet.messageboards.service.base.MBMessageServiceBaseImpl,
com.liferay.portlet.messageboards.service.impl.MBMessageServiceImpl| Constructor and Description |
|---|
MBMessageServiceUtil() |
| Modifier and Type | Method and Description |
|---|---|
static MBMessage |
addDiscussionMessage(long groupId,
java.lang.String className,
long classPK,
java.lang.String permissionClassName,
long permissionClassPK,
long permissionOwnerId,
long threadId,
long parentMessageId,
java.lang.String subject,
java.lang.String body,
ServiceContext serviceContext) |
static MBMessage |
addMessage(long groupId,
long categoryId,
long threadId,
long parentMessageId,
java.lang.String subject,
java.lang.String body,
java.lang.String format,
java.util.List<ObjectValuePair<java.lang.String,java.io.InputStream>> inputStreamOVPs,
boolean anonymous,
double priority,
boolean allowPingbacks,
ServiceContext serviceContext)
Deprecated.
|
static MBMessage |
addMessage(long groupId,
long categoryId,
java.lang.String subject,
java.lang.String body,
java.lang.String format,
java.util.List<ObjectValuePair<java.lang.String,java.io.InputStream>> inputStreamOVPs,
boolean anonymous,
double priority,
boolean allowPingbacks,
ServiceContext serviceContext) |
static MBMessage |
addMessage(long categoryId,
java.lang.String subject,
java.lang.String body,
ServiceContext serviceContext) |
static MBMessage |
addMessage(long parentMessageId,
java.lang.String subject,
java.lang.String body,
java.lang.String format,
java.util.List<ObjectValuePair<java.lang.String,java.io.InputStream>> inputStreamOVPs,
boolean anonymous,
double priority,
boolean allowPingbacks,
ServiceContext serviceContext) |
static void |
deleteDiscussionMessage(long groupId,
java.lang.String className,
long classPK,
java.lang.String permissionClassName,
long permissionClassPK,
long permissionOwnerId,
long messageId) |
static void |
deleteMessage(long messageId) |
static void |
deleteMessageAttachments(long messageId) |
static java.lang.String |
getBeanIdentifier()
Returns the Spring bean ID for this bean.
|
static java.util.List<MBMessage> |
getCategoryMessages(long groupId,
long categoryId,
int status,
int start,
int end) |
static int |
getCategoryMessagesCount(long groupId,
long categoryId,
int status) |
static java.lang.String |
getCategoryMessagesRSS(long groupId,
long categoryId,
int status,
int max,
java.lang.String type,
double version,
java.lang.String displayStyle,
java.lang.String feedURL,
java.lang.String entryURL,
ThemeDisplay themeDisplay) |
static java.lang.String |
getCompanyMessagesRSS(long companyId,
int status,
int max,
java.lang.String type,
double version,
java.lang.String displayStyle,
java.lang.String feedURL,
java.lang.String entryURL,
ThemeDisplay themeDisplay) |
static int |
getGroupMessagesCount(long groupId,
int status) |
static java.lang.String |
getGroupMessagesRSS(long groupId,
int status,
int max,
java.lang.String type,
double version,
java.lang.String displayStyle,
java.lang.String feedURL,
java.lang.String entryURL,
ThemeDisplay themeDisplay) |
static java.lang.String |
getGroupMessagesRSS(long groupId,
long userId,
int status,
int max,
java.lang.String type,
double version,
java.lang.String displayStyle,
java.lang.String feedURL,
java.lang.String entryURL,
ThemeDisplay themeDisplay) |
static MBMessage |
getMessage(long messageId) |
static MBMessageDisplay |
getMessageDisplay(long messageId,
int status,
java.lang.String threadView,
boolean includePrevAndNext) |
static MBMessageService |
getService() |
static int |
getThreadAnswersCount(long groupId,
long categoryId,
long threadId) |
static java.util.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 java.lang.String |
getThreadMessagesRSS(long threadId,
int status,
int max,
java.lang.String type,
double version,
java.lang.String displayStyle,
java.lang.String feedURL,
java.lang.String entryURL,
ThemeDisplay themeDisplay) |
static void |
restoreMessageAttachmentFromTrash(long messageId,
java.lang.String fileName) |
static void |
setBeanIdentifier(java.lang.String beanIdentifier)
Sets the Spring bean ID for this bean.
|
void |
setService(MBMessageService service)
Deprecated.
As of 6.2.0
|
static void |
subscribeMessage(long messageId) |
static void |
unsubscribeMessage(long messageId) |
static void |
updateAnswer(long messageId,
boolean answer,
boolean cascade) |
static MBMessage |
updateDiscussionMessage(java.lang.String className,
long classPK,
java.lang.String permissionClassName,
long permissionClassPK,
long permissionOwnerId,
long messageId,
java.lang.String subject,
java.lang.String body,
ServiceContext serviceContext) |
static MBMessage |
updateMessage(long messageId,
java.lang.String subject,
java.lang.String body,
java.util.List<ObjectValuePair<java.lang.String,java.io.InputStream>> inputStreamOVPs,
java.util.List<java.lang.String> existingFiles,
double priority,
boolean allowPingbacks,
ServiceContext serviceContext) |
public static java.lang.String getBeanIdentifier()
public static void setBeanIdentifier(java.lang.String beanIdentifier)
beanIdentifier - the Spring bean ID for this beanpublic static MBMessage addDiscussionMessage(long groupId, java.lang.String className, long classPK, java.lang.String permissionClassName, long permissionClassPK, long permissionOwnerId, long threadId, long parentMessageId, java.lang.String subject, java.lang.String body, ServiceContext serviceContext) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static MBMessage addMessage(long groupId, long categoryId, long threadId, long parentMessageId, java.lang.String subject, java.lang.String body, java.lang.String format, java.util.List<ObjectValuePair<java.lang.String,java.io.InputStream>> inputStreamOVPs, boolean anonymous, double priority, boolean allowPingbacks, ServiceContext serviceContext) throws PortalException, SystemException
addMessage(long, String,
String, String, java.util.List, boolean, double, boolean,
com.liferay.portal.service.ServiceContext)PortalExceptionSystemExceptionpublic static MBMessage addMessage(long groupId, long categoryId, java.lang.String subject, java.lang.String body, java.lang.String format, java.util.List<ObjectValuePair<java.lang.String,java.io.InputStream>> inputStreamOVPs, boolean anonymous, double priority, boolean allowPingbacks, ServiceContext serviceContext) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static MBMessage addMessage(long categoryId, java.lang.String subject, java.lang.String body, ServiceContext serviceContext) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static MBMessage addMessage(long parentMessageId, java.lang.String subject, java.lang.String body, java.lang.String format, java.util.List<ObjectValuePair<java.lang.String,java.io.InputStream>> inputStreamOVPs, boolean anonymous, double priority, boolean allowPingbacks, ServiceContext serviceContext) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static void deleteDiscussionMessage(long groupId,
java.lang.String className,
long classPK,
java.lang.String permissionClassName,
long permissionClassPK,
long permissionOwnerId,
long messageId)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static void deleteMessage(long messageId)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static void deleteMessageAttachments(long messageId)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static java.util.List<MBMessage> getCategoryMessages(long groupId, long categoryId, int status, int start, int end) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static int getCategoryMessagesCount(long groupId,
long categoryId,
int status)
throws SystemException
SystemExceptionpublic static java.lang.String getCategoryMessagesRSS(long groupId,
long categoryId,
int status,
int max,
java.lang.String type,
double version,
java.lang.String displayStyle,
java.lang.String feedURL,
java.lang.String entryURL,
ThemeDisplay themeDisplay)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static java.lang.String getCompanyMessagesRSS(long companyId,
int status,
int max,
java.lang.String type,
double version,
java.lang.String displayStyle,
java.lang.String feedURL,
java.lang.String entryURL,
ThemeDisplay themeDisplay)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static int getGroupMessagesCount(long groupId,
int status)
throws SystemException
SystemExceptionpublic static java.lang.String getGroupMessagesRSS(long groupId,
int status,
int max,
java.lang.String type,
double version,
java.lang.String displayStyle,
java.lang.String feedURL,
java.lang.String entryURL,
ThemeDisplay themeDisplay)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static java.lang.String getGroupMessagesRSS(long groupId,
long userId,
int status,
int max,
java.lang.String type,
double version,
java.lang.String displayStyle,
java.lang.String feedURL,
java.lang.String entryURL,
ThemeDisplay themeDisplay)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static MBMessage getMessage(long messageId) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static MBMessageDisplay getMessageDisplay(long messageId, int status, java.lang.String threadView, boolean includePrevAndNext) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static int getThreadAnswersCount(long groupId,
long categoryId,
long threadId)
throws SystemException
SystemExceptionpublic static java.util.List<MBMessage> getThreadMessages(long groupId, long categoryId, long threadId, int status, int start, int end) throws SystemException
SystemExceptionpublic static int getThreadMessagesCount(long groupId,
long categoryId,
long threadId,
int status)
throws SystemException
SystemExceptionpublic static java.lang.String getThreadMessagesRSS(long threadId,
int status,
int max,
java.lang.String type,
double version,
java.lang.String displayStyle,
java.lang.String feedURL,
java.lang.String entryURL,
ThemeDisplay themeDisplay)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static void restoreMessageAttachmentFromTrash(long messageId,
java.lang.String fileName)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static void subscribeMessage(long messageId)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static void unsubscribeMessage(long messageId)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static void updateAnswer(long messageId,
boolean answer,
boolean cascade)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static MBMessage updateDiscussionMessage(java.lang.String className, long classPK, java.lang.String permissionClassName, long permissionClassPK, long permissionOwnerId, long messageId, java.lang.String subject, java.lang.String body, ServiceContext serviceContext) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static MBMessage updateMessage(long messageId, java.lang.String subject, java.lang.String body, java.util.List<ObjectValuePair<java.lang.String,java.io.InputStream>> inputStreamOVPs, java.util.List<java.lang.String> existingFiles, double priority, boolean allowPingbacks, ServiceContext serviceContext) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static MBMessageService getService()
public void setService(MBMessageService service)