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 WikiPageaddPage(long nodeId, String title, String content, String summary, boolean minorEdit, com.liferay.portal.kernel.service.ServiceContext serviceContext) static WikiPageaddPage(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 WikiPageaddPage(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 WikiPageaddPage(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.FileEntryaddPageAttachment(long nodeId, String title, String fileName, File file, String mimeType) static com.liferay.portal.kernel.repository.model.FileEntryaddPageAttachment(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.FileEntryaddTempFileEntry(long nodeId, String folderName, String fileName, InputStream inputStream, String mimeType) static voidchangeParent(long nodeId, String title, String newParentTitle, com.liferay.portal.kernel.service.ServiceContext serviceContext) static voidcopyPageAttachments(long templateNodeId, String templateTitle, long nodeId, String title) static voiddeletePage(long nodeId, String title) static voiddeletePageAttachment(long nodeId, String title, String fileName) static voiddeletePageAttachments(long nodeId, String title) static voiddeleteTempFileEntry(long nodeId, String folderName, String fileName) static voiddeleteTrashPageAttachments(long nodeId, String title) static voiddiscardDraft(long nodeId, String title, double version) static WikiPagefetchLatestPageByExternalReferenceCode(long groupId, String externalReferenceCode) Returns the latest wiki page matching the group and the external reference codestatic WikiPagegetChildren(long groupId, long nodeId, boolean head, String parentTitle) static WikiPagegetDraftPage(long nodeId, String title) static WikiPagegetLatestPageByExternalReferenceCode(long groupId, String externalReferenceCode) Returns the latest wiki page matching the group and the external reference codegetNodePages(long nodeId, int max) static StringgetNodePagesRSS(long nodeId, int max, String type, double version, String displayStyle, String feedURL, String entryURL, String attachmentURLPrefix) getOrphans(WikiNode node) static StringReturns the OSGi service identifier.static WikiPagegetPage(long pageId) static WikiPagestatic WikiPagestatic WikiPagestatic WikiPagestatic WikiPagegetPageByPageId(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 intgetPagesCount(long groupId, long nodeId, boolean head) static intgetPagesCount(long groupId, long nodeId, boolean head, long userId, boolean includeOwner, int status) static intgetPagesCount(long groupId, long userId, long nodeId, int status) static StringgetPagesRSS(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 intgetRecentChangesCount(long groupId, long nodeId) static WikiPageServicestatic String[]getTempFileNames(long nodeId, String folderName) static com.liferay.portal.kernel.repository.model.FileEntrymovePageAttachmentToTrash(long nodeId, String title, String fileName) static WikiPagemovePageToTrash(long nodeId, String title) static WikiPagemovePageToTrash(long nodeId, String title, double version) static voidrenamePage(long nodeId, String title, String newTitle, com.liferay.portal.kernel.service.ServiceContext serviceContext) static voidrestorePageAttachmentFromTrash(long nodeId, String title, String fileName) static voidrestorePageFromTrash(long resourcePrimKey) static WikiPagerevertPage(long nodeId, String title, double version, com.liferay.portal.kernel.service.ServiceContext serviceContext) static voidsubscribePage(long nodeId, String title) static voidunsubscribePage(long nodeId, String title) static WikiPageupdatePage(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
nullif 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)