com.liferay.portlet.wiki.service.http
Class WikiPageServiceHttp
java.lang.Object
com.liferay.portlet.wiki.service.http.WikiPageServiceHttp
public class WikiPageServiceHttp
- extends Object
This class provides a HTTP utility for the
WikiPageServiceUtil
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.
- See Also:
WikiPageServiceSoap
,
HttpPrincipal
,
WikiPageServiceUtil
- ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.
Method Summary |
static WikiPage |
addPage(HttpPrincipal httpPrincipal,
long nodeId,
String title,
String content,
String summary,
boolean minorEdit,
ServiceContext serviceContext)
|
static WikiPage |
addPage(HttpPrincipal httpPrincipal,
long nodeId,
String title,
String content,
String summary,
boolean minorEdit,
String format,
String parentTitle,
String redirectTitle,
ServiceContext serviceContext)
|
static void |
addPageAttachment(HttpPrincipal httpPrincipal,
long nodeId,
String title,
String fileName,
File file)
|
static void |
addPageAttachment(HttpPrincipal httpPrincipal,
long nodeId,
String title,
String fileName,
InputStream inputStream)
|
static void |
addPageAttachments(HttpPrincipal httpPrincipal,
long nodeId,
String title,
List<ObjectValuePair<String,InputStream>> inputStream)
|
static String |
addTempPageAttachment(HttpPrincipal httpPrincipal,
long nodeId,
String fileName,
String tempFolderName,
InputStream inputStream)
|
static void |
changeParent(HttpPrincipal httpPrincipal,
long nodeId,
String title,
String newParentTitle,
ServiceContext serviceContext)
|
static void |
deletePage(HttpPrincipal httpPrincipal,
long nodeId,
String title)
|
static void |
deletePage(HttpPrincipal httpPrincipal,
long nodeId,
String title,
double version)
|
static void |
deletePageAttachment(HttpPrincipal httpPrincipal,
long nodeId,
String title,
String fileName)
|
static void |
deleteTempPageAttachment(HttpPrincipal httpPrincipal,
long nodeId,
String fileName,
String tempFolderName)
|
static List<WikiPage> |
getChildren(HttpPrincipal httpPrincipal,
long groupId,
long nodeId,
boolean head,
String parentTitle)
|
static WikiPage |
getDraftPage(HttpPrincipal httpPrincipal,
long nodeId,
String title)
|
static List<WikiPage> |
getNodePages(HttpPrincipal httpPrincipal,
long nodeId,
int max)
|
static String |
getNodePagesRSS(HttpPrincipal httpPrincipal,
long nodeId,
int max,
String type,
double version,
String displayStyle,
String feedURL,
String entryURL)
|
static String |
getNodePagesRSS(HttpPrincipal httpPrincipal,
long nodeId,
int max,
String type,
double version,
String displayStyle,
String feedURL,
String entryURL,
String attachmentURLPrefix)
|
static List<WikiPage> |
getOrphans(HttpPrincipal httpPrincipal,
long groupId,
long nodeId)
|
static WikiPage |
getPage(HttpPrincipal httpPrincipal,
long groupId,
long nodeId,
String title)
|
static WikiPage |
getPage(HttpPrincipal httpPrincipal,
long nodeId,
String title)
|
static WikiPage |
getPage(HttpPrincipal httpPrincipal,
long nodeId,
String title,
Boolean head)
|
static WikiPage |
getPage(HttpPrincipal httpPrincipal,
long nodeId,
String title,
double version)
|
static List<WikiPage> |
getPages(HttpPrincipal httpPrincipal,
long groupId,
long nodeId,
boolean head,
int status,
int start,
int end,
OrderByComparator obc)
|
static List<WikiPage> |
getPages(HttpPrincipal httpPrincipal,
long groupId,
long userId,
long nodeId,
int status,
int start,
int end)
|
static int |
getPagesCount(HttpPrincipal httpPrincipal,
long groupId,
long nodeId,
boolean head)
|
static int |
getPagesCount(HttpPrincipal httpPrincipal,
long groupId,
long userId,
long nodeId,
int status)
|
static String |
getPagesRSS(HttpPrincipal httpPrincipal,
long companyId,
long nodeId,
String title,
int max,
String type,
double version,
String displayStyle,
String feedURL,
String entryURL,
Locale locale)
|
static String |
getPagesRSS(HttpPrincipal httpPrincipal,
long companyId,
long nodeId,
String title,
int max,
String type,
double version,
String displayStyle,
String feedURL,
String entryURL,
String attachmentURLPrefix,
Locale locale)
|
static List<WikiPage> |
getRecentChanges(HttpPrincipal httpPrincipal,
long groupId,
long nodeId,
int start,
int end)
|
static int |
getRecentChangesCount(HttpPrincipal httpPrincipal,
long groupId,
long nodeId)
|
static String[] |
getTempPageAttachmentNames(HttpPrincipal httpPrincipal,
long nodeId,
String tempFolderName)
|
static void |
movePage(HttpPrincipal httpPrincipal,
long nodeId,
String title,
String newTitle,
ServiceContext serviceContext)
|
static WikiPage |
revertPage(HttpPrincipal httpPrincipal,
long nodeId,
String title,
double version,
ServiceContext serviceContext)
|
static void |
subscribePage(HttpPrincipal httpPrincipal,
long nodeId,
String title)
|
static void |
unsubscribePage(HttpPrincipal httpPrincipal,
long nodeId,
String title)
|
static WikiPage |
updatePage(HttpPrincipal httpPrincipal,
long nodeId,
String title,
double version,
String content,
String summary,
boolean minorEdit,
String format,
String parentTitle,
String redirectTitle,
ServiceContext serviceContext)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WikiPageServiceHttp
public WikiPageServiceHttp()
addPage
public static WikiPage addPage(HttpPrincipal httpPrincipal,
long nodeId,
String title,
String content,
String summary,
boolean minorEdit,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addPage
public static WikiPage addPage(HttpPrincipal httpPrincipal,
long nodeId,
String title,
String content,
String summary,
boolean minorEdit,
String format,
String parentTitle,
String redirectTitle,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addPageAttachment
public static void addPageAttachment(HttpPrincipal httpPrincipal,
long nodeId,
String title,
String fileName,
File file)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addPageAttachment
public static void addPageAttachment(HttpPrincipal httpPrincipal,
long nodeId,
String title,
String fileName,
InputStream inputStream)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addPageAttachments
public static void addPageAttachments(HttpPrincipal httpPrincipal,
long nodeId,
String title,
List<ObjectValuePair<String,InputStream>> inputStream)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addTempPageAttachment
public static String addTempPageAttachment(HttpPrincipal httpPrincipal,
long nodeId,
String fileName,
String tempFolderName,
InputStream inputStream)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
changeParent
public static void changeParent(HttpPrincipal httpPrincipal,
long nodeId,
String title,
String newParentTitle,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deletePage
public static void deletePage(HttpPrincipal httpPrincipal,
long nodeId,
String title)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deletePage
public static void deletePage(HttpPrincipal httpPrincipal,
long nodeId,
String title,
double version)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deletePageAttachment
public static void deletePageAttachment(HttpPrincipal httpPrincipal,
long nodeId,
String title,
String fileName)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteTempPageAttachment
public static void deleteTempPageAttachment(HttpPrincipal httpPrincipal,
long nodeId,
String fileName,
String tempFolderName)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getChildren
public static List<WikiPage> getChildren(HttpPrincipal httpPrincipal,
long groupId,
long nodeId,
boolean head,
String parentTitle)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getDraftPage
public static WikiPage getDraftPage(HttpPrincipal httpPrincipal,
long nodeId,
String title)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getNodePages
public static List<WikiPage> getNodePages(HttpPrincipal httpPrincipal,
long nodeId,
int max)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getNodePagesRSS
public static String getNodePagesRSS(HttpPrincipal httpPrincipal,
long nodeId,
int max,
String type,
double version,
String displayStyle,
String feedURL,
String entryURL)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getNodePagesRSS
public static String getNodePagesRSS(HttpPrincipal httpPrincipal,
long nodeId,
int max,
String type,
double version,
String displayStyle,
String feedURL,
String entryURL,
String attachmentURLPrefix)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getOrphans
public static List<WikiPage> getOrphans(HttpPrincipal httpPrincipal,
long groupId,
long nodeId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getPage
public static WikiPage getPage(HttpPrincipal httpPrincipal,
long groupId,
long nodeId,
String title)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getPage
public static WikiPage getPage(HttpPrincipal httpPrincipal,
long nodeId,
String title)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getPage
public static WikiPage getPage(HttpPrincipal httpPrincipal,
long nodeId,
String title,
Boolean head)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getPage
public static WikiPage getPage(HttpPrincipal httpPrincipal,
long nodeId,
String title,
double version)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getPages
public static List<WikiPage> getPages(HttpPrincipal httpPrincipal,
long groupId,
long nodeId,
boolean head,
int status,
int start,
int end,
OrderByComparator obc)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getPages
public static List<WikiPage> getPages(HttpPrincipal httpPrincipal,
long groupId,
long userId,
long nodeId,
int status,
int start,
int end)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getPagesCount
public static int getPagesCount(HttpPrincipal httpPrincipal,
long groupId,
long nodeId,
boolean head)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getPagesCount
public static int getPagesCount(HttpPrincipal httpPrincipal,
long groupId,
long userId,
long nodeId,
int status)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getPagesRSS
public static String getPagesRSS(HttpPrincipal httpPrincipal,
long companyId,
long nodeId,
String title,
int max,
String type,
double version,
String displayStyle,
String feedURL,
String entryURL,
Locale locale)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getPagesRSS
public static String getPagesRSS(HttpPrincipal httpPrincipal,
long companyId,
long nodeId,
String title,
int max,
String type,
double version,
String displayStyle,
String feedURL,
String entryURL,
String attachmentURLPrefix,
Locale locale)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getRecentChanges
public static List<WikiPage> getRecentChanges(HttpPrincipal httpPrincipal,
long groupId,
long nodeId,
int start,
int end)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getRecentChangesCount
public static int getRecentChangesCount(HttpPrincipal httpPrincipal,
long groupId,
long nodeId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getTempPageAttachmentNames
public static String[] getTempPageAttachmentNames(HttpPrincipal httpPrincipal,
long nodeId,
String tempFolderName)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
movePage
public static void movePage(HttpPrincipal httpPrincipal,
long nodeId,
String title,
String newTitle,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
revertPage
public static WikiPage revertPage(HttpPrincipal httpPrincipal,
long nodeId,
String title,
double version,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
subscribePage
public static void subscribePage(HttpPrincipal httpPrincipal,
long nodeId,
String title)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
unsubscribePage
public static void unsubscribePage(HttpPrincipal httpPrincipal,
long nodeId,
String title)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updatePage
public static WikiPage updatePage(HttpPrincipal httpPrincipal,
long nodeId,
String title,
double version,
String content,
String summary,
boolean minorEdit,
String format,
String parentTitle,
String redirectTitle,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException