com.liferay.portlet.wiki.service.impl
Class WikiPageLocalServiceImpl
java.lang.Object
com.liferay.portal.service.BaseLocalServiceImpl
com.liferay.portlet.wiki.service.base.WikiPageLocalServiceBaseImpl
com.liferay.portlet.wiki.service.impl.WikiPageLocalServiceImpl
- All Implemented Interfaces:
- IdentifiableBean, BaseLocalService, PersistedModelLocalService, WikiPageLocalService
public class WikiPageLocalServiceImpl
- extends WikiPageLocalServiceBaseImpl
Fields inherited from class com.liferay.portlet.wiki.service.base.WikiPageLocalServiceBaseImpl |
assetCategoryFinder, assetCategoryLocalService, assetCategoryPersistence, assetCategoryService, assetEntryFinder, assetEntryLocalService, assetEntryPersistence, assetEntryService, assetLinkLocalService, assetLinkPersistence, assetTagFinder, assetTagLocalService, assetTagPersistence, assetTagService, companyLocalService, companyPersistence, companyService, counterLocalService, expandoValueLocalService, expandoValuePersistence, expandoValueService, groupFinder, groupLocalService, groupPersistence, groupService, mbMessageFinder, mbMessageLocalService, mbMessagePersistence, mbMessageService, persistedModelLocalServiceRegistry, portletPreferencesFinder, portletPreferencesLocalService, portletPreferencesPersistence, portletPreferencesService, resourceFinder, resourceLocalService, resourcePersistence, resourceService, socialActivityFinder, socialActivityLocalService, socialActivityPersistence, subscriptionLocalService, subscriptionPersistence, userFinder, userLocalService, userPersistence, userService, wikiNodeLocalService, wikiNodePersistence, wikiNodeService, wikiPageFinder, wikiPageLocalService, wikiPagePersistence, wikiPageResourceLocalService, wikiPageResourcePersistence, wikiPageService, workflowInstanceLinkLocalService, workflowInstanceLinkPersistence |
Method Summary |
WikiPage |
addPage(long userId,
long nodeId,
String title,
double version,
String content,
String summary,
boolean minorEdit,
String format,
boolean head,
String parentTitle,
String redirectTitle,
ServiceContext serviceContext)
|
WikiPage |
addPage(long userId,
long nodeId,
String title,
String content,
String summary,
boolean minorEdit,
ServiceContext serviceContext)
|
void |
addPageAttachment(long userId,
long nodeId,
String title,
String fileName,
File file)
|
void |
addPageAttachment(long userId,
long nodeId,
String title,
String fileName,
InputStream inputStream)
|
void |
addPageAttachment(long companyId,
String dirName,
Date modifiedDate,
String fileName,
InputStream inputStream)
|
void |
addPageAttachments(long userId,
long nodeId,
String title,
List<ObjectValuePair<String,InputStream>> inputStreams)
|
void |
addPageResources(long nodeId,
String title,
boolean addGroupPermissions,
boolean addGuestPermissions)
|
void |
addPageResources(long nodeId,
String title,
String[] groupPermissions,
String[] guestPermissions)
|
void |
addPageResources(WikiPage page,
boolean addGroupPermissions,
boolean addGuestPermissions)
|
void |
addPageResources(WikiPage page,
String[] groupPermissions,
String[] guestPermissions)
|
String |
addTempPageAttachment(long userId,
String fileName,
String tempFolderName,
InputStream inputStream)
|
void |
changeParent(long userId,
long nodeId,
String title,
String newParentTitle,
ServiceContext serviceContext)
|
protected void |
clearPageCache(WikiPage page)
|
void |
deletePage(long nodeId,
String title)
|
void |
deletePage(long nodeId,
String title,
double version)
|
void |
deletePage(WikiPage page)
|
void |
deletePageAttachment(long nodeId,
String title,
String fileName)
|
void |
deletePages(long nodeId)
|
void |
deleteTempPageAttachment(long userId,
String fileName,
String tempFolderName)
|
List<WikiPage> |
getChildren(long nodeId,
boolean head,
String parentTitle)
|
WikiPage |
getDraftPage(long nodeId,
String title)
|
List<WikiPage> |
getIncomingLinks(long nodeId,
String title)
|
List<WikiPage> |
getNoAssetPages()
|
List<WikiPage> |
getOrphans(long nodeId)
|
List<WikiPage> |
getOutgoingLinks(long nodeId,
String title)
|
WikiPage |
getPage(long resourcePrimKey)
|
WikiPage |
getPage(long resourcePrimKey,
Boolean head)
|
WikiPage |
getPage(long nodeId,
String title)
|
WikiPage |
getPage(long nodeId,
String title,
Boolean head)
|
WikiPage |
getPage(long nodeId,
String title,
double version)
|
WikiPage |
getPageByPageId(long pageId)
|
WikiPageDisplay |
getPageDisplay(long nodeId,
String title,
PortletURL viewPageURL,
PortletURL editPageURL,
String attachmentURLPrefix)
|
WikiPageDisplay |
getPageDisplay(WikiPage page,
PortletURL viewPageURL,
PortletURL editPageURL,
String attachmentURLPrefix)
|
List<WikiPage> |
getPages(long nodeId,
boolean head,
int start,
int end)
|
List<WikiPage> |
getPages(long nodeId,
boolean head,
int start,
int end,
OrderByComparator obc)
|
List<WikiPage> |
getPages(long nodeId,
int start,
int end)
|
List<WikiPage> |
getPages(long nodeId,
int start,
int end,
OrderByComparator obc)
|
List<WikiPage> |
getPages(long resourcePrimKey,
long nodeId,
int status)
|
List<WikiPage> |
getPages(long userId,
long nodeId,
int status,
int start,
int end)
|
List<WikiPage> |
getPages(long nodeId,
String title,
boolean head,
int start,
int end)
|
List<WikiPage> |
getPages(long nodeId,
String title,
int start,
int end)
|
List<WikiPage> |
getPages(long nodeId,
String title,
int start,
int end,
OrderByComparator obc)
|
List<WikiPage> |
getPages(String format)
|
int |
getPagesCount(long nodeId)
|
int |
getPagesCount(long nodeId,
boolean head)
|
int |
getPagesCount(long userId,
long nodeId,
int status)
|
int |
getPagesCount(long nodeId,
String title)
|
int |
getPagesCount(long nodeId,
String title,
boolean head)
|
int |
getPagesCount(String format)
|
protected String |
getParentPageTitle(WikiPage page)
|
protected WikiPage |
getPreviousVersionPage(WikiPage page)
|
List<WikiPage> |
getRecentChanges(long nodeId,
int start,
int end)
Deprecated. getRecentChanges(long, long, int, int) |
List<WikiPage> |
getRecentChanges(long groupId,
long nodeId,
int start,
int end)
|
int |
getRecentChangesCount(long nodeId)
Deprecated. getRecentChangesCount(long, long) |
int |
getRecentChangesCount(long groupId,
long nodeId)
|
String[] |
getTempPageAttachmentNames(long userId,
String tempFolderName)
|
boolean |
hasDraftPage(long nodeId,
String title)
|
protected boolean |
isLinkedTo(WikiPage page,
String targetTitle)
|
protected boolean |
isUsedTitle(long nodeId,
String title)
|
void |
movePage(long userId,
long nodeId,
String title,
String newTitle,
boolean strict,
ServiceContext serviceContext)
|
void |
movePage(long userId,
long nodeId,
String title,
String newTitle,
ServiceContext serviceContext)
|
protected void |
notifySubscribers(WikiNode node,
WikiPage page,
ServiceContext serviceContext,
boolean update)
|
protected void |
populateServiceContext(ServiceContext serviceContext,
WikiPage page)
|
protected String |
replaceStyles(String html)
|
WikiPage |
revertPage(long userId,
long nodeId,
String title,
double version,
ServiceContext serviceContext)
|
void |
subscribePage(long userId,
long nodeId,
String title)
|
void |
unsubscribePage(long userId,
long nodeId,
String title)
|
void |
updateAsset(long userId,
WikiPage page,
long[] assetCategoryIds,
String[] assetTagNames,
long[] assetLinkEntryIds)
|
WikiPage |
updatePage(long userId,
long nodeId,
String title,
double version,
String content,
String summary,
boolean minorEdit,
String format,
String parentTitle,
String redirectTitle,
ServiceContext serviceContext)
|
WikiPage |
updateStatus(long userId,
long resourcePrimKey,
int status,
ServiceContext serviceContext)
|
WikiPage |
updateStatus(long userId,
WikiPage page,
int status,
ServiceContext serviceContext)
|
protected void |
validate(long nodeId,
String content,
String format)
|
protected void |
validate(String title,
long nodeId,
String content,
String format)
|
void |
validateTitle(String title)
|
Methods inherited from class com.liferay.portlet.wiki.service.base.WikiPageLocalServiceBaseImpl |
addWikiPage, afterPropertiesSet, createWikiPage, deleteWikiPage, deleteWikiPage, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, fetchWikiPage, getAssetCategoryFinder, getAssetCategoryLocalService, getAssetCategoryPersistence, getAssetCategoryService, getAssetEntryFinder, getAssetEntryLocalService, getAssetEntryPersistence, getAssetEntryService, getAssetLinkLocalService, getAssetLinkPersistence, getAssetTagFinder, getAssetTagLocalService, getAssetTagPersistence, getAssetTagService, getBeanIdentifier, getCompanyLocalService, getCompanyPersistence, getCompanyService, getCounterLocalService, getExpandoValueLocalService, getExpandoValuePersistence, getExpandoValueService, getGroupFinder, getGroupLocalService, getGroupPersistence, getGroupService, getMBMessageFinder, getMBMessageLocalService, getMBMessagePersistence, getMBMessageService, getModelClass, getModelClassName, getPersistedModel, getPortletPreferencesFinder, getPortletPreferencesLocalService, getPortletPreferencesPersistence, getPortletPreferencesService, getResourceFinder, getResourceLocalService, getResourcePersistence, getResourceService, getSocialActivityFinder, getSocialActivityLocalService, getSocialActivityPersistence, getSubscriptionLocalService, getSubscriptionPersistence, getUserFinder, getUserLocalService, getUserPersistence, getUserService, getWikiNodeLocalService, getWikiNodePersistence, getWikiNodeService, getWikiPage, getWikiPageByUuidAndGroupId, getWikiPageFinder, getWikiPageLocalService, getWikiPagePersistence, getWikiPageResourceLocalService, getWikiPageResourcePersistence, getWikiPages, getWikiPagesCount, getWikiPageService, getWorkflowInstanceLinkLocalService, getWorkflowInstanceLinkPersistence, runSQL, setAssetCategoryFinder, setAssetCategoryLocalService, setAssetCategoryPersistence, setAssetCategoryService, setAssetEntryFinder, setAssetEntryLocalService, setAssetEntryPersistence, setAssetEntryService, setAssetLinkLocalService, setAssetLinkPersistence, setAssetTagFinder, setAssetTagLocalService, setAssetTagPersistence, setAssetTagService, setBeanIdentifier, setCompanyLocalService, setCompanyPersistence, setCompanyService, setCounterLocalService, setExpandoValueLocalService, setExpandoValuePersistence, setExpandoValueService, setGroupFinder, setGroupLocalService, setGroupPersistence, setGroupService, setMBMessageFinder, setMBMessageLocalService, setMBMessagePersistence, setMBMessageService, setPortletPreferencesFinder, setPortletPreferencesLocalService, setPortletPreferencesPersistence, setPortletPreferencesService, setResourceFinder, setResourceLocalService, setResourcePersistence, setResourceService, setSocialActivityFinder, setSocialActivityLocalService, setSocialActivityPersistence, setSubscriptionLocalService, setSubscriptionPersistence, setUserFinder, setUserLocalService, setUserPersistence, setUserService, setWikiNodeLocalService, setWikiNodePersistence, setWikiNodeService, setWikiPageFinder, setWikiPageLocalService, setWikiPagePersistence, setWikiPageResourceLocalService, setWikiPageResourcePersistence, setWikiPageService, setWorkflowInstanceLinkLocalService, setWorkflowInstanceLinkPersistence, updateWikiPage, updateWikiPage |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WikiPageLocalServiceImpl
public WikiPageLocalServiceImpl()
addPage
public WikiPage addPage(long userId,
long nodeId,
String title,
double version,
String content,
String summary,
boolean minorEdit,
String format,
boolean head,
String parentTitle,
String redirectTitle,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addPage
public WikiPage addPage(long userId,
long nodeId,
String title,
String content,
String summary,
boolean minorEdit,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addPageAttachment
public void addPageAttachment(long userId,
long nodeId,
String title,
String fileName,
File file)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addPageAttachment
public void addPageAttachment(long userId,
long nodeId,
String title,
String fileName,
InputStream inputStream)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addPageAttachment
public void addPageAttachment(long companyId,
String dirName,
Date modifiedDate,
String fileName,
InputStream inputStream)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addPageAttachments
public void addPageAttachments(long userId,
long nodeId,
String title,
List<ObjectValuePair<String,InputStream>> inputStreams)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addPageResources
public void addPageResources(long nodeId,
String title,
boolean addGroupPermissions,
boolean addGuestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addPageResources
public void addPageResources(long nodeId,
String title,
String[] groupPermissions,
String[] guestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addPageResources
public void addPageResources(WikiPage page,
boolean addGroupPermissions,
boolean addGuestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addPageResources
public void addPageResources(WikiPage page,
String[] groupPermissions,
String[] guestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addTempPageAttachment
public String addTempPageAttachment(long userId,
String fileName,
String tempFolderName,
InputStream inputStream)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
changeParent
public void changeParent(long userId,
long nodeId,
String title,
String newParentTitle,
ServiceContext serviceContext)
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
- Throws:
PortalException
SystemException
deletePage
public void deletePage(WikiPage page)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deletePageAttachment
public void deletePageAttachment(long nodeId,
String title,
String fileName)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deletePages
public void deletePages(long nodeId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteTempPageAttachment
public void deleteTempPageAttachment(long userId,
String fileName,
String tempFolderName)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getChildren
public List<WikiPage> getChildren(long nodeId,
boolean head,
String parentTitle)
throws SystemException
- Throws:
SystemException
getDraftPage
public WikiPage getDraftPage(long nodeId,
String title)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getIncomingLinks
public List<WikiPage> getIncomingLinks(long nodeId,
String title)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getNoAssetPages
public List<WikiPage> getNoAssetPages()
throws SystemException
- Throws:
SystemException
getOrphans
public List<WikiPage> getOrphans(long nodeId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getOutgoingLinks
public List<WikiPage> getOutgoingLinks(long nodeId,
String title)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getPage
public WikiPage getPage(long resourcePrimKey)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getPage
public WikiPage getPage(long resourcePrimKey,
Boolean head)
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
getPageByPageId
public WikiPage getPageByPageId(long pageId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getPageDisplay
public WikiPageDisplay getPageDisplay(long nodeId,
String title,
PortletURL viewPageURL,
PortletURL editPageURL,
String attachmentURLPrefix)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getPageDisplay
public WikiPageDisplay getPageDisplay(WikiPage page,
PortletURL viewPageURL,
PortletURL editPageURL,
String attachmentURLPrefix)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getPages
public List<WikiPage> getPages(long nodeId,
boolean head,
int start,
int end)
throws SystemException
- Throws:
SystemException
getPages
public List<WikiPage> getPages(long nodeId,
boolean head,
int start,
int end,
OrderByComparator obc)
throws SystemException
- Throws:
SystemException
getPages
public List<WikiPage> getPages(long nodeId,
int start,
int end)
throws SystemException
- Throws:
SystemException
getPages
public List<WikiPage> getPages(long nodeId,
int start,
int end,
OrderByComparator obc)
throws SystemException
- Throws:
SystemException
getPages
public List<WikiPage> getPages(long resourcePrimKey,
long nodeId,
int status)
throws SystemException
- Throws:
SystemException
getPages
public List<WikiPage> getPages(long userId,
long nodeId,
int status,
int start,
int end)
throws SystemException
- Throws:
SystemException
getPages
public List<WikiPage> getPages(long nodeId,
String title,
boolean head,
int start,
int end)
throws SystemException
- Throws:
SystemException
getPages
public List<WikiPage> getPages(long nodeId,
String title,
int start,
int end)
throws SystemException
- Throws:
SystemException
getPages
public List<WikiPage> getPages(long nodeId,
String title,
int start,
int end,
OrderByComparator obc)
throws SystemException
- Throws:
SystemException
getPages
public List<WikiPage> getPages(String format)
throws SystemException
- Throws:
SystemException
getPagesCount
public int getPagesCount(long nodeId)
throws SystemException
- Throws:
SystemException
getPagesCount
public int getPagesCount(long nodeId,
boolean head)
throws SystemException
- Throws:
SystemException
getPagesCount
public int getPagesCount(long userId,
long nodeId,
int status)
throws SystemException
- Throws:
SystemException
getPagesCount
public int getPagesCount(long nodeId,
String title)
throws SystemException
- Throws:
SystemException
getPagesCount
public int getPagesCount(long nodeId,
String title,
boolean head)
throws SystemException
- Throws:
SystemException
getPagesCount
public int getPagesCount(String format)
throws SystemException
- Throws:
SystemException
getRecentChanges
public List<WikiPage> getRecentChanges(long nodeId,
int start,
int end)
throws PortalException,
SystemException
- Deprecated.
getRecentChanges(long, long, int, int)
- Throws:
PortalException
SystemException
getRecentChanges
public List<WikiPage> getRecentChanges(long groupId,
long nodeId,
int start,
int end)
throws SystemException
- Throws:
SystemException
getRecentChangesCount
public int getRecentChangesCount(long nodeId)
throws PortalException,
SystemException
- Deprecated.
getRecentChangesCount(long, long)
- Throws:
PortalException
SystemException
getRecentChangesCount
public int getRecentChangesCount(long groupId,
long nodeId)
throws SystemException
- Throws:
SystemException
getTempPageAttachmentNames
public String[] getTempPageAttachmentNames(long userId,
String tempFolderName)
hasDraftPage
public boolean hasDraftPage(long nodeId,
String title)
throws SystemException
- Throws:
SystemException
movePage
public void movePage(long userId,
long nodeId,
String title,
String newTitle,
boolean strict,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
movePage
public void movePage(long userId,
long nodeId,
String title,
String newTitle,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
revertPage
public WikiPage revertPage(long userId,
long nodeId,
String title,
double version,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
subscribePage
public void subscribePage(long userId,
long nodeId,
String title)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
unsubscribePage
public void unsubscribePage(long userId,
long nodeId,
String title)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateAsset
public void updateAsset(long userId,
WikiPage page,
long[] assetCategoryIds,
String[] assetTagNames,
long[] assetLinkEntryIds)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updatePage
public WikiPage updatePage(long userId,
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
updateStatus
public WikiPage updateStatus(long userId,
long resourcePrimKey,
int status,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateStatus
public WikiPage updateStatus(long userId,
WikiPage page,
int status,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
validateTitle
public void validateTitle(String title)
throws PortalException
- Throws:
PortalException
clearPageCache
protected void clearPageCache(WikiPage page)
getParentPageTitle
protected String getParentPageTitle(WikiPage page)
getPreviousVersionPage
protected WikiPage getPreviousVersionPage(WikiPage page)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
isLinkedTo
protected boolean isLinkedTo(WikiPage page,
String targetTitle)
throws PortalException
- Throws:
PortalException
isUsedTitle
protected boolean isUsedTitle(long nodeId,
String title)
throws SystemException
- Throws:
SystemException
notifySubscribers
protected void notifySubscribers(WikiNode node,
WikiPage page,
ServiceContext serviceContext,
boolean update)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
populateServiceContext
protected void populateServiceContext(ServiceContext serviceContext,
WikiPage page)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
replaceStyles
protected String replaceStyles(String html)
validate
protected void validate(long nodeId,
String content,
String format)
throws PortalException
- Throws:
PortalException
validate
protected void validate(String title,
long nodeId,
String content,
String format)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException