@ProviderType public class MBMessageServiceHttp extends Object
MBMessageServiceUtil service utility. The
static methods of this class calls the same methods of the service utility.
However, the signatures are different because it requires an additional
HttpPrincipal parameter.
The benefits of using the HTTP utility is that it is fast and allows for tunneling without the cost of serializing to text. The drawback is that it only works with Java.
Set the property tunnel.servlet.hosts.allowed in portal.properties to configure security.
The HTTP utility is only generated for remote services.
MBMessageServiceSoap,
HttpPrincipal,
MBMessageServiceUtil| Constructor and Description |
|---|
MBMessageServiceHttp() |
| Modifier and Type | Method and Description |
|---|---|
static com.liferay.message.boards.kernel.model.MBMessage |
addDiscussionMessage(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
String className,
long classPK,
long threadId,
long parentMessageId,
String subject,
String body,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static com.liferay.message.boards.kernel.model.MBMessage |
addMessage(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long categoryId,
String subject,
String body,
String format,
List<com.liferay.portal.kernel.util.ObjectValuePair<String,InputStream>> inputStreamOVPs,
boolean anonymous,
double priority,
boolean allowPingbacks,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static com.liferay.message.boards.kernel.model.MBMessage |
addMessage(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long categoryId,
String subject,
String body,
String format,
String fileName,
File file,
boolean anonymous,
double priority,
boolean allowPingbacks,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static com.liferay.message.boards.kernel.model.MBMessage |
addMessage(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long categoryId,
String subject,
String body,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static com.liferay.message.boards.kernel.model.MBMessage |
addMessage(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long parentMessageId,
String subject,
String body,
String format,
List<com.liferay.portal.kernel.util.ObjectValuePair<String,InputStream>> inputStreamOVPs,
boolean anonymous,
double priority,
boolean allowPingbacks,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static void |
addMessageAttachment(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long messageId,
String fileName,
File file,
String mimeType) |
static void |
deleteDiscussionMessage(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long messageId) |
static void |
deleteDiscussionMessage(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
String className,
long classPK,
String permissionClassName,
long permissionClassPK,
long permissionOwnerId,
long messageId) |
static void |
deleteMessage(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long messageId) |
static void |
deleteMessageAttachment(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long messageId,
String fileName) |
static void |
deleteMessageAttachments(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long messageId) |
static void |
emptyMessageAttachments(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long messageId) |
static List<com.liferay.message.boards.kernel.model.MBMessage> |
getCategoryMessages(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long categoryId,
int status,
int start,
int end) |
static int |
getCategoryMessagesCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long categoryId,
int status) |
static String |
getCategoryMessagesRSS(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long categoryId,
int status,
int max,
String type,
double version,
String displayStyle,
String feedURL,
String entryURL,
com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) |
static String |
getCompanyMessagesRSS(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long companyId,
int status,
int max,
String type,
double version,
String displayStyle,
String feedURL,
String entryURL,
com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) |
static int |
getGroupMessagesCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
int status) |
static String |
getGroupMessagesRSS(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
int status,
int max,
String type,
double version,
String displayStyle,
String feedURL,
String entryURL,
com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) |
static String |
getGroupMessagesRSS(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long userId,
int status,
int max,
String type,
double version,
String displayStyle,
String feedURL,
String entryURL,
com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) |
static com.liferay.message.boards.kernel.model.MBMessage |
getMessage(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long messageId) |
static com.liferay.message.boards.kernel.model.MBMessageDisplay |
getMessageDisplay(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long messageId,
int status) |
static com.liferay.message.boards.kernel.model.MBMessageDisplay |
getMessageDisplay(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long messageId,
int status,
String threadView,
boolean includePrevAndNext) |
static int |
getThreadAnswersCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long categoryId,
long threadId) |
static List<com.liferay.message.boards.kernel.model.MBMessage> |
getThreadMessages(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long categoryId,
long threadId,
int status,
int start,
int end) |
static int |
getThreadMessagesCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long categoryId,
long threadId,
int status) |
static String |
getThreadMessagesRSS(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long threadId,
int status,
int max,
String type,
double version,
String displayStyle,
String feedURL,
String entryURL,
com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) |
static void |
restoreMessageAttachmentFromTrash(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long messageId,
String fileName) |
static void |
subscribeMessage(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long messageId) |
static void |
unsubscribeMessage(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long messageId) |
static void |
updateAnswer(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long messageId,
boolean answer,
boolean cascade) |
static com.liferay.message.boards.kernel.model.MBMessage |
updateDiscussionMessage(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
String className,
long classPK,
long messageId,
String subject,
String body,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static com.liferay.message.boards.kernel.model.MBMessage |
updateMessage(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long messageId,
String subject,
String body,
List<com.liferay.portal.kernel.util.ObjectValuePair<String,InputStream>> inputStreamOVPs,
List<String> existingFiles,
double priority,
boolean allowPingbacks,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
public static com.liferay.message.boards.kernel.model.MBMessage addDiscussionMessage(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
String className,
long classPK,
long threadId,
long parentMessageId,
String subject,
String body,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static com.liferay.message.boards.kernel.model.MBMessage addMessage(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long categoryId,
String subject,
String body,
String format,
List<com.liferay.portal.kernel.util.ObjectValuePair<String,InputStream>> inputStreamOVPs,
boolean anonymous,
double priority,
boolean allowPingbacks,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static com.liferay.message.boards.kernel.model.MBMessage addMessage(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long categoryId,
String subject,
String body,
String format,
String fileName,
File file,
boolean anonymous,
double priority,
boolean allowPingbacks,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
FileNotFoundException
com.liferay.portal.kernel.exception.PortalExceptionFileNotFoundExceptionpublic static com.liferay.message.boards.kernel.model.MBMessage addMessage(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long categoryId,
String subject,
String body,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static com.liferay.message.boards.kernel.model.MBMessage addMessage(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long parentMessageId,
String subject,
String body,
String format,
List<com.liferay.portal.kernel.util.ObjectValuePair<String,InputStream>> inputStreamOVPs,
boolean anonymous,
double priority,
boolean allowPingbacks,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static void addMessageAttachment(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long messageId,
String fileName,
File file,
String mimeType)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static void deleteDiscussionMessage(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long messageId)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static void deleteDiscussionMessage(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
String className,
long classPK,
String permissionClassName,
long permissionClassPK,
long permissionOwnerId,
long messageId)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static void deleteMessage(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long messageId)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static void deleteMessageAttachment(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long messageId,
String fileName)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static void deleteMessageAttachments(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long messageId)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static void emptyMessageAttachments(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long messageId)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static List<com.liferay.message.boards.kernel.model.MBMessage> getCategoryMessages(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long categoryId, int status, int start, int end) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static int getCategoryMessagesCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long categoryId,
int status)
public static String getCategoryMessagesRSS(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long categoryId, int status, int max, String type, double version, String displayStyle, String feedURL, String entryURL, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static String getCompanyMessagesRSS(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId, int status, int max, String type, double version, String displayStyle, String feedURL, String entryURL, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static int getGroupMessagesCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
int status)
public static String getGroupMessagesRSS(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, int status, int max, String type, double version, String displayStyle, String feedURL, String entryURL, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static String getGroupMessagesRSS(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long userId, int status, int max, String type, double version, String displayStyle, String feedURL, String entryURL, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static com.liferay.message.boards.kernel.model.MBMessage getMessage(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long messageId)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static com.liferay.message.boards.kernel.model.MBMessageDisplay getMessageDisplay(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long messageId,
int status)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static com.liferay.message.boards.kernel.model.MBMessageDisplay getMessageDisplay(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long messageId,
int status,
String threadView,
boolean includePrevAndNext)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static int getThreadAnswersCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long categoryId,
long threadId)
public static List<com.liferay.message.boards.kernel.model.MBMessage> getThreadMessages(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long categoryId, long threadId, int status, int start, int end)
public static int getThreadMessagesCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long categoryId,
long threadId,
int status)
public static String getThreadMessagesRSS(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long threadId, int status, int max, String type, double version, String displayStyle, String feedURL, String entryURL, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static void restoreMessageAttachmentFromTrash(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long messageId,
String fileName)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static void subscribeMessage(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long messageId)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static void unsubscribeMessage(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long messageId)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static void updateAnswer(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long messageId,
boolean answer,
boolean cascade)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static com.liferay.message.boards.kernel.model.MBMessage updateDiscussionMessage(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
String className,
long classPK,
long messageId,
String subject,
String body,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static com.liferay.message.boards.kernel.model.MBMessage updateMessage(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long messageId,
String subject,
String body,
List<com.liferay.portal.kernel.util.ObjectValuePair<String,InputStream>> inputStreamOVPs,
List<String> existingFiles,
double priority,
boolean allowPingbacks,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException