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

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

public class WikiPageLocalServiceImpl
extends WikiPageLocalServiceBaseImpl

View Source

Author:
Brian Wing Shun Chan

Constructor Summary
WikiPageLocalServiceImpl()
           
 
Method Summary
 com.liferay.portlet.wiki.model.WikiPage addPage(long userId, long nodeId, java.lang.String title)
           
 void addPageResources(long nodeId, java.lang.String title, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addPageResources(long nodeId, java.lang.String title, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 void addPageResources(com.liferay.portlet.wiki.model.WikiNode node, com.liferay.portlet.wiki.model.WikiPage page, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addPageResources(com.liferay.portlet.wiki.model.WikiNode node, com.liferay.portlet.wiki.model.WikiPage page, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 void deletePage(long nodeId, java.lang.String title)
           
 void deletePage(com.liferay.portlet.wiki.model.WikiPage page)
           
 void deletePages(long nodeId)
           
 java.util.List getLinks(long nodeId, java.lang.String title)
           
 java.util.List getOrphans(long nodeId)
           
 com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId, java.lang.String title)
           
 com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId, java.lang.String title, double version)
           
 java.util.List getPages(long nodeId, boolean head, int begin, int end)
           
 java.util.List getPages(long nodeId, int begin, int end)
           
 java.util.List getPages(long nodeId, java.lang.String title, boolean head, int begin, int end)
           
 java.util.List getPages(long nodeId, java.lang.String title, int begin, int end)
           
 int getPagesCount(long nodeId)
           
 int getPagesCount(long nodeId, boolean head)
           
 int getPagesCount(long nodeId, java.lang.String title)
           
 int getPagesCount(long nodeId, java.lang.String title, boolean head)
           
 java.util.List getRecentChanges(long nodeId, int begin, int end)
           
 int getRecentChangesCount(long nodeId)
           
 com.liferay.portlet.wiki.model.WikiPage revertPage(long userId, long nodeId, java.lang.String title, double version)
           
protected  void updateAsset(com.liferay.portlet.wiki.model.WikiPage page, java.lang.String[] tagsEntries)
           
 com.liferay.portlet.wiki.model.WikiPage updatePage(long userId, long nodeId, java.lang.String title, java.lang.String content, java.lang.String format, java.lang.String[] tagsEntries)
           
protected  void validate(long nodeId, java.lang.String content, java.lang.String format)
           
protected  void validate(java.lang.String title)
           
 
Methods inherited from class com.liferay.portlet.wiki.service.base.WikiPageLocalServiceBaseImpl
addWikiPage, dynamicQuery, dynamicQuery, 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 com.liferay.portlet.wiki.model.WikiPage addPage(long userId,
                                                       long nodeId,
                                                       java.lang.String title)
                                                throws com.liferay.portal.PortalException,
                                                       com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addPageResources

public void addPageResources(long nodeId,
                             java.lang.String title,
                             boolean addCommunityPermissions,
                             boolean addGuestPermissions)
                      throws com.liferay.portal.PortalException,
                             com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addPageResources

public void addPageResources(com.liferay.portlet.wiki.model.WikiNode node,
                             com.liferay.portlet.wiki.model.WikiPage page,
                             boolean addCommunityPermissions,
                             boolean addGuestPermissions)
                      throws com.liferay.portal.PortalException,
                             com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addPageResources

public void addPageResources(long nodeId,
                             java.lang.String title,
                             java.lang.String[] communityPermissions,
                             java.lang.String[] guestPermissions)
                      throws com.liferay.portal.PortalException,
                             com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addPageResources

public void addPageResources(com.liferay.portlet.wiki.model.WikiNode node,
                             com.liferay.portlet.wiki.model.WikiPage page,
                             java.lang.String[] communityPermissions,
                             java.lang.String[] guestPermissions)
                      throws com.liferay.portal.PortalException,
                             com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deletePage

public void deletePage(long nodeId,
                       java.lang.String title)
                throws com.liferay.portal.PortalException,
                       com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deletePage

public void deletePage(com.liferay.portlet.wiki.model.WikiPage page)
                throws com.liferay.portal.PortalException,
                       com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deletePages

public void deletePages(long nodeId)
                 throws com.liferay.portal.PortalException,
                        com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getLinks

public java.util.List getLinks(long nodeId,
                               java.lang.String title)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getOrphans

public java.util.List getOrphans(long nodeId)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getPage

public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
                                                       java.lang.String title)
                                                throws com.liferay.portal.PortalException,
                                                       com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getPage

public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
                                                       java.lang.String title,
                                                       double version)
                                                throws com.liferay.portal.PortalException,
                                                       com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getPages

public java.util.List getPages(long nodeId,
                               int begin,
                               int end)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getPages

public java.util.List getPages(long nodeId,
                               java.lang.String title,
                               int begin,
                               int end)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getPages

public java.util.List getPages(long nodeId,
                               boolean head,
                               int begin,
                               int end)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getPages

public java.util.List getPages(long nodeId,
                               java.lang.String title,
                               boolean head,
                               int begin,
                               int end)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getPagesCount

public int getPagesCount(long nodeId)
                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getPagesCount

public int getPagesCount(long nodeId,
                         java.lang.String title)
                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getPagesCount

public int getPagesCount(long nodeId,
                         boolean head)
                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getPagesCount

public int getPagesCount(long nodeId,
                         java.lang.String title,
                         boolean head)
                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getRecentChanges

public java.util.List getRecentChanges(long nodeId,
                                       int begin,
                                       int end)
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getRecentChangesCount

public int getRecentChangesCount(long nodeId)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

revertPage

public com.liferay.portlet.wiki.model.WikiPage revertPage(long userId,
                                                          long nodeId,
                                                          java.lang.String title,
                                                          double version)
                                                   throws com.liferay.portal.PortalException,
                                                          com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updatePage

public com.liferay.portlet.wiki.model.WikiPage updatePage(long userId,
                                                          long nodeId,
                                                          java.lang.String title,
                                                          java.lang.String content,
                                                          java.lang.String format,
                                                          java.lang.String[] tagsEntries)
                                                   throws com.liferay.portal.PortalException,
                                                          com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateAsset

protected void updateAsset(com.liferay.portlet.wiki.model.WikiPage page,
                           java.lang.String[] tagsEntries)
                    throws com.liferay.portal.PortalException,
                           com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

validate

protected void validate(java.lang.String title)
                 throws com.liferay.portal.PortalException
Throws:
com.liferay.portal.PortalException

validate

protected void validate(long nodeId,
                        java.lang.String content,
                        java.lang.String format)
                 throws com.liferay.portal.PortalException
Throws:
com.liferay.portal.PortalException