com.liferay.portlet.messageboards.service.http
Class MBMessageServiceHttp
java.lang.Object
com.liferay.portlet.messageboards.service.http.MBMessageServiceHttp
public class MBMessageServiceHttp
- extends java.lang.Object
View Source
ServiceBuilder generated this class. Modifications in this class will be
overwritten the next time is generated.
This class provides a HTTP utility for the
com.liferay.portlet.messageboards.service.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 com.liferay.portal.security.auth.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.
- Author:
- Brian Wing Shun Chan
- See Also:
HttpPrincipal
,
MBMessageServiceUtil
,
MBMessageServiceSoap
Method Summary |
static com.liferay.portlet.messageboards.model.MBMessage |
addDiscussionMessage(HttpPrincipal httpPrincipal,
long groupId,
java.lang.String className,
long classPK,
long threadId,
long parentMessageId,
java.lang.String subject,
java.lang.String body,
com.liferay.portal.theme.ThemeDisplay themeDisplay)
|
static com.liferay.portlet.messageboards.model.MBMessage |
addMessage(HttpPrincipal httpPrincipal,
long categoryId,
long threadId,
long parentMessageId,
java.lang.String subject,
java.lang.String body,
java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String,byte[]>> files,
boolean anonymous,
double priority,
java.lang.String[] tagsEntries,
boolean addCommunityPermissions,
boolean addGuestPermissions)
|
static com.liferay.portlet.messageboards.model.MBMessage |
addMessage(HttpPrincipal httpPrincipal,
long categoryId,
long threadId,
long parentMessageId,
java.lang.String subject,
java.lang.String body,
java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String,byte[]>> files,
boolean anonymous,
double priority,
java.lang.String[] tagsEntries,
javax.portlet.PortletPreferences prefs,
boolean addCommunityPermissions,
boolean addGuestPermissions,
com.liferay.portal.theme.ThemeDisplay themeDisplay)
|
static com.liferay.portlet.messageboards.model.MBMessage |
addMessage(HttpPrincipal httpPrincipal,
long categoryId,
long threadId,
long parentMessageId,
java.lang.String subject,
java.lang.String body,
java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String,byte[]>> files,
boolean anonymous,
double priority,
java.lang.String[] tagsEntries,
javax.portlet.PortletPreferences prefs,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions,
com.liferay.portal.theme.ThemeDisplay themeDisplay)
|
static com.liferay.portlet.messageboards.model.MBMessage |
addMessage(HttpPrincipal httpPrincipal,
long categoryId,
long threadId,
long parentMessageId,
java.lang.String subject,
java.lang.String body,
java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String,byte[]>> files,
boolean anonymous,
double priority,
java.lang.String[] tagsEntries,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
|
static com.liferay.portlet.messageboards.model.MBMessage |
addMessage(HttpPrincipal httpPrincipal,
long categoryId,
java.lang.String subject,
java.lang.String body,
java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String,byte[]>> files,
boolean anonymous,
double priority,
java.lang.String[] tagsEntries,
boolean addCommunityPermissions,
boolean addGuestPermissions)
|
static com.liferay.portlet.messageboards.model.MBMessage |
addMessage(HttpPrincipal httpPrincipal,
long categoryId,
java.lang.String subject,
java.lang.String body,
java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String,byte[]>> files,
boolean anonymous,
double priority,
java.lang.String[] tagsEntries,
javax.portlet.PortletPreferences prefs,
boolean addCommunityPermissions,
boolean addGuestPermissions,
com.liferay.portal.theme.ThemeDisplay themeDisplay)
|
static com.liferay.portlet.messageboards.model.MBMessage |
addMessage(HttpPrincipal httpPrincipal,
long categoryId,
java.lang.String subject,
java.lang.String body,
java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String,byte[]>> files,
boolean anonymous,
double priority,
java.lang.String[] tagsEntries,
javax.portlet.PortletPreferences prefs,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions,
com.liferay.portal.theme.ThemeDisplay themeDisplay)
|
static com.liferay.portlet.messageboards.model.MBMessage |
addMessage(HttpPrincipal httpPrincipal,
long categoryId,
java.lang.String subject,
java.lang.String body,
java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String,byte[]>> files,
boolean anonymous,
double priority,
java.lang.String[] tagsEntries,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
|
static void |
deleteDiscussionMessage(HttpPrincipal httpPrincipal,
long groupId,
java.lang.String className,
long classPK,
long messageId)
|
static void |
deleteMessage(HttpPrincipal httpPrincipal,
long messageId)
|
static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> |
getCategoryMessages(HttpPrincipal httpPrincipal,
long categoryId,
int begin,
int end)
|
static int |
getCategoryMessagesCount(HttpPrincipal httpPrincipal,
long categoryId)
|
static java.lang.String |
getCategoryMessagesRSS(HttpPrincipal httpPrincipal,
long categoryId,
int max,
java.lang.String type,
double version,
java.lang.String displayStyle,
java.lang.String feedURL,
java.lang.String entryURL)
|
static java.lang.String |
getCompanyMessagesRSS(HttpPrincipal httpPrincipal,
long companyId,
int max,
java.lang.String type,
double version,
java.lang.String displayStyle,
java.lang.String feedURL,
java.lang.String entryURL)
|
static java.lang.String |
getGroupMessagesRSS(HttpPrincipal httpPrincipal,
long groupId,
int max,
java.lang.String type,
double version,
java.lang.String displayStyle,
java.lang.String feedURL,
java.lang.String entryURL)
|
static java.lang.String |
getGroupMessagesRSS(HttpPrincipal httpPrincipal,
long groupId,
long userId,
int max,
java.lang.String type,
double version,
java.lang.String displayStyle,
java.lang.String feedURL,
java.lang.String entryURL)
|
static com.liferay.portlet.messageboards.model.MBMessage |
getMessage(HttpPrincipal httpPrincipal,
long messageId)
|
static com.liferay.portlet.messageboards.model.MBMessageDisplay |
getMessageDisplay(HttpPrincipal httpPrincipal,
long messageId)
|
static java.lang.String |
getThreadMessagesRSS(HttpPrincipal httpPrincipal,
long threadId,
int max,
java.lang.String type,
double version,
java.lang.String displayStyle,
java.lang.String feedURL,
java.lang.String entryURL)
|
static void |
subscribeMessage(HttpPrincipal httpPrincipal,
long messageId)
|
static void |
unsubscribeMessage(HttpPrincipal httpPrincipal,
long messageId)
|
static com.liferay.portlet.messageboards.model.MBMessage |
updateDiscussionMessage(HttpPrincipal httpPrincipal,
long groupId,
java.lang.String className,
long classPK,
long messageId,
java.lang.String subject,
java.lang.String body)
|
static com.liferay.portlet.messageboards.model.MBMessage |
updateMessage(HttpPrincipal httpPrincipal,
long messageId,
java.lang.String subject,
java.lang.String body,
java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String,byte[]>> files,
java.util.List<java.lang.String> existingFiles,
double priority,
java.lang.String[] tagsEntries)
|
static com.liferay.portlet.messageboards.model.MBMessage |
updateMessage(HttpPrincipal httpPrincipal,
long messageId,
java.lang.String subject,
java.lang.String body,
java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String,byte[]>> files,
java.util.List<java.lang.String> existingFiles,
double priority,
java.lang.String[] tagsEntries,
javax.portlet.PortletPreferences prefs,
com.liferay.portal.theme.ThemeDisplay themeDisplay)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MBMessageServiceHttp
public MBMessageServiceHttp()
addDiscussionMessage
public static com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(HttpPrincipal httpPrincipal,
long groupId,
java.lang.String className,
long classPK,
long threadId,
long parentMessageId,
java.lang.String subject,
java.lang.String body,
com.liferay.portal.theme.ThemeDisplay themeDisplay)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
addMessage
public static com.liferay.portlet.messageboards.model.MBMessage addMessage(HttpPrincipal httpPrincipal,
long categoryId,
java.lang.String subject,
java.lang.String body,
java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String,byte[]>> files,
boolean anonymous,
double priority,
java.lang.String[] tagsEntries,
boolean addCommunityPermissions,
boolean addGuestPermissions)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
addMessage
public static com.liferay.portlet.messageboards.model.MBMessage addMessage(HttpPrincipal httpPrincipal,
long categoryId,
java.lang.String subject,
java.lang.String body,
java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String,byte[]>> files,
boolean anonymous,
double priority,
java.lang.String[] tagsEntries,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
addMessage
public static com.liferay.portlet.messageboards.model.MBMessage addMessage(HttpPrincipal httpPrincipal,
long categoryId,
java.lang.String subject,
java.lang.String body,
java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String,byte[]>> files,
boolean anonymous,
double priority,
java.lang.String[] tagsEntries,
javax.portlet.PortletPreferences prefs,
boolean addCommunityPermissions,
boolean addGuestPermissions,
com.liferay.portal.theme.ThemeDisplay themeDisplay)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
addMessage
public static com.liferay.portlet.messageboards.model.MBMessage addMessage(HttpPrincipal httpPrincipal,
long categoryId,
java.lang.String subject,
java.lang.String body,
java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String,byte[]>> files,
boolean anonymous,
double priority,
java.lang.String[] tagsEntries,
javax.portlet.PortletPreferences prefs,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions,
com.liferay.portal.theme.ThemeDisplay themeDisplay)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
addMessage
public static com.liferay.portlet.messageboards.model.MBMessage addMessage(HttpPrincipal httpPrincipal,
long categoryId,
long threadId,
long parentMessageId,
java.lang.String subject,
java.lang.String body,
java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String,byte[]>> files,
boolean anonymous,
double priority,
java.lang.String[] tagsEntries,
boolean addCommunityPermissions,
boolean addGuestPermissions)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
addMessage
public static com.liferay.portlet.messageboards.model.MBMessage addMessage(HttpPrincipal httpPrincipal,
long categoryId,
long threadId,
long parentMessageId,
java.lang.String subject,
java.lang.String body,
java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String,byte[]>> files,
boolean anonymous,
double priority,
java.lang.String[] tagsEntries,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
addMessage
public static com.liferay.portlet.messageboards.model.MBMessage addMessage(HttpPrincipal httpPrincipal,
long categoryId,
long threadId,
long parentMessageId,
java.lang.String subject,
java.lang.String body,
java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String,byte[]>> files,
boolean anonymous,
double priority,
java.lang.String[] tagsEntries,
javax.portlet.PortletPreferences prefs,
boolean addCommunityPermissions,
boolean addGuestPermissions,
com.liferay.portal.theme.ThemeDisplay themeDisplay)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
addMessage
public static com.liferay.portlet.messageboards.model.MBMessage addMessage(HttpPrincipal httpPrincipal,
long categoryId,
long threadId,
long parentMessageId,
java.lang.String subject,
java.lang.String body,
java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String,byte[]>> files,
boolean anonymous,
double priority,
java.lang.String[] tagsEntries,
javax.portlet.PortletPreferences prefs,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions,
com.liferay.portal.theme.ThemeDisplay themeDisplay)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
deleteDiscussionMessage
public static void deleteDiscussionMessage(HttpPrincipal httpPrincipal,
long groupId,
java.lang.String className,
long classPK,
long messageId)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
deleteMessage
public static void deleteMessage(HttpPrincipal httpPrincipal,
long messageId)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
getCategoryMessages
public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(HttpPrincipal httpPrincipal,
long categoryId,
int begin,
int end)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
getCategoryMessagesCount
public static int getCategoryMessagesCount(HttpPrincipal httpPrincipal,
long categoryId)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
getCategoryMessagesRSS
public static java.lang.String getCategoryMessagesRSS(HttpPrincipal httpPrincipal,
long categoryId,
int max,
java.lang.String type,
double version,
java.lang.String displayStyle,
java.lang.String feedURL,
java.lang.String entryURL)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
getCompanyMessagesRSS
public static java.lang.String getCompanyMessagesRSS(HttpPrincipal httpPrincipal,
long companyId,
int max,
java.lang.String type,
double version,
java.lang.String displayStyle,
java.lang.String feedURL,
java.lang.String entryURL)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
getGroupMessagesRSS
public static java.lang.String getGroupMessagesRSS(HttpPrincipal httpPrincipal,
long groupId,
int max,
java.lang.String type,
double version,
java.lang.String displayStyle,
java.lang.String feedURL,
java.lang.String entryURL)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
getGroupMessagesRSS
public static java.lang.String getGroupMessagesRSS(HttpPrincipal httpPrincipal,
long groupId,
long userId,
int max,
java.lang.String type,
double version,
java.lang.String displayStyle,
java.lang.String feedURL,
java.lang.String entryURL)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
getMessage
public static com.liferay.portlet.messageboards.model.MBMessage getMessage(HttpPrincipal httpPrincipal,
long messageId)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
getMessageDisplay
public static com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(HttpPrincipal httpPrincipal,
long messageId)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
getThreadMessagesRSS
public static java.lang.String getThreadMessagesRSS(HttpPrincipal httpPrincipal,
long threadId,
int max,
java.lang.String type,
double version,
java.lang.String displayStyle,
java.lang.String feedURL,
java.lang.String entryURL)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
subscribeMessage
public static void subscribeMessage(HttpPrincipal httpPrincipal,
long messageId)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
unsubscribeMessage
public static void unsubscribeMessage(HttpPrincipal httpPrincipal,
long messageId)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
updateDiscussionMessage
public static com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(HttpPrincipal httpPrincipal,
long groupId,
java.lang.String className,
long classPK,
long messageId,
java.lang.String subject,
java.lang.String body)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
updateMessage
public static com.liferay.portlet.messageboards.model.MBMessage updateMessage(HttpPrincipal httpPrincipal,
long messageId,
java.lang.String subject,
java.lang.String body,
java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String,byte[]>> files,
java.util.List<java.lang.String> existingFiles,
double priority,
java.lang.String[] tagsEntries)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
updateMessage
public static com.liferay.portlet.messageboards.model.MBMessage updateMessage(HttpPrincipal httpPrincipal,
long messageId,
java.lang.String subject,
java.lang.String body,
java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String,byte[]>> files,
java.util.List<java.lang.String> existingFiles,
double priority,
java.lang.String[] tagsEntries,
javax.portlet.PortletPreferences prefs,
com.liferay.portal.theme.ThemeDisplay themeDisplay)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException