@ProviderType
public class MBMessageServiceSoap
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 is difficult for SOAP to
support certain types.
ServiceBuilder follows certain rules in translating the methods. For example,
if the method in the service utility returns a List
, that
is translated to an array of MBMessageSoap
.
If the method in the service utility returns a
MBMessage
, that is translated to a
MBMessageSoap
. Methods that SOAP cannot
safely wire are skipped.
The benefits of using the SOAP utility is that it is cross platform compatible. SOAP allows different languages like Java, .NET, C++, PHP, and even Perl, to call the generated services. One drawback of SOAP is that it is slow because it needs to serialize all calls into a text format (XML).
You can see a list of services at http://localhost:8080/api/axis. Set the property axis.servlet.hosts.allowed in portal.properties to configure security.
The SOAP utility is only generated for remote services.
MBMessageServiceHttp
,
MBMessageSoap
,
MBMessageServiceUtil
Constructor and Description |
---|
MBMessageServiceSoap() |
Modifier and Type | Method and Description |
---|---|
static com.liferay.message.boards.kernel.model.MBMessageSoap |
addDiscussionMessage(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.MBMessageSoap |
addMessage(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.MBMessageSoap |
addMessage(long categoryId,
String subject,
String body,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static com.liferay.message.boards.kernel.model.MBMessageSoap |
addMessage(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 |
deleteDiscussionMessage(long messageId) |
static 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) |
static void |
deleteMessage(long messageId) |
static void |
deleteMessageAttachment(long messageId,
String fileName) |
static void |
deleteMessageAttachments(long messageId) |
static void |
emptyMessageAttachments(long messageId) |
static com.liferay.message.boards.kernel.model.MBMessageSoap[] |
getCategoryMessages(long groupId,
long categoryId,
int status,
int start,
int end) |
static int |
getCategoryMessagesCount(long groupId,
long categoryId,
int status) |
static int |
getGroupMessagesCount(long groupId,
int status) |
static com.liferay.message.boards.kernel.model.MBMessageSoap |
getMessage(long messageId) |
static int |
getThreadAnswersCount(long groupId,
long categoryId,
long threadId) |
static com.liferay.message.boards.kernel.model.MBMessageSoap[] |
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 void |
restoreMessageAttachmentFromTrash(long messageId,
String fileName) |
static void |
subscribeMessage(long messageId) |
static void |
unsubscribeMessage(long messageId) |
static void |
updateAnswer(long messageId,
boolean answer,
boolean cascade) |
static com.liferay.message.boards.kernel.model.MBMessageSoap |
updateDiscussionMessage(String className,
long classPK,
long messageId,
String subject,
String body,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static com.liferay.message.boards.kernel.model.MBMessageSoap |
updateMessage(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.MBMessageSoap addDiscussionMessage(long groupId, String className, long classPK, long threadId, long parentMessageId, String subject, String body, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws RemoteException
RemoteException
public static com.liferay.message.boards.kernel.model.MBMessageSoap addMessage(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 RemoteException
RemoteException
public static com.liferay.message.boards.kernel.model.MBMessageSoap addMessage(long categoryId, String subject, String body, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws RemoteException
RemoteException
public static com.liferay.message.boards.kernel.model.MBMessageSoap addMessage(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 RemoteException
RemoteException
public static void deleteDiscussionMessage(long messageId) throws RemoteException
RemoteException
@Deprecated public static void deleteDiscussionMessage(long groupId, String className, long classPK, String permissionClassName, long permissionClassPK, long permissionOwnerId, long messageId) throws RemoteException
deleteDiscussionMessage(long)
RemoteException
public static void deleteMessage(long messageId) throws RemoteException
RemoteException
public static void deleteMessageAttachment(long messageId, String fileName) throws RemoteException
RemoteException
public static void deleteMessageAttachments(long messageId) throws RemoteException
RemoteException
public static void emptyMessageAttachments(long messageId) throws RemoteException
RemoteException
public static com.liferay.message.boards.kernel.model.MBMessageSoap[] getCategoryMessages(long groupId, long categoryId, int status, int start, int end) throws RemoteException
RemoteException
public static int getCategoryMessagesCount(long groupId, long categoryId, int status) throws RemoteException
RemoteException
public static int getGroupMessagesCount(long groupId, int status) throws RemoteException
RemoteException
public static com.liferay.message.boards.kernel.model.MBMessageSoap getMessage(long messageId) throws RemoteException
RemoteException
public static int getThreadAnswersCount(long groupId, long categoryId, long threadId) throws RemoteException
RemoteException
public static com.liferay.message.boards.kernel.model.MBMessageSoap[] getThreadMessages(long groupId, long categoryId, long threadId, int status, int start, int end) throws RemoteException
RemoteException
public static int getThreadMessagesCount(long groupId, long categoryId, long threadId, int status) throws RemoteException
RemoteException
public static void restoreMessageAttachmentFromTrash(long messageId, String fileName) throws RemoteException
RemoteException
public static void subscribeMessage(long messageId) throws RemoteException
RemoteException
public static void unsubscribeMessage(long messageId) throws RemoteException
RemoteException
public static void updateAnswer(long messageId, boolean answer, boolean cascade) throws RemoteException
RemoteException
public static com.liferay.message.boards.kernel.model.MBMessageSoap updateDiscussionMessage(String className, long classPK, long messageId, String subject, String body, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws RemoteException
RemoteException
public static com.liferay.message.boards.kernel.model.MBMessageSoap updateMessage(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 RemoteException
RemoteException