com.liferay.portlet.wiki.service
Interface WikiNodeLocalService


@Transactional(rollbackFor={com.liferay.portal.PortalException.class,com.liferay.portal.SystemException.class})
public interface WikiNodeLocalService

View Source

ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

This interface defines the service. The default implementation is com.liferay.portlet.wiki.service.impl.WikiNodeLocalServiceImpl. Modify methods in that class and rerun ServiceBuilder to populate this class and all other generated classes.

This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.

Author:
Brian Wing Shun Chan
See Also:
WikiNodeLocalServiceUtil

Method Summary
 WikiNode addNode(long userId, java.lang.String name, java.lang.String description, ServiceContext serviceContext)
           
 WikiNode addNode(java.lang.String uuid, long userId, java.lang.String name, java.lang.String description, ServiceContext serviceContext)
           
 void addNodeResources(long nodeId, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addNodeResources(long nodeId, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 void addNodeResources(WikiNode node, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addNodeResources(WikiNode node, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 WikiNode addWikiNode(WikiNode wikiNode)
           
 WikiNode createWikiNode(long nodeId)
           
 void deleteNode(long nodeId)
           
 void deleteNode(WikiNode node)
           
 void deleteNodes(long groupId)
           
 void deleteWikiNode(long nodeId)
           
 void deleteWikiNode(WikiNode wikiNode)
           
 java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
 java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
 WikiNode getNode(long nodeId)
           
 WikiNode getNode(long groupId, java.lang.String nodeName)
           
 java.util.List<WikiNode> getNodes(long groupId)
           
 java.util.List<WikiNode> getNodes(long groupId, int start, int end)
           
 int getNodesCount(long groupId)
           
 WikiNode getWikiNode(long nodeId)
           
 java.util.List<WikiNode> getWikiNodes(int start, int end)
           
 int getWikiNodesCount()
           
 void importPages(long userId, long nodeId, java.lang.String importer, java.io.File[] files, java.util.Map<java.lang.String,java.lang.String[]> options)
           
 void reIndex(java.lang.String[] ids)
           
 com.liferay.portal.kernel.search.Hits search(long companyId, long groupId, long userId, long[] nodeIds, java.lang.String keywords, int start, int end)
           
 void subscribeNode(long userId, long nodeId)
           
 void unsubscribeNode(long userId, long nodeId)
           
 WikiNode updateNode(long nodeId, java.lang.String name, java.lang.String description)
           
 WikiNode updateWikiNode(WikiNode wikiNode)
           
 

Method Detail

addWikiNode

WikiNode addWikiNode(WikiNode wikiNode)
                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

createWikiNode

WikiNode createWikiNode(long nodeId)

deleteWikiNode

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

deleteWikiNode

void deleteWikiNode(WikiNode wikiNode)
                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
                                              int start,
                                              int end)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getWikiNode

@Transactional(propagation=SUPPORTS,
               readOnly=true)
WikiNode getWikiNode(long nodeId)
                     throws com.liferay.portal.SystemException,
                            com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

getWikiNodes

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<WikiNode> getWikiNodes(int start,
                                                    int end)
                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getWikiNodesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getWikiNodesCount()
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateWikiNode

WikiNode updateWikiNode(WikiNode wikiNode)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

addNode

WikiNode addNode(long userId,
                 java.lang.String name,
                 java.lang.String description,
                 ServiceContext serviceContext)
                 throws com.liferay.portal.PortalException,
                        com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addNode

WikiNode addNode(java.lang.String uuid,
                 long userId,
                 java.lang.String name,
                 java.lang.String description,
                 ServiceContext serviceContext)
                 throws com.liferay.portal.PortalException,
                        com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addNodeResources

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

void addNodeResources(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

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

void addNodeResources(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

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

deleteNode

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

deleteNodes

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

getNode

@Transactional(propagation=SUPPORTS,
               readOnly=true)
WikiNode getNode(long nodeId)
                 throws com.liferay.portal.PortalException,
                        com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getNode

@Transactional(propagation=SUPPORTS,
               readOnly=true)
WikiNode getNode(long groupId,
                               java.lang.String nodeName)
                 throws com.liferay.portal.PortalException,
                        com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getNodes

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<WikiNode> getNodes(long groupId)
                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getNodes

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<WikiNode> getNodes(long groupId,
                                                int start,
                                                int end)
                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getNodesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getNodesCount(long groupId)
                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

importPages

void importPages(long userId,
                 long nodeId,
                 java.lang.String importer,
                 java.io.File[] files,
                 java.util.Map<java.lang.String,java.lang.String[]> options)
                 throws com.liferay.portal.PortalException,
                        com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

reIndex

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

search

@Transactional(propagation=SUPPORTS,
               readOnly=true)
com.liferay.portal.kernel.search.Hits search(long companyId,
                                                           long groupId,
                                                           long userId,
                                                           long[] nodeIds,
                                                           java.lang.String keywords,
                                                           int start,
                                                           int end)
                                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

subscribeNode

void subscribeNode(long userId,
                   long nodeId)
                   throws com.liferay.portal.PortalException,
                          com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

unsubscribeNode

void unsubscribeNode(long userId,
                     long nodeId)
                     throws com.liferay.portal.PortalException,
                            com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateNode

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