1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.wiki.service;
24  
25  import com.liferay.portal.PortalException;
26  import com.liferay.portal.SystemException;
27  import com.liferay.portal.kernel.annotation.Isolation;
28  import com.liferay.portal.kernel.annotation.Propagation;
29  import com.liferay.portal.kernel.annotation.Transactional;
30  
31  /**
32   * <a href="WikiPageLocalService.java.html"><b><i>View Source</i></b></a>
33   *
34   * <p>
35   * ServiceBuilder generated this class. Modifications in this class will be
36   * overwritten the next time is generated.
37   * </p>
38   *
39   * <p>
40   * This interface defines the service. The default implementation is
41   * {@link
42   * com.liferay.portlet.wiki.service.impl.WikiPageLocalServiceImpl}}.
43   * Modify methods in that class and rerun ServiceBuilder to populate this class
44   * and all other generated classes.
45   * </p>
46   *
47   * <p>
48   * 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.
49   * </p>
50   *
51   * @author    Brian Wing Shun Chan
52   * @see       WikiPageLocalServiceUtil
53   * @generated
54   */
55  @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
56      PortalException.class, SystemException.class})
57  public interface WikiPageLocalService {
58      public com.liferay.portlet.wiki.model.WikiPage addWikiPage(
59          com.liferay.portlet.wiki.model.WikiPage wikiPage)
60          throws com.liferay.portal.SystemException;
61  
62      public com.liferay.portlet.wiki.model.WikiPage createWikiPage(long pageId);
63  
64      public void deleteWikiPage(long pageId)
65          throws com.liferay.portal.PortalException,
66              com.liferay.portal.SystemException;
67  
68      public void deleteWikiPage(com.liferay.portlet.wiki.model.WikiPage wikiPage)
69          throws com.liferay.portal.SystemException;
70  
71      public java.util.List<Object> dynamicQuery(
72          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
73          throws com.liferay.portal.SystemException;
74  
75      public java.util.List<Object> dynamicQuery(
76          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
77          int end) throws com.liferay.portal.SystemException;
78  
79      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
80      public com.liferay.portlet.wiki.model.WikiPage getWikiPage(long pageId)
81          throws com.liferay.portal.PortalException,
82              com.liferay.portal.SystemException;
83  
84      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
85      public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getWikiPages(
86          int start, int end) throws com.liferay.portal.SystemException;
87  
88      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
89      public int getWikiPagesCount() throws com.liferay.portal.SystemException;
90  
91      public com.liferay.portlet.wiki.model.WikiPage updateWikiPage(
92          com.liferay.portlet.wiki.model.WikiPage wikiPage)
93          throws com.liferay.portal.SystemException;
94  
95      public com.liferay.portlet.wiki.model.WikiPage updateWikiPage(
96          com.liferay.portlet.wiki.model.WikiPage wikiPage, boolean merge)
97          throws com.liferay.portal.SystemException;
98  
99      public com.liferay.portlet.wiki.model.WikiPage addPage(long userId,
100         long nodeId, java.lang.String title, java.lang.String content,
101         java.lang.String summary, boolean minorEdit,
102         com.liferay.portal.service.ServiceContext serviceContext)
103         throws com.liferay.portal.PortalException,
104             com.liferay.portal.SystemException;
105 
106     public com.liferay.portlet.wiki.model.WikiPage addPage(
107         java.lang.String uuid, long userId, long nodeId,
108         java.lang.String title, double version, java.lang.String content,
109         java.lang.String summary, boolean minorEdit, java.lang.String format,
110         boolean head, java.lang.String parentTitle,
111         java.lang.String redirectTitle,
112         com.liferay.portal.service.ServiceContext serviceContext)
113         throws com.liferay.portal.PortalException,
114             com.liferay.portal.SystemException;
115 
116     public void addPageAttachments(long nodeId, java.lang.String title,
117         java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files)
118         throws com.liferay.portal.PortalException,
119             com.liferay.portal.SystemException;
120 
121     public void addPageResources(long nodeId, java.lang.String title,
122         boolean addCommunityPermissions, boolean addGuestPermissions)
123         throws com.liferay.portal.PortalException,
124             com.liferay.portal.SystemException;
125 
126     public void addPageResources(com.liferay.portlet.wiki.model.WikiPage page,
127         boolean addCommunityPermissions, boolean addGuestPermissions)
128         throws com.liferay.portal.PortalException,
129             com.liferay.portal.SystemException;
130 
131     public void addPageResources(long nodeId, java.lang.String title,
132         java.lang.String[] communityPermissions,
133         java.lang.String[] guestPermissions)
134         throws com.liferay.portal.PortalException,
135             com.liferay.portal.SystemException;
136 
137     public void addPageResources(com.liferay.portlet.wiki.model.WikiPage page,
138         java.lang.String[] communityPermissions,
139         java.lang.String[] guestPermissions)
140         throws com.liferay.portal.PortalException,
141             com.liferay.portal.SystemException;
142 
143     public void changeParent(long userId, long nodeId, java.lang.String title,
144         java.lang.String newParentTitle,
145         com.liferay.portal.service.ServiceContext serviceContext)
146         throws com.liferay.portal.PortalException,
147             com.liferay.portal.SystemException;
148 
149     public void deletePage(long nodeId, java.lang.String title)
150         throws com.liferay.portal.PortalException,
151             com.liferay.portal.SystemException;
152 
153     public void deletePage(com.liferay.portlet.wiki.model.WikiPage page)
154         throws com.liferay.portal.PortalException,
155             com.liferay.portal.SystemException;
156 
157     public void deletePageAttachment(long nodeId, java.lang.String title,
158         java.lang.String fileName)
159         throws com.liferay.portal.PortalException,
160             com.liferay.portal.SystemException;
161 
162     public void deletePages(long nodeId)
163         throws com.liferay.portal.PortalException,
164             com.liferay.portal.SystemException;
165 
166     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
167     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getChildren(
168         long nodeId, boolean head, java.lang.String parentTitle)
169         throws com.liferay.portal.SystemException;
170 
171     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
172     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getIncomingLinks(
173         long nodeId, java.lang.String title)
174         throws com.liferay.portal.PortalException,
175             com.liferay.portal.SystemException;
176 
177     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
178     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getNoAssetPages()
179         throws com.liferay.portal.SystemException;
180 
181     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
182     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOrphans(
183         long nodeId)
184         throws com.liferay.portal.PortalException,
185             com.liferay.portal.SystemException;
186 
187     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
188     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOutgoingLinks(
189         long nodeId, java.lang.String title)
190         throws com.liferay.portal.PortalException,
191             com.liferay.portal.SystemException;
192 
193     public com.liferay.portlet.wiki.model.WikiPage getPage(long resourcePrimKey)
194         throws com.liferay.portal.PortalException,
195             com.liferay.portal.SystemException;
196 
197     public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
198         java.lang.String title)
199         throws com.liferay.portal.PortalException,
200             com.liferay.portal.SystemException;
201 
202     public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
203         java.lang.String title, double version)
204         throws com.liferay.portal.PortalException,
205             com.liferay.portal.SystemException;
206 
207     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
208     public com.liferay.portlet.wiki.model.WikiPageDisplay getPageDisplay(
209         long nodeId, java.lang.String title,
210         javax.portlet.PortletURL viewPageURL,
211         javax.portlet.PortletURL editPageURL,
212         java.lang.String attachmentURLPrefix)
213         throws com.liferay.portal.PortalException,
214             com.liferay.portal.SystemException;
215 
216     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
217     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
218         long nodeId, int start, int end)
219         throws com.liferay.portal.SystemException;
220 
221     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
222     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
223         java.lang.String format) throws com.liferay.portal.SystemException;
224 
225     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
226     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
227         long nodeId, java.lang.String title, int start, int end)
228         throws com.liferay.portal.SystemException;
229 
230     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
231     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
232         long nodeId, java.lang.String title, int start, int end,
233         com.liferay.portal.kernel.util.OrderByComparator obc)
234         throws com.liferay.portal.SystemException;
235 
236     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
237     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
238         long nodeId, boolean head, int start, int end)
239         throws com.liferay.portal.SystemException;
240 
241     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
242     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
243         long nodeId, java.lang.String title, boolean head, int start, int end)
244         throws com.liferay.portal.SystemException;
245 
246     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
247     public int getPagesCount(long nodeId)
248         throws com.liferay.portal.SystemException;
249 
250     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
251     public int getPagesCount(long nodeId, java.lang.String title)
252         throws com.liferay.portal.SystemException;
253 
254     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
255     public int getPagesCount(long nodeId, boolean head)
256         throws com.liferay.portal.SystemException;
257 
258     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
259     public int getPagesCount(long nodeId, java.lang.String title, boolean head)
260         throws com.liferay.portal.SystemException;
261 
262     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
263     public int getPagesCount(java.lang.String format)
264         throws com.liferay.portal.SystemException;
265 
266     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
267     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getRecentChanges(
268         long nodeId, int start, int end)
269         throws com.liferay.portal.SystemException;
270 
271     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
272     public int getRecentChangesCount(long nodeId)
273         throws com.liferay.portal.SystemException;
274 
275     public void movePage(long userId, long nodeId, java.lang.String title,
276         java.lang.String newTitle,
277         com.liferay.portal.service.ServiceContext serviceContext)
278         throws com.liferay.portal.PortalException,
279             com.liferay.portal.SystemException;
280 
281     public void movePage(long userId, long nodeId, java.lang.String title,
282         java.lang.String newTitle, boolean strict,
283         com.liferay.portal.service.ServiceContext serviceContext)
284         throws com.liferay.portal.PortalException,
285             com.liferay.portal.SystemException;
286 
287     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
288     public void reIndex(long resourcePrimKey)
289         throws com.liferay.portal.SystemException;
290 
291     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
292     public void reIndex(com.liferay.portlet.wiki.model.WikiPage page)
293         throws com.liferay.portal.SystemException;
294 
295     public com.liferay.portlet.wiki.model.WikiPage revertPage(long userId,
296         long nodeId, java.lang.String title, double version,
297         com.liferay.portal.service.ServiceContext serviceContext)
298         throws com.liferay.portal.PortalException,
299             com.liferay.portal.SystemException;
300 
301     public void subscribePage(long userId, long nodeId, java.lang.String title)
302         throws com.liferay.portal.PortalException,
303             com.liferay.portal.SystemException;
304 
305     public void unsubscribePage(long userId, long nodeId, java.lang.String title)
306         throws com.liferay.portal.PortalException,
307             com.liferay.portal.SystemException;
308 
309     public com.liferay.portlet.wiki.model.WikiPage updatePage(long userId,
310         long nodeId, java.lang.String title, double version,
311         java.lang.String content, java.lang.String summary, boolean minorEdit,
312         java.lang.String format, java.lang.String parentTitle,
313         java.lang.String redirectTitle,
314         com.liferay.portal.service.ServiceContext serviceContext)
315         throws com.liferay.portal.PortalException,
316             com.liferay.portal.SystemException;
317 
318     public void updateTagsAsset(long userId,
319         com.liferay.portlet.wiki.model.WikiPage page,
320         java.lang.String[] tagsCategories, java.lang.String[] tagsEntries)
321         throws com.liferay.portal.PortalException,
322             com.liferay.portal.SystemException;
323 
324     public void validateTitle(java.lang.String title)
325         throws com.liferay.portal.PortalException;
326 }