1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.wiki.service;
16  
17  import com.liferay.portal.kernel.annotation.Isolation;
18  import com.liferay.portal.kernel.annotation.Propagation;
19  import com.liferay.portal.kernel.annotation.Transactional;
20  import com.liferay.portal.kernel.exception.PortalException;
21  import com.liferay.portal.kernel.exception.SystemException;
22  
23  /**
24   * <a href="WikiNodeLocalService.java.html"><b><i>View Source</i></b></a>
25   *
26   * <p>
27   * ServiceBuilder generated this class. Modifications in this class will be
28   * overwritten the next time is generated.
29   * </p>
30   *
31   * <p>
32   * This interface defines the service. The default implementation is
33   * {@link
34   * com.liferay.portlet.wiki.service.impl.WikiNodeLocalServiceImpl}}.
35   * Modify methods in that class and rerun ServiceBuilder to populate this class
36   * and all other generated classes.
37   * </p>
38   *
39   * <p>
40   * 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.
41   * </p>
42   *
43   * @author    Brian Wing Shun Chan
44   * @see       WikiNodeLocalServiceUtil
45   * @generated
46   */
47  @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
48      PortalException.class, SystemException.class})
49  public interface WikiNodeLocalService {
50      public com.liferay.portlet.wiki.model.WikiNode addWikiNode(
51          com.liferay.portlet.wiki.model.WikiNode wikiNode)
52          throws com.liferay.portal.kernel.exception.SystemException;
53  
54      public com.liferay.portlet.wiki.model.WikiNode createWikiNode(long nodeId);
55  
56      public void deleteWikiNode(long nodeId)
57          throws com.liferay.portal.kernel.exception.PortalException,
58              com.liferay.portal.kernel.exception.SystemException;
59  
60      public void deleteWikiNode(com.liferay.portlet.wiki.model.WikiNode wikiNode)
61          throws com.liferay.portal.kernel.exception.SystemException;
62  
63      public java.util.List<Object> dynamicQuery(
64          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65          throws com.liferay.portal.kernel.exception.SystemException;
66  
67      public java.util.List<Object> dynamicQuery(
68          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
69          int end) throws com.liferay.portal.kernel.exception.SystemException;
70  
71      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
72      public com.liferay.portlet.wiki.model.WikiNode getWikiNode(long nodeId)
73          throws com.liferay.portal.kernel.exception.PortalException,
74              com.liferay.portal.kernel.exception.SystemException;
75  
76      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
77      public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getWikiNodes(
78          int start, int end)
79          throws com.liferay.portal.kernel.exception.SystemException;
80  
81      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
82      public int getWikiNodesCount()
83          throws com.liferay.portal.kernel.exception.SystemException;
84  
85      public com.liferay.portlet.wiki.model.WikiNode updateWikiNode(
86          com.liferay.portlet.wiki.model.WikiNode wikiNode)
87          throws com.liferay.portal.kernel.exception.SystemException;
88  
89      public com.liferay.portlet.wiki.model.WikiNode updateWikiNode(
90          com.liferay.portlet.wiki.model.WikiNode wikiNode, boolean merge)
91          throws com.liferay.portal.kernel.exception.SystemException;
92  
93      public com.liferay.portlet.wiki.model.WikiNode addNode(long userId,
94          java.lang.String name, java.lang.String description,
95          com.liferay.portal.service.ServiceContext serviceContext)
96          throws com.liferay.portal.kernel.exception.PortalException,
97              com.liferay.portal.kernel.exception.SystemException;
98  
99      public com.liferay.portlet.wiki.model.WikiNode addNode(
100         java.lang.String uuid, long userId, java.lang.String name,
101         java.lang.String description,
102         com.liferay.portal.service.ServiceContext serviceContext)
103         throws com.liferay.portal.kernel.exception.PortalException,
104             com.liferay.portal.kernel.exception.SystemException;
105 
106     public void addNodeResources(long nodeId, boolean addCommunityPermissions,
107         boolean addGuestPermissions)
108         throws com.liferay.portal.kernel.exception.PortalException,
109             com.liferay.portal.kernel.exception.SystemException;
110 
111     public void addNodeResources(com.liferay.portlet.wiki.model.WikiNode node,
112         boolean addCommunityPermissions, boolean addGuestPermissions)
113         throws com.liferay.portal.kernel.exception.PortalException,
114             com.liferay.portal.kernel.exception.SystemException;
115 
116     public void addNodeResources(long nodeId,
117         java.lang.String[] communityPermissions,
118         java.lang.String[] guestPermissions)
119         throws com.liferay.portal.kernel.exception.PortalException,
120             com.liferay.portal.kernel.exception.SystemException;
121 
122     public void addNodeResources(com.liferay.portlet.wiki.model.WikiNode node,
123         java.lang.String[] communityPermissions,
124         java.lang.String[] guestPermissions)
125         throws com.liferay.portal.kernel.exception.PortalException,
126             com.liferay.portal.kernel.exception.SystemException;
127 
128     public void deleteNode(long nodeId)
129         throws com.liferay.portal.kernel.exception.PortalException,
130             com.liferay.portal.kernel.exception.SystemException;
131 
132     public void deleteNode(com.liferay.portlet.wiki.model.WikiNode node)
133         throws com.liferay.portal.kernel.exception.PortalException,
134             com.liferay.portal.kernel.exception.SystemException;
135 
136     public void deleteNodes(long groupId)
137         throws com.liferay.portal.kernel.exception.PortalException,
138             com.liferay.portal.kernel.exception.SystemException;
139 
140     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
141     public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getCompanyNodes(
142         long companyId, int start, int end)
143         throws com.liferay.portal.kernel.exception.SystemException;
144 
145     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
146     public int getCompanyNodesCount(long companyId)
147         throws com.liferay.portal.kernel.exception.SystemException;
148 
149     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
150     public com.liferay.portlet.wiki.model.WikiNode getNode(long nodeId)
151         throws com.liferay.portal.kernel.exception.PortalException,
152             com.liferay.portal.kernel.exception.SystemException;
153 
154     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
155     public com.liferay.portlet.wiki.model.WikiNode getNode(long groupId,
156         java.lang.String nodeName)
157         throws com.liferay.portal.kernel.exception.PortalException,
158             com.liferay.portal.kernel.exception.SystemException;
159 
160     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
161     public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
162         long groupId)
163         throws com.liferay.portal.kernel.exception.SystemException;
164 
165     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
166     public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
167         long groupId, int start, int end)
168         throws com.liferay.portal.kernel.exception.SystemException;
169 
170     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
171     public int getNodesCount(long groupId)
172         throws com.liferay.portal.kernel.exception.SystemException;
173 
174     public void importPages(long userId, long nodeId,
175         java.lang.String importer, java.io.File[] files,
176         java.util.Map<String, String[]> options)
177         throws com.liferay.portal.kernel.exception.PortalException,
178             com.liferay.portal.kernel.exception.SystemException;
179 
180     public void subscribeNode(long userId, long nodeId)
181         throws com.liferay.portal.kernel.exception.PortalException,
182             com.liferay.portal.kernel.exception.SystemException;
183 
184     public void unsubscribeNode(long userId, long nodeId)
185         throws com.liferay.portal.kernel.exception.PortalException,
186             com.liferay.portal.kernel.exception.SystemException;
187 
188     public com.liferay.portlet.wiki.model.WikiNode updateNode(long nodeId,
189         java.lang.String name, java.lang.String description)
190         throws com.liferay.portal.kernel.exception.PortalException,
191             com.liferay.portal.kernel.exception.SystemException;
192 }