com.liferay.portlet.wiki.service.http
Class WikiPageServiceHttp
java.lang.Object
com.liferay.portlet.wiki.service.http.WikiPageServiceHttp
@ProviderType
public class WikiPageServiceHttp
- extends Object
Provides the 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,
String mimeType)
|
static void |
addPageAttachment(HttpPrincipal httpPrincipal,
long nodeId,
String title,
String fileName,
InputStream inputStream,
String mimeType)
|
static void |
addPageAttachments(HttpPrincipal httpPrincipal,
long nodeId,
String title,
List<ObjectValuePair<String,InputStream>> inputStreamOVPs)
|
static void |
addTempFileEntry(HttpPrincipal httpPrincipal,
long nodeId,
String folderName,
String fileName,
InputStream inputStream,
String mimeType)
|
static void |
addTempPageAttachment(HttpPrincipal httpPrincipal,
long nodeId,
String fileName,
String tempFolderName,
InputStream inputStream,
String mimeType)
|
static void |
changeNode(HttpPrincipal httpPrincipal,
long nodeId,
String title,
long newNodeId,
ServiceContext serviceContext)
|
static void |
changeParent(HttpPrincipal httpPrincipal,
long nodeId,
String title,
String newParentTitle,
ServiceContext serviceContext)
|
static void |
copyPageAttachments(HttpPrincipal httpPrincipal,
long templateNodeId,
String templateTitle,
long nodeId,
String title)
|
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 |
deletePageAttachments(HttpPrincipal httpPrincipal,
long nodeId,
String title)
|
static void |
deleteTempFileEntry(HttpPrincipal httpPrincipal,
long nodeId,
String folderName,
String fileName)
|
static void |
deleteTrashPageAttachments(HttpPrincipal httpPrincipal,
long nodeId,
String title)
|
static void |
discardDraft(HttpPrincipal httpPrincipal,
long nodeId,
String title,
double version)
|
static WikiPage |
fetchPage(HttpPrincipal httpPrincipal,
long nodeId,
String title,
double version)
|
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<WikiPage> 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[] |
getTempFileNames(HttpPrincipal httpPrincipal,
long nodeId,
String folderName)
|
static void |
movePage(HttpPrincipal httpPrincipal,
long nodeId,
String title,
String newTitle,
ServiceContext serviceContext)
|
static FileEntry |
movePageAttachmentToTrash(HttpPrincipal httpPrincipal,
long nodeId,
String title,
String fileName)
|
static WikiPage |
movePageToTrash(HttpPrincipal httpPrincipal,
long nodeId,
String title)
|
static WikiPage |
movePageToTrash(HttpPrincipal httpPrincipal,
long nodeId,
String title,
double version)
|
static void |
renamePage(HttpPrincipal httpPrincipal,
long nodeId,
String title,
String newTitle,
ServiceContext serviceContext)
|
static void |
restorePageAttachmentFromTrash(HttpPrincipal httpPrincipal,
long nodeId,
String title,
String fileName)
|
static void |
restorePageFromTrash(HttpPrincipal httpPrincipal,
long resourcePrimKey)
|
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
- Throws:
PortalException
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
- Throws:
PortalException
addPageAttachment
public static void addPageAttachment(HttpPrincipal httpPrincipal,
long nodeId,
String title,
String fileName,
File file,
String mimeType)
throws PortalException
- Throws:
PortalException
addPageAttachment
public static void addPageAttachment(HttpPrincipal httpPrincipal,
long nodeId,
String title,
String fileName,
InputStream inputStream,
String mimeType)
throws PortalException
- Throws:
PortalException
addPageAttachments
public static void addPageAttachments(HttpPrincipal httpPrincipal,
long nodeId,
String title,
List<ObjectValuePair<String,InputStream>> inputStreamOVPs)
throws PortalException
- Throws:
PortalException
addTempFileEntry
public static void addTempFileEntry(HttpPrincipal httpPrincipal,
long nodeId,
String folderName,
String fileName,
InputStream inputStream,
String mimeType)
throws PortalException
- Throws:
PortalException
addTempPageAttachment
public static void addTempPageAttachment(HttpPrincipal httpPrincipal,
long nodeId,
String fileName,
String tempFolderName,
InputStream inputStream,
String mimeType)
throws PortalException
- Throws:
PortalException
changeNode
public static void changeNode(HttpPrincipal httpPrincipal,
long nodeId,
String title,
long newNodeId,
ServiceContext serviceContext)
throws PortalException
- Throws:
PortalException
changeParent
public static void changeParent(HttpPrincipal httpPrincipal,
long nodeId,
String title,
String newParentTitle,
ServiceContext serviceContext)
throws PortalException
- Throws:
PortalException
copyPageAttachments
public static void copyPageAttachments(HttpPrincipal httpPrincipal,
long templateNodeId,
String templateTitle,
long nodeId,
String title)
throws PortalException
- Throws:
PortalException
deletePage
public static void deletePage(HttpPrincipal httpPrincipal,
long nodeId,
String title)
throws PortalException
- Throws:
PortalException
deletePage
public static void deletePage(HttpPrincipal httpPrincipal,
long nodeId,
String title,
double version)
throws PortalException
- Throws:
PortalException
deletePageAttachment
public static void deletePageAttachment(HttpPrincipal httpPrincipal,
long nodeId,
String title,
String fileName)
throws PortalException
- Throws:
PortalException
deletePageAttachments
public static void deletePageAttachments(HttpPrincipal httpPrincipal,
long nodeId,
String title)
throws PortalException
- Throws:
PortalException
deleteTempFileEntry
public static void deleteTempFileEntry(HttpPrincipal httpPrincipal,
long nodeId,
String folderName,
String fileName)
throws PortalException
- Throws:
PortalException
deleteTrashPageAttachments
public static void deleteTrashPageAttachments(HttpPrincipal httpPrincipal,
long nodeId,
String title)
throws PortalException
- Throws:
PortalException
discardDraft
public static void discardDraft(HttpPrincipal httpPrincipal,
long nodeId,
String title,
double version)
throws PortalException
- Throws:
PortalException
fetchPage
public static WikiPage fetchPage(HttpPrincipal httpPrincipal,
long nodeId,
String title,
double version)
throws PortalException
- Throws:
PortalException
getChildren
public static List<WikiPage> getChildren(HttpPrincipal httpPrincipal,
long groupId,
long nodeId,
boolean head,
String parentTitle)
throws PortalException
- Throws:
PortalException
getDraftPage
public static WikiPage getDraftPage(HttpPrincipal httpPrincipal,
long nodeId,
String title)
throws PortalException
- Throws:
PortalException
getNodePages
public static List<WikiPage> getNodePages(HttpPrincipal httpPrincipal,
long nodeId,
int max)
throws PortalException
- Throws:
PortalException
getNodePagesRSS
public static String getNodePagesRSS(HttpPrincipal httpPrincipal,
long nodeId,
int max,
String type,
double version,
String displayStyle,
String feedURL,
String entryURL)
throws PortalException
- Throws:
PortalException
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
- Throws:
PortalException
getOrphans
public static List<WikiPage> getOrphans(HttpPrincipal httpPrincipal,
long groupId,
long nodeId)
throws PortalException
- Throws:
PortalException
getPage
public static WikiPage getPage(HttpPrincipal httpPrincipal,
long groupId,
long nodeId,
String title)
throws PortalException
- Throws:
PortalException
getPage
public static WikiPage getPage(HttpPrincipal httpPrincipal,
long nodeId,
String title)
throws PortalException
- Throws:
PortalException
getPage
public static WikiPage getPage(HttpPrincipal httpPrincipal,
long nodeId,
String title,
Boolean head)
throws PortalException
- Throws:
PortalException
getPage
public static WikiPage getPage(HttpPrincipal httpPrincipal,
long nodeId,
String title,
double version)
throws PortalException
- Throws:
PortalException
getPages
public static List<WikiPage> getPages(HttpPrincipal httpPrincipal,
long groupId,
long nodeId,
boolean head,
int status,
int start,
int end,
OrderByComparator<WikiPage> obc)
throws PortalException
- Throws:
PortalException
getPages
public static List<WikiPage> getPages(HttpPrincipal httpPrincipal,
long groupId,
long userId,
long nodeId,
int status,
int start,
int end)
throws PortalException
- Throws:
PortalException
getPagesCount
public static int getPagesCount(HttpPrincipal httpPrincipal,
long groupId,
long nodeId,
boolean head)
throws PortalException
- Throws:
PortalException
getPagesCount
public static int getPagesCount(HttpPrincipal httpPrincipal,
long groupId,
long userId,
long nodeId,
int status)
throws PortalException
- Throws:
PortalException
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
- Throws:
PortalException
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
- Throws:
PortalException
getRecentChanges
public static List<WikiPage> getRecentChanges(HttpPrincipal httpPrincipal,
long groupId,
long nodeId,
int start,
int end)
throws PortalException
- Throws:
PortalException
getRecentChangesCount
public static int getRecentChangesCount(HttpPrincipal httpPrincipal,
long groupId,
long nodeId)
throws PortalException
- Throws:
PortalException
getTempFileNames
public static String[] getTempFileNames(HttpPrincipal httpPrincipal,
long nodeId,
String folderName)
throws PortalException
- Throws:
PortalException
movePage
public static void movePage(HttpPrincipal httpPrincipal,
long nodeId,
String title,
String newTitle,
ServiceContext serviceContext)
throws PortalException
- Throws:
PortalException
movePageAttachmentToTrash
public static FileEntry movePageAttachmentToTrash(HttpPrincipal httpPrincipal,
long nodeId,
String title,
String fileName)
throws PortalException
- Throws:
PortalException
movePageToTrash
public static WikiPage movePageToTrash(HttpPrincipal httpPrincipal,
long nodeId,
String title)
throws PortalException
- Throws:
PortalException
movePageToTrash
public static WikiPage movePageToTrash(HttpPrincipal httpPrincipal,
long nodeId,
String title,
double version)
throws PortalException
- Throws:
PortalException
renamePage
public static void renamePage(HttpPrincipal httpPrincipal,
long nodeId,
String title,
String newTitle,
ServiceContext serviceContext)
throws PortalException
- Throws:
PortalException
restorePageAttachmentFromTrash
public static void restorePageAttachmentFromTrash(HttpPrincipal httpPrincipal,
long nodeId,
String title,
String fileName)
throws PortalException
- Throws:
PortalException
restorePageFromTrash
public static void restorePageFromTrash(HttpPrincipal httpPrincipal,
long resourcePrimKey)
throws PortalException
- Throws:
PortalException
revertPage
public static WikiPage revertPage(HttpPrincipal httpPrincipal,
long nodeId,
String title,
double version,
ServiceContext serviceContext)
throws PortalException
- Throws:
PortalException
subscribePage
public static void subscribePage(HttpPrincipal httpPrincipal,
long nodeId,
String title)
throws PortalException
- Throws:
PortalException
unsubscribePage
public static void unsubscribePage(HttpPrincipal httpPrincipal,
long nodeId,
String title)
throws PortalException
- Throws:
PortalException
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
- Throws:
PortalException