Liferay 6.2-ce-ga5

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

java.lang.Object
  extended by com.liferay.portal.service.BaseLocalServiceImpl
      extended by com.liferay.portlet.wiki.service.base.WikiNodeLocalServiceBaseImpl
          extended by com.liferay.portlet.wiki.service.impl.WikiNodeLocalServiceImpl
All Implemented Interfaces:
IdentifiableBean, BaseLocalService, PersistedModelLocalService, WikiNodeLocalService

public class WikiNodeLocalServiceImpl
extends WikiNodeLocalServiceBaseImpl

Provides the local service for accessing, adding, deleting, importing, subscription handling of, trash handling of, and updating wiki nodes.


Field Summary
 
Fields inherited from class com.liferay.portlet.wiki.service.base.WikiNodeLocalServiceBaseImpl
assetEntryFinder, assetEntryLocalService, assetEntryPersistence, assetEntryService, counterLocalService, groupFinder, groupLocalService, groupPersistence, groupService, persistedModelLocalServiceRegistry, resourceLocalService, subscriptionLocalService, subscriptionPersistence, systemEventLocalService, systemEventPersistence, trashEntryLocalService, trashEntryPersistence, trashEntryService, trashVersionLocalService, trashVersionPersistence, userFinder, userLocalService, userPersistence, userService, wikiNodeLocalService, wikiNodePersistence, wikiNodeService, wikiPageFinder, wikiPageLocalService, wikiPagePersistence, wikiPageResourceLocalService, wikiPageResourcePersistence, wikiPageService, workflowInstanceLinkLocalService, workflowInstanceLinkPersistence
 
Fields inherited from class com.liferay.portal.service.BaseLocalServiceImpl
layoutPersistence
 
Constructor Summary
WikiNodeLocalServiceImpl()
           
 
Method Summary
protected  List<WikiNode> addDefaultNode(long groupId)
           
 WikiNode addDefaultNode(long userId, ServiceContext serviceContext)
           
 WikiNode addNode(long userId, String name, String description, ServiceContext serviceContext)
           
 void addNodeResources(long nodeId, boolean addGroupPermissions, boolean addGuestPermissions)
           
 void addNodeResources(long nodeId, String[] groupPermissions, String[] guestPermissions)
           
 void addNodeResources(WikiNode node, boolean addGroupPermissions, boolean addGuestPermissions)
           
 void addNodeResources(WikiNode node, String[] groupPermissions, String[] guestPermissions)
           
 void deleteNode(long nodeId)
           
 void deleteNode(WikiNode node)
           
 void deleteNodes(long groupId)
           
 WikiNode fetchNode(long groupId, String name)
           
 WikiNode fetchNodeByUuidAndGroupId(String uuid, long groupId)
           
 List<WikiNode> getCompanyNodes(long companyId, int start, int end)
           
 List<WikiNode> getCompanyNodes(long companyId, int status, int start, int end)
           
 int getCompanyNodesCount(long companyId)
           
 int getCompanyNodesCount(long companyId, int status)
           
 WikiNode getNode(long nodeId)
           
 WikiNode getNode(long groupId, String nodeName)
           
 List<WikiNode> getNodes(long groupId)
           
 List<WikiNode> getNodes(long groupId, int status)
           
 List<WikiNode> getNodes(long groupId, int start, int end)
           
 List<WikiNode> getNodes(long groupId, int status, int start, int end)
           
 int getNodesCount(long groupId)
           
 int getNodesCount(long groupId, int status)
           
protected  WikiImporter getWikiImporter(String importer)
           
 void importPages(long userId, long nodeId, String importer, InputStream[] inputStreams, Map<String,String[]> options)
           
protected  void moveDependentsToTrash(long nodeId, long trashEntryId)
           
 WikiNode moveNodeToTrash(long userId, long nodeId)
           
 WikiNode moveNodeToTrash(long userId, WikiNode node)
           
protected  void restoreDependentFromTrash(long nodeId, long trashEntryId)
           
 void restoreNodeFromTrash(long userId, WikiNode node)
           
 void subscribeNode(long userId, long nodeId)
           
 void unsubscribeNode(long userId, long nodeId)
           
 WikiNode updateNode(long nodeId, String name, String description, ServiceContext serviceContext)
           
 WikiNode updateStatus(long userId, WikiNode node, int status, ServiceContext serviceContext)
           
protected  void validate(long nodeId, long groupId, String name)
           
protected  void validate(long groupId, String name)
           
 
Methods inherited from class com.liferay.portlet.wiki.service.base.WikiNodeLocalServiceBaseImpl
addWikiNode, afterPropertiesSet, createWikiNode, deleteWikiNode, deleteWikiNode, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, fetchWikiNode, fetchWikiNodeByUuidAndCompanyId, fetchWikiNodeByUuidAndGroupId, getAssetEntryFinder, getAssetEntryLocalService, getAssetEntryPersistence, getAssetEntryService, getBeanIdentifier, getCounterLocalService, getGroupFinder, getGroupLocalService, getGroupPersistence, getGroupService, getModelClass, getModelClassName, getPersistedModel, getResourceLocalService, getSubscriptionLocalService, getSubscriptionPersistence, getSystemEventLocalService, getSystemEventPersistence, getTrashEntryLocalService, getTrashEntryPersistence, getTrashEntryService, getTrashVersionLocalService, getTrashVersionPersistence, getUserFinder, getUserLocalService, getUserPersistence, getUserService, getWikiNode, getWikiNodeByUuidAndCompanyId, getWikiNodeByUuidAndGroupId, getWikiNodeLocalService, getWikiNodePersistence, getWikiNodes, getWikiNodesCount, getWikiNodeService, getWikiPageFinder, getWikiPageLocalService, getWikiPagePersistence, getWikiPageResourceLocalService, getWikiPageResourcePersistence, getWikiPageService, getWorkflowInstanceLinkLocalService, getWorkflowInstanceLinkPersistence, runSQL, setAssetEntryFinder, setAssetEntryLocalService, setAssetEntryPersistence, setAssetEntryService, setBeanIdentifier, setCounterLocalService, setGroupFinder, setGroupLocalService, setGroupPersistence, setGroupService, setResourceLocalService, setSubscriptionLocalService, setSubscriptionPersistence, setSystemEventLocalService, setSystemEventPersistence, setTrashEntryLocalService, setTrashEntryPersistence, setTrashEntryService, setTrashVersionLocalService, setTrashVersionPersistence, setUserFinder, setUserLocalService, setUserPersistence, setUserService, setWikiNodeLocalService, setWikiNodePersistence, setWikiNodeService, setWikiPageFinder, setWikiPageLocalService, setWikiPagePersistence, setWikiPageResourceLocalService, setWikiPageResourcePersistence, setWikiPageService, setWorkflowInstanceLinkLocalService, setWorkflowInstanceLinkPersistence, updateWikiNode
 
Methods inherited from class com.liferay.portal.service.BaseLocalServiceImpl
getClassLoader, getLayoutURL, getLayoutURL
 
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

addDefaultNode

public WikiNode addDefaultNode(long userId,
                               ServiceContext serviceContext)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

addNode

public WikiNode addNode(long userId,
                        String name,
                        String description,
                        ServiceContext serviceContext)
                 throws PortalException,
                        SystemException
Throws:
PortalException
SystemException

addNodeResources

public void addNodeResources(long nodeId,
                             boolean addGroupPermissions,
                             boolean addGuestPermissions)
                      throws PortalException,
                             SystemException
Throws:
PortalException
SystemException

addNodeResources

public void addNodeResources(long nodeId,
                             String[] groupPermissions,
                             String[] guestPermissions)
                      throws PortalException,
                             SystemException
Throws:
PortalException
SystemException

addNodeResources

public void addNodeResources(WikiNode node,
                             boolean addGroupPermissions,
                             boolean addGuestPermissions)
                      throws PortalException,
                             SystemException
Throws:
PortalException
SystemException

addNodeResources

public void addNodeResources(WikiNode node,
                             String[] groupPermissions,
                             String[] guestPermissions)
                      throws PortalException,
                             SystemException
Throws:
PortalException
SystemException

deleteNode

public void deleteNode(long nodeId)
                throws PortalException,
                       SystemException
Throws:
PortalException
SystemException

deleteNode

@SystemEvent(action=1,
             type=1)
public void deleteNode(WikiNode node)
                throws PortalException,
                       SystemException
