@ProviderType
public class MBThreadServiceSoap
extends Object
MBThreadServiceUtil
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 MBThreadSoap
.
If the method in the service utility returns a
MBThread
, that is translated to a
MBThreadSoap
. 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.
MBThreadServiceHttp
,
MBThreadSoap
,
MBThreadServiceUtil
Constructor and Description |
---|
MBThreadServiceSoap() |
Modifier and Type | Method and Description |
---|---|
static void |
deleteThread(long threadId) |
static com.liferay.message.boards.kernel.model.MBThreadSoap[] |
getGroupThreads(long groupId,
long userId,
Date modifiedDate,
int status,
int start,
int end) |
static com.liferay.message.boards.kernel.model.MBThreadSoap[] |
getGroupThreads(long groupId,
long userId,
int status,
boolean subscribed,
boolean includeAnonymous,
int start,
int end) |
static com.liferay.message.boards.kernel.model.MBThreadSoap[] |
getGroupThreads(long groupId,
long userId,
int status,
boolean subscribed,
int start,
int end) |
static com.liferay.message.boards.kernel.model.MBThreadSoap[] |
getGroupThreads(long groupId,
long userId,
int status,
int start,
int end) |
static int |
getGroupThreadsCount(long groupId,
long userId,
Date modifiedDate,
int status) |
static int |
getGroupThreadsCount(long groupId,
long userId,
int status) |
static int |
getGroupThreadsCount(long groupId,
long userId,
int status,
boolean subscribed) |
static int |
getGroupThreadsCount(long groupId,
long userId,
int status,
boolean subscribed,
boolean includeAnonymous) |
static com.liferay.message.boards.kernel.model.MBThreadSoap[] |
getThreads(long groupId,
long categoryId,
int status,
int start,
int end) |
static int |
getThreadsCount(long groupId,
long categoryId,
int status) |
static com.liferay.portal.kernel.lock.Lock |
lockThread(long threadId) |
static com.liferay.message.boards.kernel.model.MBThreadSoap |
moveThread(long categoryId,
long threadId) |
static com.liferay.message.boards.kernel.model.MBThreadSoap |
moveThreadFromTrash(long categoryId,
long threadId) |
static com.liferay.message.boards.kernel.model.MBThreadSoap |
moveThreadToTrash(long threadId) |
static void |
restoreThreadFromTrash(long threadId) |
static com.liferay.message.boards.kernel.model.MBThreadSoap |
splitThread(long messageId,
String subject,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static void |
unlockThread(long threadId) |
public static void deleteThread(long threadId) throws RemoteException
RemoteException
public static com.liferay.message.boards.kernel.model.MBThreadSoap[] getGroupThreads(long groupId, long userId, Date modifiedDate, int status, int start, int end) throws RemoteException
RemoteException
public static com.liferay.message.boards.kernel.model.MBThreadSoap[] getGroupThreads(long groupId, long userId, int status, boolean subscribed, boolean includeAnonymous, int start, int end) throws RemoteException
RemoteException
public static com.liferay.message.boards.kernel.model.MBThreadSoap[] getGroupThreads(long groupId, long userId, int status, boolean subscribed, int start, int end) throws RemoteException
RemoteException
public static com.liferay.message.boards.kernel.model.MBThreadSoap[] getGroupThreads(long groupId, long userId, int status, int start, int end) throws RemoteException
RemoteException
public static int getGroupThreadsCount(long groupId, long userId, Date modifiedDate, int status) throws RemoteException
RemoteException
public static int getGroupThreadsCount(long groupId, long userId, int status) throws RemoteException
RemoteException
public static int getGroupThreadsCount(long groupId, long userId, int status, boolean subscribed) throws RemoteException
RemoteException
public static int getGroupThreadsCount(long groupId, long userId, int status, boolean subscribed, boolean includeAnonymous) throws RemoteException
RemoteException
public static com.liferay.message.boards.kernel.model.MBThreadSoap[] getThreads(long groupId, long categoryId, int status, int start, int end) throws RemoteException
RemoteException
public static int getThreadsCount(long groupId, long categoryId, int status) throws RemoteException
RemoteException
public static com.liferay.portal.kernel.lock.Lock lockThread(long threadId) throws RemoteException
RemoteException
public static com.liferay.message.boards.kernel.model.MBThreadSoap moveThread(long categoryId, long threadId) throws RemoteException
RemoteException
public static com.liferay.message.boards.kernel.model.MBThreadSoap moveThreadFromTrash(long categoryId, long threadId) throws RemoteException
RemoteException
public static com.liferay.message.boards.kernel.model.MBThreadSoap moveThreadToTrash(long threadId) throws RemoteException
RemoteException
public static void restoreThreadFromTrash(long threadId) throws RemoteException
RemoteException
public static com.liferay.message.boards.kernel.model.MBThreadSoap splitThread(long messageId, String subject, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws RemoteException
RemoteException
public static void unlockThread(long threadId) throws RemoteException
RemoteException