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

java.lang.Object
  extended bycom.liferay.portlet.wiki.service.base.WikiNodeLocalServiceBaseImpl
      extended bycom.liferay.portlet.wiki.service.impl.WikiNodeLocalServiceImpl
All Implemented Interfaces:
com.liferay.portlet.wiki.service.WikiNodeLocalService

public class WikiNodeLocalServiceImpl
extends WikiNodeLocalServiceBaseImpl

View Source

Author:
Brian Wing Shun Chan, Charles May

Constructor Summary
WikiNodeLocalServiceImpl()
           
 
Method Summary
 com.liferay.portlet.wiki.model.WikiNode addNode(long userId, long plid, java.lang.String name, java.lang.String description, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 com.liferay.portlet.wiki.model.WikiNode addNode(long userId, long plid, java.lang.String name, java.lang.String description, java.lang.Boolean addCommunityPermissions, java.lang.Boolean addGuestPermissions, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 com.liferay.portlet.wiki.model.WikiNode addNode(long userId, long plid, java.lang.String name, java.lang.String description, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 void addNodeResources(long nodeId, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addNodeResources(long nodeId, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 void addNodeResources(com.liferay.portlet.wiki.model.WikiNode node, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addNodeResources(com.liferay.portlet.wiki.model.WikiNode node, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 void deleteNode(long nodeId)
           
 void deleteNode(com.liferay.portlet.wiki.model.WikiNode node)
           
 void deleteNodes(long groupId)
           
 com.liferay.portlet.wiki.model.WikiNode getNode(long nodeId)
           
 java.util.List getNodes(long groupId)
           
 java.util.List getNodes(long groupId, int begin, int end)
           
 int getNodesCount(long groupId)
           
 void reIndex(java.lang.String[] ids)
           
 com.liferay.portal.kernel.search.Hits search(long companyId, long groupId, long[] nodeIds, java.lang.String keywords)
           
 com.liferay.portlet.wiki.model.WikiNode updateNode(long nodeId, java.lang.String name, java.lang.String description)
           
protected  void validate(java.lang.String name)
           
 
Methods inherited from class com.liferay.portlet.wiki.service.base.WikiNodeLocalServiceBaseImpl
addWikiNode, dynamicQuery, dynamicQuery, updateWikiNode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WikiNodeLocalServiceImpl

public WikiNodeLocalServiceImpl()
Method Detail

addNode

public com.liferay.portlet.wiki.model.WikiNode addNode(long userId,
                                                       long plid,
                                                       java.lang.String name,
                                                       java.lang.String description,
                                                       boolean addCommunityPermissions,
                                                       boolean addGuestPermissions)
                                                throws com.liferay.portal.PortalException,
                                                       com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addNode

public com.liferay.portlet.wiki.model.WikiNode addNode(long userId,
                                                       long plid,
                                                       java.lang.String name,
                                                       java.lang.String description,
                                                       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

addNode

public com.liferay.portlet.wiki.model.WikiNode addNode(long userId,
                                                       long plid,
                                                       java.lang.String name,
                                                       java.lang.String description,
                                                       java.lang.Boolean addCommunityPermissions,
                                                       java.lang.Boolean addGuestPermissions,
                                                       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

addNodeResources

public void addNodeResources(long nodeId,
                             boolean addCommunityPermissions,
                             boolean addGuestPermissions)
                      throws com.liferay.portal.PortalException,
                             com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addNodeResources

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

addNodeResources

public void addNodeResources(long nodeId,
                             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

addNodeResources

public void addNodeResources(com.liferay.portlet.wiki.model.WikiNode node,
                             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

deleteNode

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

deleteNode

public void deleteNode(com.liferay.portlet.wiki.model.WikiNode node)
                throws com.liferay.portal.PortalException,
                       com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteNodes

public void deleteNodes(long groupId)
                 throws com.liferay.portal.PortalException,
                        com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getNode

public com.liferay.portlet.wiki.model.WikiNode getNode(long nodeId)
                                                throws com.liferay.portal.PortalException,
                                                       com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getNodes

public java.util.List getNodes(long groupId)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getNodes

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

getNodesCount

public int getNodesCount(long groupId)
                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

reIndex

public void reIndex(java.lang.String[] ids)
             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

search

public com.liferay.portal.kernel.search.Hits search(long companyId,
                                                    long groupId,
                                                    long[] nodeIds,
                                                    java.lang.String keywords)
                                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateNode

public com.liferay.portlet.wiki.model.WikiNode updateNode(long nodeId,
                                                          java.lang.String name,
                                                          java.lang.String description)
                                                   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 name)
                 throws com.liferay.portal.PortalException
Throws:
com.liferay.portal.PortalException