Throws:
PortalException
SystemException

deleteNodes

public void deleteNodes(long groupId)
                 throws PortalException,
                        SystemException
Throws:
PortalException
SystemException

fetchNode

public WikiNode fetchNode(long groupId,
                          String name)
                   throws SystemException
Throws:
SystemException

fetchNodeByUuidAndGroupId

public WikiNode fetchNodeByUuidAndGroupId(String uuid,
                                          long groupId)
                                   throws SystemException
Throws:
SystemException

getCompanyNodes

public List<WikiNode> getCompanyNodes(long companyId,
                                      int start,
                                      int end)
                               throws SystemException
Throws:
SystemException

getCompanyNodes

public List<WikiNode> getCompanyNodes(long companyId,
                                      int status,
                                      int start,
                                      int end)
                               throws SystemException
Throws:
SystemException

getCompanyNodesCount

public int getCompanyNodesCount(long companyId)
                         throws SystemException
Throws:
SystemException

getCompanyNodesCount

public int getCompanyNodesCount(long companyId,
                                int status)
                         throws SystemException
Throws:
SystemException

getNode

public WikiNode getNode(long nodeId)
                 throws PortalException,
                        SystemException
Throws:
PortalException
SystemException

getNode

public WikiNode getNode(long groupId,
                        String nodeName)
                 throws PortalException,
                        SystemException
Throws:
PortalException
SystemException

getNodes

public List<WikiNode> getNodes(long groupId)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

getNodes

public List<WikiNode> getNodes(long groupId,
                               int status)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

getNodes

public List<WikiNode> getNodes(long groupId,
                               int start,
                               int end)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

getNodes

public List<WikiNode> getNodes(long groupId,
                               int status,
                               int start,
                               int end)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

getNodesCount

public int getNodesCount(long groupId)
                  throws SystemException
Throws:
SystemException

getNodesCount

public int getNodesCount(long groupId,
                         int status)
                  throws SystemException
Throws:
SystemException

importPages

public void importPages(long userId,
                        long nodeId,
                        String importer,
                        InputStream[] inputStreams,
                        Map<String,String[]> options)
                 throws PortalException,
                        SystemException
Throws:
PortalException
SystemException

moveNodeToTrash

public WikiNode moveNodeToTrash(long userId,
                                long nodeId)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

moveNodeToTrash

public WikiNode moveNodeToTrash(long userId,
                                WikiNode node)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

restoreNodeFromTrash

public void restoreNodeFromTrash(long userId,
                                 WikiNode node)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

subscribeNode

public void subscribeNode(long userId,
                          long nodeId)
                   throws PortalException,
                          SystemException
Throws:
PortalException
SystemException

unsubscribeNode

public void unsubscribeNode(long userId,
                            long nodeId)
                     throws PortalException,
                            SystemException
Throws:
PortalException
SystemException

updateNode

public WikiNode updateNode(long nodeId,
                           String name,
                           String description,
                           ServiceContext serviceContext)
                    throws PortalException,
                           SystemException
Throws:
PortalException
SystemException

updateStatus

public WikiNode updateStatus(long userId,
                             WikiNode node,
                             int status,
                             ServiceContext serviceContext)
                      throws PortalException,
                             SystemException
Throws:
PortalException
SystemException

addDefaultNode

protected List<WikiNode> addDefaultNode(long groupId)
                                 throws PortalException,
                                        SystemException
Throws:
PortalException
SystemException

getWikiImporter

protected WikiImporter getWikiImporter(String importer)
                                throws SystemException
Throws:
SystemException

moveDependentsToTrash

protected void moveDependentsToTrash(long nodeId,
                                     long trashEntryId)
                              throws PortalException,
                                     SystemException
Throws:
PortalException
SystemException

restoreDependentFromTrash

protected void restoreDependentFromTrash(long nodeId,
                                         long trashEntryId)
                                  throws PortalException,
                                         SystemException
Throws:
PortalException
SystemException

validate

protected void validate(long nodeId,
                        long groupId,
                        String name)
                 throws PortalException,
                        SystemException
Throws:
PortalException
SystemException

validate

protected void validate(long groupId,
                        String name)
                 throws PortalException,
                        SystemException
Throws:
PortalException
SystemException

Liferay 6.2-ce-ga5