public class WikiNodeServiceHttp
extends java.lang.Object
WikiNodeServiceUtil 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.
WikiNodeServiceSoap,
HttpPrincipal,
WikiNodeServiceUtil| Constructor and Description |
|---|
WikiNodeServiceHttp() |
| Modifier and Type | Method and Description |
|---|---|
static com.liferay.portlet.wiki.model.WikiNode |
addNode(HttpPrincipal httpPrincipal,
java.lang.String name,
java.lang.String description,
com.liferay.portal.service.ServiceContext serviceContext) |
static void |
deleteNode(HttpPrincipal httpPrincipal,
long nodeId) |
static com.liferay.portlet.wiki.model.WikiNode |
getNode(HttpPrincipal httpPrincipal,
long nodeId) |
static com.liferay.portlet.wiki.model.WikiNode |
getNode(HttpPrincipal httpPrincipal,
long groupId,
java.lang.String name) |
static java.util.List<com.liferay.portlet.wiki.model.WikiNode> |
getNodes(HttpPrincipal httpPrincipal,
long groupId) |
static java.util.List<com.liferay.portlet.wiki.model.WikiNode> |
getNodes(HttpPrincipal httpPrincipal,
long groupId,
int status) |
static java.util.List<com.liferay.portlet.wiki.model.WikiNode> |
getNodes(HttpPrincipal httpPrincipal,
long groupId,
int start,
int end) |
static java.util.List<com.liferay.portlet.wiki.model.WikiNode> |
getNodes(HttpPrincipal httpPrincipal,
long groupId,
int status,
int start,
int end) |
static int |
getNodesCount(HttpPrincipal httpPrincipal,
long groupId) |
static int |
getNodesCount(HttpPrincipal httpPrincipal,
long groupId,
int status) |
static void |
importPages(HttpPrincipal httpPrincipal,
long nodeId,
java.lang.String importer,
java.io.InputStream[] inputStreams,
java.util.Map<java.lang.String,java.lang.String[]> options) |
static com.liferay.portlet.wiki.model.WikiNode |
moveNodeToTrash(HttpPrincipal httpPrincipal,
long nodeId) |
static void |
restoreNodeFromTrash(HttpPrincipal httpPrincipal,
long nodeId) |
static void |
subscribeNode(HttpPrincipal httpPrincipal,
long nodeId) |
static void |
unsubscribeNode(HttpPrincipal httpPrincipal,
long nodeId) |
static com.liferay.portlet.wiki.model.WikiNode |
updateNode(HttpPrincipal httpPrincipal,
long nodeId,
java.lang.String name,
java.lang.String description,
com.liferay.portal.service.ServiceContext serviceContext) |
public static com.liferay.portlet.wiki.model.WikiNode addNode(HttpPrincipal httpPrincipal, java.lang.String name, java.lang.String description, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static void deleteNode(HttpPrincipal httpPrincipal, long nodeId) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static com.liferay.portlet.wiki.model.WikiNode getNode(HttpPrincipal httpPrincipal, long nodeId) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static com.liferay.portlet.wiki.model.WikiNode getNode(HttpPrincipal httpPrincipal, long groupId, java.lang.String name) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(HttpPrincipal httpPrincipal, long groupId) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(HttpPrincipal httpPrincipal, long groupId, int status) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(HttpPrincipal httpPrincipal, long groupId, int start, int end) throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic static java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(HttpPrincipal httpPrincipal, long groupId, int status, int start, int end) throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic static int getNodesCount(HttpPrincipal httpPrincipal, long groupId) throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic static int getNodesCount(HttpPrincipal httpPrincipal, long groupId, int status) throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic static void importPages(HttpPrincipal httpPrincipal, long nodeId, java.lang.String importer, java.io.InputStream[] inputStreams, java.util.Map<java.lang.String,java.lang.String[]> options) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static com.liferay.portlet.wiki.model.WikiNode moveNodeToTrash(HttpPrincipal httpPrincipal, long nodeId) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static void restoreNodeFromTrash(HttpPrincipal httpPrincipal, long nodeId) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static void subscribeNode(HttpPrincipal httpPrincipal, long nodeId) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static void unsubscribeNode(HttpPrincipal httpPrincipal, long nodeId) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static com.liferay.portlet.wiki.model.WikiNode updateNode(HttpPrincipal httpPrincipal, long nodeId, java.lang.String name, java.lang.String description, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemException