com.liferay.portlet.wiki.service.impl
Class WikiPageServiceImpl
java.lang.Object
com.liferay.portal.service.BaseServiceImpl
com.liferay.portlet.wiki.service.base.WikiPageServiceBaseImpl
com.liferay.portlet.wiki.service.impl.WikiPageServiceImpl
- All Implemented Interfaces:
- IdentifiableBean, BaseService, WikiPageService
public class WikiPageServiceImpl
- extends WikiPageServiceBaseImpl
Provides the remote service for accessing, adding, deleting, moving,
subscription handling of, trash handling of, and updating wiki pages and wiki
page attachments. Its methods include permission checks.
Fields inherited from class com.liferay.portlet.wiki.service.base.WikiPageServiceBaseImpl |
assetCategoryFinder, assetCategoryLocalService, assetCategoryPersistence, assetCategoryService, assetEntryFinder, assetEntryLocalService, assetEntryPersistence, assetEntryService, assetLinkLocalService, assetLinkPersistence, assetTagFinder, assetTagLocalService, assetTagPersistence, assetTagService, companyLocalService, companyPersistence, companyService, counterLocalService, expandoRowLocalService, expandoRowPersistence, groupFinder, groupLocalService, groupPersistence, groupService, layoutFinder, layoutLocalService, layoutPersistence, layoutService, mbMessageFinder, mbMessageLocalService, mbMessagePersistence, mbMessageService, portletPreferencesFinder, portletPreferencesLocalService, portletPreferencesPersistence, portletPreferencesService, resourceLocalService, socialActivityFinder, socialActivityLocalService, socialActivityPersistence, socialActivityService, subscriptionLocalService, subscriptionPersistence, systemEventLocalService, systemEventPersistence, trashEntryLocalService, trashEntryPersistence, trashEntryService, trashVersionLocalService, trashVersionPersistence, userFinder, userLocalService, userPersistence, userService, wikiNodeLocalService, wikiNodePersistence, wikiNodeService, wikiPageFinder, wikiPageLocalService, wikiPagePersistence, wikiPageResourceLocalService, wikiPageResourcePersistence, wikiPageService, workflowInstanceLinkLocalService, workflowInstanceLinkPersistence |
Method Summary |
WikiPage |
addPage(long nodeId,
String title,
String content,
String summary,
boolean minorEdit,
ServiceContext serviceContext)
|
WikiPage |
addPage(long nodeId,
String title,
String content,
String summary,
boolean minorEdit,
String format,
String parentTitle,
String redirectTitle,
ServiceContext serviceContext)
|
void |
addPageAttachment(long nodeId,
String title,
String fileName,
File file,
String mimeType)
|
void |
addPageAttachment(long nodeId,
String title,
String fileName,
InputStream inputStream,
String mimeType)
|
void |
addPageAttachments(long nodeId,
String title,
List<ObjectValuePair<String,InputStream>> inputStreamOVPs)
|
void |
addTempPageAttachment(long nodeId,
String fileName,
String tempFolderName,
InputStream inputStream,
String mimeType)
|
void |
changeParent(long nodeId,
String title,
String newParentTitle,
ServiceContext serviceContext)
|
void |
copyPageAttachments(long templateNodeId,
String templateTitle,
long nodeId,
String title)
|
void |
deletePage(long nodeId,
String title)
|
void |
deletePage(long nodeId,
String title,
double version)
Deprecated. As of 6.2.0 replaced by discardDraft(long, String,
double) |
void |
deletePageAttachment(long nodeId,
String title,
String fileName)
|
void |
deletePageAttachments(long nodeId,
String title)
|
void |
deleteTempPageAttachment(long nodeId,
String fileName,
String tempFolderName)
|
void |
deleteTrashPageAttachments(long nodeId,
String title)
|
void |
discardDraft(long nodeId,
String title,
double version)
|
protected String |
exportToRSS(long companyId,
String name,
String description,
String type,
double version,
String displayStyle,
String feedURL,
String entryURL,
String attachmentURLPrefix,
List<WikiPage> pages,
boolean diff,
Locale locale)
|
List<WikiPage> |
getChildren(long groupId,
long nodeId,
boolean head,
String parentTitle)
|
WikiPage |
getDraftPage(long nodeId,
String title)
|
List<WikiPage> |
getNodePages(long nodeId,
int max)
|
String |
getNodePagesRSS(long nodeId,
int max,
String type,
double version,
String displayStyle,
String feedURL,
String entryURL)
Deprecated. As of 6.2.0, replaced by getNodePagesRSS(long, int,
String, double, String, String, String, String) |
String |
getNodePagesRSS(long nodeId,
int max,
String type,
double version,
String displayStyle,
String feedURL,
String entryURL,
String attachmentURLPrefix)
|
List<WikiPage> |
getOrphans(long groupId,
long nodeId)
|
WikiPage |
getPage(long groupId,
long nodeId,
String title)
|
WikiPage |
getPage(long nodeId,
String title)
|
WikiPage |
getPage(long nodeId,
String title,
Boolean head)
|
WikiPage |
getPage(long nodeId,
String title,
double version)
|
List<WikiPage> |
getPages(long groupId,
long nodeId,
boolean head,
int status,
int start,
int end,
OrderByComparator obc)
|
List<WikiPage> |
getPages(long groupId,
long nodeId,
boolean head,
long userId,
boolean includeOwner,
int status,
int start,
int end,
OrderByComparator obc)
|
List<WikiPage> |
getPages(long groupId,
long userId,
long nodeId,
int status,
int start,
int end)
|
int |
getPagesCount(long groupId,
long nodeId,
boolean head)
|
int |
getPagesCount(long groupId,
long nodeId,
boolean head,
long userId,
boolean includeOwner,
int status)
|
int |
getPagesCount(long groupId,
long userId,
long nodeId,
int status)
|
String |
getPagesRSS(long companyId,
long nodeId,
String title,
int max,
String type,
double version,
String displayStyle,
String feedURL,
String entryURL,
Locale locale)
Deprecated. As of 6.2.0, replaced by getPagesRSS(long, long,
String, int, String, double, String, String, String, String,
java.util.Locale) |
String |
getPagesRSS(long companyId,
long nodeId,
String title,
int max,
String type,
double version,
String displayStyle,
String feedURL,
String entryURL,
String attachmentURLPrefix,
Locale locale)
|
List<WikiPage> |
getRecentChanges(long groupId,
long nodeId,
int start,
int end)
|
int |
getRecentChangesCount(long groupId,
long nodeId)
|
String[] |
getTempPageAttachmentNames(long nodeId,
String tempFolderName)
|
void |
movePage(long nodeId,
String title,
String newTitle,
ServiceContext serviceContext)
|
FileEntry |
movePageAttachmentToTrash(long nodeId,
String title,
String fileName)
|
WikiPage |
movePageToTrash(long nodeId,
String title)
|
WikiPage |
movePageToTrash(long nodeId,
String title,
double version)
|
void |
restorePageAttachmentFromTrash(long nodeId,
String title,
String fileName)
|
void |
restorePageFromTrash(long resourcePrimKey)
|
WikiPage |
revertPage(long nodeId,
String title,
double version,
ServiceContext serviceContext)
|
void |
subscribePage(long nodeId,
String title)
|
void |
unsubscribePage(long nodeId,
String title)
|
WikiPage |
updatePage(long nodeId,
String title,
double version,
String content,
String summary,
boolean minorEdit,
String format,
String parentTitle,
String redirectTitle,
ServiceContext serviceContext)
|
Methods inherited from class com.liferay.portlet.wiki.service.base.WikiPageServiceBaseImpl |
afterPropertiesSet, destroy, getAssetCategoryFinder, getAssetCategoryLocalService, getAssetCategoryPersistence, getAssetCategoryService, getAssetEntryFinder, getAssetEntryLocalService, getAssetEntryPersistence, getAssetEntryService, getAssetLinkLocalService, getAssetLinkPersistence, getAssetTagFinder, getAssetTagLocalService, getAssetTagPersistence, getAssetTagService, getBeanIdentifier, getCompanyLocalService, getCompanyPersistence, getCompanyService, getCounterLocalService, getExpandoRowLocalService, getExpandoRowPersistence, getGroupFinder, getGroupLocalService, getGroupPersistence, getGroupService, getLayoutFinder, getLayoutLocalService, getLayoutPersistence, getLayoutService, getMBMessageFinder, getMBMessageLocalService, getMBMessagePersistence, getMBMessageService, getModelClass, getModelClassName, getPortletPreferencesFinder, getPortletPreferencesLocalService, getPortletPreferencesPersistence, getPortletPreferencesService, getResourceLocalService, getSocialActivityFinder, getSocialActivityLocalService, getSocialActivityPersistence, getSocialActivityService, getSubscriptionLocalService, getSubscriptionPersistence, getSystemEventLocalService, getSystemEventPersistence, getTrashEntryLocalService, getTrashEntryPersistence, getTrashEntryService, getTrashVersionLocalService, getTrashVersionPersistence, getUserFinder, getUserLocalService, getUserPersistence, getUserService, getWikiNodeLocalService, getWikiNodePersistence, getWikiNodeService, getWikiPageFinder, getWikiPageLocalService, getWikiPagePersistence, getWikiPageResourceLocalService, getWikiPageResourcePersistence, getWikiPageService, getWorkflowInstanceLinkLocalService, getWorkflowInstanceLinkPersistence, runSQL, setAssetCategoryFinder, setAssetCategoryLocalService, setAssetCategoryPersistence, setAssetCategoryService, setAssetEntryFinder, setAssetEntryLocalService, setAssetEntryPersistence, setAssetEntryService, setAssetLinkLocalService, setAssetLinkPersistence, setAssetTagFinder, setAssetTagLocalService, setAssetTagPersistence, setAssetTagService, setBeanIdentifier, setCompanyLocalService, setCompanyPersistence, setCompanyService, setCounterLocalService, setExpandoRowLocalService, setExpandoRowPersistence, setGroupFinder, setGroupLocalService, setGroupPersistence, setGroupService, setLayoutFinder, setLayoutLocalService, setLayoutPersistence, setLayoutService, setMBMessageFinder, setMBMessageLocalService, setMBMessagePersistence, setMBMessageService, setPortletPreferencesFinder, setPortletPreferencesLocalService, setPortletPreferencesPersistence, setPortletPreferencesService, setResourceLocalService, setSocialActivityFinder, setSocialActivityLocalService, setSocialActivityPersistence, setSocialActivityService, setSubscriptionLocalService, setSubscriptionPersistence, setSystemEventLocalService, setSystemEventPersistence, setTrashEntryLocalService, setTrashEntryPersistence, setTrashEntryService, setTrashVersionLocalService, setTrashVersionPersistence, setUserFinder, setUserLocalService, setUserPersistence, setUserService, setWikiNodeLocalService, setWikiNodePersistence, setWikiNodeService, setWikiPageFinder, setWikiPageLocalService, setWikiPagePersistence, setWikiPageResourceLocalService, setWikiPageResourcePersistence, setWikiPageService, setWorkflowInstanceLinkLocalService, setWorkflowInstanceLinkPersistence |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WikiPageServiceImpl
public WikiPageServiceImpl()
addPage
public WikiPage addPage(long nodeId,
String title,
String content,
String summary,
boolean minorEdit,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addPage
public WikiPage addPage(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 void addPageAttachment(long nodeId,
String title,
String fileName,
File file,
String mimeType)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addPageAttachment
public void addPageAttachment(long nodeId,
String title,
String fileName,
InputStream inputStream,
String mimeType)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addPageAttachments
public void addPageAttachments(long nodeId,
String title,
List<ObjectValuePair<String,InputStream>> inputStreamOVPs)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addTempPageAttachment
public void addTempPageAttachment(long nodeId,
String fileName,
String tempFolderName,
InputStream inputStream,
String mimeType)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
changeParent
public void changeParent(long nodeId,
String title,
String newParentTitle,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
copyPageAttachments
public void copyPageAttachments(long templateNodeId,
String templateTitle,
long nodeId,
String title)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deletePage
public void deletePage(long nodeId,
String title)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deletePage
public void deletePage(long nodeId,
String title,
double version)
throws PortalException,
SystemException
- Deprecated. As of 6.2.0 replaced by
discardDraft(long, String,
double)
- Throws:
PortalException
SystemException
deletePageAttachment
public void deletePageAttachment(long nodeId,
String title,
String fileName)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deletePageAttachments
public void deletePageAttachments(long nodeId,
String title)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteTempPageAttachment
public void deleteTempPageAttachment(long nodeId,
String fileName,
String tempFolderName)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteTrashPageAttachments
public void deleteTrashPageAttachments(long nodeId,
String title)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
discardDraft
public void discardDraft(long nodeId,
String title,
double version)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getChildren
public List<WikiPage> getChildren(long groupId,
long nodeId,
boolean head,
String parentTitle)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getDraftPage
public WikiPage getDraftPage(long nodeId,
String title)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getNodePages
public List<WikiPage> getNodePages(long nodeId,
int max)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getNodePagesRSS
public String getNodePagesRSS(long nodeId,
int max,
String type,
double version,
String displayStyle,
String feedURL,
String entryURL)
throws PortalException,
SystemException
- Deprecated. As of 6.2.0, replaced by
getNodePagesRSS(long, int,
String, double, String, String, String, String)
- Throws:
PortalException
SystemException
getNodePagesRSS
public String getNodePagesRSS(long nodeId,
int max,
String type,
double version,
String displayStyle,
String feedURL,
String entryURL,
String attachmentURLPrefix)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getOrphans
public List<WikiPage> getOrphans(long groupId,
long nodeId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getPage
public WikiPage getPage(long groupId,
long nodeId,
String title)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getPage
public WikiPage getPage(long nodeId,
String title)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getPage
public WikiPage getPage(long nodeId,
String title,
Boolean head)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getPage
public WikiPage getPage(long nodeId,
String title,
double version)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getPages
public List<WikiPage> getPages(long groupId,
long nodeId,
boolean head,
int status,
int start,
int end,
OrderByComparator obc)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getPages
public List<WikiPage> getPages(long groupId,
long nodeId,
boolean head,
long userId,
boolean includeOwner,
int status,
int start,
int end,
OrderByComparator obc)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getPages
public List<WikiPage> getPages(long groupId,
long userId,
long nodeId,
int status,
int start,
int end)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getPagesCount
public int getPagesCount(long groupId,
long nodeId,
boolean head)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getPagesCount
public int getPagesCount(long groupId,
long nodeId,
boolean head,
long userId,
boolean includeOwner,
int status)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getPagesCount
public int getPagesCount(long groupId,
long userId,
long nodeId,
int status)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getPagesRSS
public String getPagesRSS(long companyId,
long nodeId,
String title,
int max,
String type,
double version,
String displayStyle,
String feedURL,
String entryURL,
Locale locale)
throws PortalException,
SystemException
- Deprecated. As of 6.2.0, replaced by
getPagesRSS(long, long,
String, int, String, double, String, String, String, String,
java.util.Locale)
- Throws:
PortalException
SystemException
getPagesRSS
public String getPagesRSS(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 List<WikiPage> getRecentChanges(long groupId,
long nodeId,
int start,
int end)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getRecentChangesCount
public int getRecentChangesCount(long groupId,
long nodeId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getTempPageAttachmentNames
public String[] getTempPageAttachmentNames(long nodeId,
String tempFolderName)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
movePage
public void movePage(long nodeId,
String title,
String newTitle,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
movePageAttachmentToTrash
public FileEntry movePageAttachmentToTrash(long nodeId,
String title,
String fileName)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
movePageToTrash
public WikiPage movePageToTrash(long nodeId,
String title)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
movePageToTrash
public WikiPage movePageToTrash(long nodeId,
String title,
double version)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
restorePageAttachmentFromTrash
public void restorePageAttachmentFromTrash(long nodeId,
String title,
String fileName)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
restorePageFromTrash
public void restorePageFromTrash(long resourcePrimKey)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
revertPage
public WikiPage revertPage(long nodeId,
String title,
double version,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
subscribePage
public void subscribePage(long nodeId,
String title)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
unsubscribePage
public void unsubscribePage(long nodeId,
String title)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updatePage
public WikiPage updatePage(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
exportToRSS
protected String exportToRSS(long companyId,
String name,
String description,
String type,
double version,
String displayStyle,
String feedURL,
String entryURL,
String attachmentURLPrefix,
List<WikiPage> pages,
boolean diff,
Locale locale)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException