Liferay 6.0.5

com.liferay.portlet.wiki.service.impl
Class WikiPageLocalServiceImpl

java.lang.Object
  extended by com.liferay.portlet.wiki.service.base.WikiPageLocalServiceBaseImpl
      extended by com.liferay.portlet.wiki.service.impl.WikiPageLocalServiceImpl
All Implemented Interfaces:
WikiPageLocalService

public class WikiPageLocalServiceImpl
extends WikiPageLocalServiceBaseImpl


Field Summary
 
Fields inherited from class com.liferay.portlet.wiki.service.base.WikiPageLocalServiceBaseImpl
assetCategoryFinder, assetCategoryLocalService, assetCategoryPersistence, assetCategoryService, assetEntryFinder, assetEntryLocalService, assetEntryPersistence, assetEntryService, assetTagFinder, assetTagLocalService, assetTagPersistence, assetTagService, companyLocalService, companyPersistence, companyService, counterLocalService, dlLocalService, dlService, expandoValueLocalService, expandoValuePersistence, expandoValueService, groupFinder, groupLocalService, groupPersistence, groupService, mbMessageFinder, mbMessageLocalService, mbMessagePersistence, mbMessageService, portletPreferencesFinder, portletPreferencesLocalService, portletPreferencesPersistence, portletPreferencesService, resourceFinder, resourceLocalService, resourcePersistence, resourceService, socialActivityFinder, socialActivityLocalService, socialActivityPersistence, socialEquityLogLocalService, socialEquityLogPersistence, subscriptionLocalService, subscriptionPersistence, userFinder, userLocalService, userPersistence, userService, wikiNodeLocalService, wikiNodePersistence, wikiNodeService, wikiPageFinder, wikiPageLocalService, wikiPagePersistence, wikiPageResourceLocalService, wikiPageResourcePersistence, wikiPageService, workflowInstanceLinkLocalService, workflowInstanceLinkPersistence
 
Constructor Summary
WikiPageLocalServiceImpl()
           
 
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 companyId, String dirName, Date modifiedDate, String fileName, InputStream inputStream)
           
 void addPageAttachments(long nodeId, String title, List<ObjectValuePair<String,byte[]>> files)
           
 void addPageResources(long nodeId, String title, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addPageResources(long nodeId, String title, String[] communityPermissions, String[] guestPermissions)
           
 void addPageResources(WikiPage page, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addPageResources(WikiPage page, String[] communityPermissions, String[] guestPermissions)
           
 void changeParent(long userId, long nodeId, String title, String newParentTitle, ServiceContext serviceContext)
           
protected  void clearPageCache(WikiPage page)
           
protected  void clearReferralsCache(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)
           
 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)
           
 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)
           
 int getRecentChangesCount(long nodeId)
           
 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  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)
           
 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, createWikiPage, deleteWikiPage, deleteWikiPage, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, getAssetCategoryFinder, getAssetCategoryLocalService, getAssetCategoryPersistence, getAssetCategoryService, getAssetEntryFinder, getAssetEntryLocalService, getAssetEntryPersistence, getAssetEntryService, getAssetTagFinder, getAssetTagLocalService, getAssetTagPersistence, getAssetTagService, getCompanyLocalService, getCompanyPersistence, getCompanyService, getCounterLocalService, getDLLocalService, getDLService, getExpandoValueLocalService, getExpandoValuePersistence, getExpandoValueService, getGroupFinder, getGroupLocalService, getGroupPersistence, getGroupService, getMBMessageFinder, getMBMessageLocalService, getMBMessagePersistence, getMBMessageService, getPortletPreferencesFinder, getPortletPreferencesLocalService, getPortletPreferencesPersistence, getPortletPreferencesService, getResourceFinder, getResourceLocalService, getResourcePersistence, getResourceService, getSocialActivityFinder, getSocialActivityLocalService, getSocialActivityPersistence, getSocialEquityLogLocalService, getSocialEquityLogPersistence, 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, setAssetTagFinder, setAssetTagLocalService, setAssetTagPersistence, setAssetTagService, setCompanyLocalService, setCompanyPersistence, setCompanyService, setCounterLocalService, setDLLocalService, setDLService, setExpandoValueLocalService, setExpandoValuePersistence, setExpandoValueService, setGroupFinder, setGroupLocalService, setGroupPersistence, setGroupService, setMBMessageFinder, setMBMessageLocalService, setMBMessagePersistence, setMBMessageService, setPortletPreferencesFinder, setPortletPreferencesLocalService, setPortletPreferencesPersistence, setPortletPreferencesService, setResourceFinder, setResourceLocalService, setResourcePersistence, setResourceService, setSocialActivityFinder, setSocialActivityLocalService, setSocialActivityPersistence, setSocialEquityLogLocalService, setSocialEquityLogPersistence, 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
 

Constructor Detail

WikiPageLocalServiceImpl

public WikiPageLocalServiceImpl()
Method Detail

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 companyId,
                              String dirName,
                              Date modifiedDate,
                              String fileName,
                              InputStream inputStream)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

addPageAttachments

public void addPageAttachments(long nodeId,
                               String title,
                               List<ObjectValuePair<String,byte[]>> files)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

addPageResources

public void addPageResources(long nodeId,
                             String title,
                             boolean addCommunityPermissions,
                             boolean addGuestPermissions)
                      throws PortalException,
                             SystemException
Throws:
PortalException
SystemException

addPageResources

public void addPageResources(long nodeId,
                             String title,
                             String[] communityPermissions,
                             String[] guestPermissions)
                      throws PortalException,
                             SystemException
Throws:
PortalException
SystemException

addPageResources

public void addPageResources(WikiPage page,
                             boolean addCommunityPermissions,
                             boolean addGuestPermissions)
                      throws PortalException,
                             SystemException
Throws:
PortalException
SystemException

addPageResources

public void addPageResources(WikiPage page,
                             String[] communityPermissions,
                             String[] guestPermissions)
                      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

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

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 SystemException
Throws:
SystemException

getRecentChangesCount

public int getRecentChangesCount(long nodeId)
                          throws SystemException
Throws:
SystemException

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)
                 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)

clearReferralsCache

protected void clearReferralsCache(WikiPage page)
                            throws PortalException,
                                   SystemException
Throws:
PortalException
SystemException

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

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

Liferay 6.0.5