Package com.liferay.wiki.service
Class WikiPageServiceUtil
java.lang.Object
com.liferay.wiki.service.WikiPageServiceUtil
Provides the remote service utility for WikiPage. This utility wraps
com.liferay.wiki.service.impl.WikiPageServiceImpl
and is an
access point for service operations in application layer code running on a
remote server. Methods of this service are expected to have security checks
based on the propagated JAAS credentials because this service can be
accessed remotely.- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic WikiPage
addPage
(long nodeId, String title, String content, String summary, boolean minorEdit, com.liferay.portal.kernel.service.ServiceContext serviceContext) static WikiPage
addPage
(long nodeId, String title, String content, String summary, boolean minorEdit, String format, String parentTitle, String redirectTitle, com.liferay.portal.kernel.service.ServiceContext serviceContext) Deprecated.static WikiPage
addPage
(String externalReferenceCode, long nodeId, String title, double version, String content, String summary, boolean minorEdit, String format, boolean head, String parentTitle, String redirectTitle, com.liferay.portal.kernel.service.ServiceContext serviceContext) static WikiPage
addPage
(String externalReferenceCode, long nodeId, String title, String content, String summary, boolean minorEdit, String format, String parentTitle, String redirectTitle, com.liferay.portal.kernel.service.ServiceContext serviceContext) static com.liferay.portal.kernel.repository.model.FileEntry
addPageAttachment
(long nodeId, String title, String fileName, File file, String mimeType) static com.liferay.portal.kernel.repository.model.FileEntry
addPageAttachment
(long nodeId, String title, String fileName, InputStream inputStream, String mimeType) static List<com.liferay.portal.kernel.repository.model.FileEntry>
addPageAttachments
(long nodeId, String title, List<com.liferay.portal.kernel.util.ObjectValuePair<String, InputStream>> inputStreamOVPs) static com.liferay.portal.kernel.repository.model.FileEntry
addTempFileEntry
(long nodeId, String folderName, String fileName, InputStream inputStream, String mimeType) static void
changeParent
(long nodeId, String title, String newParentTitle, com.liferay.portal.kernel.service.ServiceContext serviceContext) static void
copyPageAttachments
(long templateNodeId, String templateTitle, long nodeId, String title) static void
deletePage
(long nodeId, String title) static void
deletePageAttachment
(long nodeId, String title, String fileName) static void
deletePageAttachments
(long nodeId, String title) static void
deleteTempFileEntry
(long nodeId, String folderName, String fileName) static void
deleteTrashPageAttachments
(long nodeId, String title) static void
discardDraft
(long nodeId, String title, double version) static WikiPage
fetchLatestPageByExternalReferenceCode
(long groupId, String externalReferenceCode) Returns the latest wiki page matching the group and the external reference codestatic WikiPage
getChildren
(long groupId, long nodeId, boolean head, String parentTitle) static WikiPage
getDraftPage
(long nodeId, String title) static WikiPage
getLatestPageByExternalReferenceCode
(long groupId, String externalReferenceCode) Returns the latest wiki page matching the group and the external reference codegetNodePages
(long nodeId, int max) static String
getNodePagesRSS
(long nodeId, int max, String type, double version, String displayStyle, String feedURL, String entryURL, String attachmentURLPrefix) getOrphans
(WikiNode node) static String
Returns the OSGi service identifier.static WikiPage
getPage
(long pageId) static WikiPage
static WikiPage
static WikiPage
static WikiPage
static WikiPage
getPageByPageId
(long pageId) getPages
(long groupId, long nodeId, boolean head, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<WikiPage> orderByComparator) getPages
(long groupId, long nodeId, boolean head, long userId, boolean includeOwner, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<WikiPage> orderByComparator) getPages
(long groupId, long userId, long nodeId, int status, int start, int end) static int
getPagesCount
(long groupId, long nodeId, boolean head) static int
getPagesCount
(long groupId, long nodeId, boolean head, long userId, boolean includeOwner, int status) static int
getPagesCount
(long groupId, long userId, long nodeId, int status) static String
getPagesRSS
(long nodeId, String title, int max, String type, double version, String displayStyle, String feedURL, String entryURL, String attachmentURLPrefix, Locale locale) getRecentChanges
(long groupId, long nodeId, int start, int end) static int
getRecentChangesCount
(long groupId, long nodeId) static WikiPageService
static String[]
getTempFileNames
(long nodeId, String folderName) static com.liferay.portal.kernel.repository.model.FileEntry
movePageAttachmentToTrash
(long nodeId, String title, String fileName) static WikiPage
movePageToTrash
(long nodeId, String title) static WikiPage
movePageToTrash
(long nodeId, String title, double version) static void
renamePage
(long nodeId, String title, String newTitle, com.liferay.portal.kernel.service.ServiceContext serviceContext) static void
restorePageAttachmentFromTrash
(long nodeId, String title, String fileName) static void
restorePageFromTrash
(long resourcePrimKey) static WikiPage
revertPage
(long nodeId, String title, double version, com.liferay.portal.kernel.service.ServiceContext serviceContext) static void
subscribePage
(long nodeId, String title) static void
unsubscribePage
(long nodeId, String title) static WikiPage
updatePage
(long nodeId, String title, double version, String content, String summary, boolean minorEdit, String format, String parentTitle, String redirectTitle, com.liferay.portal.kernel.service.ServiceContext serviceContext)
-
Constructor Details
-
WikiPageServiceUtil
public WikiPageServiceUtil()
-
-
Method Details
-
addPage
public static WikiPage addPage(long nodeId, String title, String content, String summary, boolean minorEdit, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addPage
@Deprecated public static WikiPage addPage(long nodeId, String title, String content, String summary, boolean minorEdit, String format, String parentTitle, String redirectTitle, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException Deprecated.As of Cavanaugh (7.4.x), replaced byaddPage(String, long, String, String, String, boolean, String, String, String, ServiceContext)
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addPage
public static WikiPage addPage(String externalReferenceCode, long nodeId, String title, double version, String content, String summary, boolean minorEdit, String format, boolean head, String parentTitle, String redirectTitle, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addPage
public static WikiPage addPage(String externalReferenceCode, long nodeId, String title, String content, String summary, boolean minorEdit, String format, String parentTitle, String redirectTitle, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addPageAttachment
public static com.liferay.portal.kernel.repository.model.FileEntry addPageAttachment(long nodeId, String title, String fileName, File file, String mimeType) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addPageAttachment
public static com.liferay.portal.kernel.repository.model.FileEntry addPageAttachment(long nodeId, String title, String fileName, InputStream inputStream, String mimeType) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addPageAttachments
public static List<com.liferay.portal.kernel.repository.model.FileEntry> addPageAttachments(long nodeId, String title, List<com.liferay.portal.kernel.util.ObjectValuePair<String, InputStream>> inputStreamOVPs) throws com.liferay.portal.kernel.exception.PortalException- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addTempFileEntry
public static com.liferay.portal.kernel.repository.model.FileEntry addTempFileEntry(long nodeId, String folderName, String fileName, InputStream inputStream, String mimeType) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
changeParent
public static void changeParent(long nodeId, String title, String newParentTitle, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
copyPageAttachments
public static void copyPageAttachments(long templateNodeId, String templateTitle, long nodeId, String title) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deletePage
public static void deletePage(long nodeId, String title) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deletePageAttachment
public static void deletePageAttachment(long nodeId, String title, String fileName) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deletePageAttachments
public static void deletePageAttachments(long nodeId, String title) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteTempFileEntry
public static void deleteTempFileEntry(long nodeId, String folderName, String fileName) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteTrashPageAttachments
public static void deleteTrashPageAttachments(long nodeId, String title) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
discardDraft
public static void discardDraft(long nodeId, String title, double version) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
fetchLatestPageByExternalReferenceCode
public static WikiPage fetchLatestPageByExternalReferenceCode(long groupId, String externalReferenceCode) throws com.liferay.portal.kernel.exception.PortalException Returns the latest wiki page matching the group and the external reference code- Parameters:
groupId
- the primary key of the groupexternalReferenceCode
- the wiki page's external reference code- Returns:
- the latest matching wiki page, or
null
if no matching wiki page could be found - Throws:
com.liferay.portal.kernel.exception.PortalException
-
fetchPage
public static WikiPage fetchPage(long nodeId, String title, double version) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getChildren
public static List<WikiPage> getChildren(long groupId, long nodeId, boolean head, String parentTitle) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getDraftPage
public static WikiPage getDraftPage(long nodeId, String title) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getLatestPageByExternalReferenceCode
public static WikiPage getLatestPageByExternalReferenceCode(long groupId, String externalReferenceCode) throws com.liferay.portal.kernel.exception.PortalException Returns the latest wiki page matching the group and the external reference code- Parameters:
groupId
- the primary key of the groupexternalReferenceCode
- the wiki page's external reference code- Returns:
- the latest matching wiki page
- Throws:
com.liferay.portal.kernel.exception.PortalException
- if a portal exception occurred
-
getNodePages
public static List<WikiPage> getNodePages(long nodeId, int max) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getNodePagesRSS
public static String getNodePagesRSS(long nodeId, int max, String type, double version, String displayStyle, String feedURL, String entryURL, String attachmentURLPrefix) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getOrphans
public static List<WikiPage> getOrphans(WikiNode node) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Returns:
- the OSGi service identifier
-
getPage
public static WikiPage getPage(long pageId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getPage
public static WikiPage getPage(long groupId, long nodeId, String title) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getPage
public static WikiPage getPage(long nodeId, String title) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getPage
public static WikiPage getPage(long nodeId, String title, Boolean head) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getPage
public static WikiPage getPage(long nodeId, String title, double version) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getPageByPageId
public static WikiPage getPageByPageId(long pageId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getPages
public static List<WikiPage> getPages(long groupId, long nodeId, boolean head, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<WikiPage> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getPages
public static List<WikiPage> getPages(long groupId, long nodeId, boolean head, long userId, boolean includeOwner, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<WikiPage> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getPages
public static List<WikiPage> getPages(long groupId, long userId, long nodeId, int status, int start, int end) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getPagesCount
public static int getPagesCount(long groupId, long nodeId, boolean head) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getPagesCount
public static int getPagesCount(long groupId, long nodeId, boolean head, long userId, boolean includeOwner, int status) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getPagesCount
public static int getPagesCount(long groupId, long userId, long nodeId, int status) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getPagesRSS
public static String getPagesRSS(long nodeId, String title, int max, String type, double version, String displayStyle, String feedURL, String entryURL, String attachmentURLPrefix, Locale locale) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getRecentChanges
public static List<WikiPage> getRecentChanges(long groupId, long nodeId, int start, int end) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getRecentChangesCount
public static int getRecentChangesCount(long groupId, long nodeId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getTempFileNames
public static String[] getTempFileNames(long nodeId, String folderName) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
movePageAttachmentToTrash
public static com.liferay.portal.kernel.repository.model.FileEntry movePageAttachmentToTrash(long nodeId, String title, String fileName) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
movePageToTrash
public static WikiPage movePageToTrash(long nodeId, String title) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
movePageToTrash
public static WikiPage movePageToTrash(long nodeId, String title, double version) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
renamePage
public static void renamePage(long nodeId, String title, String newTitle, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
restorePageAttachmentFromTrash
public static void restorePageAttachmentFromTrash(long nodeId, String title, String fileName) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
restorePageFromTrash
public static void restorePageFromTrash(long resourcePrimKey) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
revertPage
public static WikiPage revertPage(long nodeId, String title, double version, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
subscribePage
public static void subscribePage(long nodeId, String title) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
unsubscribePage
public static void unsubscribePage(long nodeId, String title) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updatePage
public static WikiPage updatePage(long nodeId, String title, double version, String content, String summary, boolean minorEdit, String format, String parentTitle, String redirectTitle, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getService
-
addPage(String, long, String, String, String, boolean, String, String, String, ServiceContext)