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="WikiPageLocalService.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.WikiPageLocalServiceImpl}}.
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       WikiPageLocalServiceUtil
45   * @generated
46   */
47  @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
48      PortalException.class, SystemException.class})
49  public interface WikiPageLocalService {
50      public com.liferay.portlet.wiki.model.WikiPage addWikiPage(
51          com.liferay.portlet.wiki.model.WikiPage wikiPage)
52          throws com.liferay.portal.kernel.exception.SystemException;
53  
54      public com.liferay.portlet.wiki.model.WikiPage createWikiPage(long pageId);
55  
56      public void deleteWikiPage(long pageId)
57          throws com.liferay.portal.kernel.exception.PortalException,
58              com.liferay.portal.kernel.exception.SystemException;
59  
60      public void deleteWikiPage(com.liferay.portlet.wiki.model.WikiPage wikiPage)
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      public java.util.List<Object> dynamicQuery(
72          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
73          int end,
74          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
75          throws com.liferay.portal.kernel.exception.SystemException;
76  
77      public int dynamicQueryCount(
78          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
79          throws com.liferay.portal.kernel.exception.SystemException;
80  
81      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
82      public com.liferay.portlet.wiki.model.WikiPage getWikiPage(long pageId)
83          throws com.liferay.portal.kernel.exception.PortalException,
84              com.liferay.portal.kernel.exception.SystemException;
85  
86      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
87      public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getWikiPages(
88          int start, int end)
89          throws com.liferay.portal.kernel.exception.SystemException;
90  
91      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
92      public int getWikiPagesCount()
93          throws com.liferay.portal.kernel.exception.SystemException;
94  
95      public com.liferay.portlet.wiki.model.WikiPage updateWikiPage(
96          com.liferay.portlet.wiki.model.WikiPage wikiPage)
97          throws com.liferay.portal.kernel.exception.SystemException;
98  
99      public com.liferay.portlet.wiki.model.WikiPage updateWikiPage(
100         com.liferay.portlet.wiki.model.WikiPage wikiPage, boolean merge)
101         throws com.liferay.portal.kernel.exception.SystemException;
102 
103     public com.liferay.portlet.wiki.model.WikiPage addPage(long userId,
104         long nodeId, java.lang.String title, java.lang.String content,
105         java.lang.String summary, boolean minorEdit,
106         com.liferay.portal.service.ServiceContext serviceContext)
107         throws com.liferay.portal.kernel.exception.PortalException,
108             com.liferay.portal.kernel.exception.SystemException;
109 
110     public com.liferay.portlet.wiki.model.WikiPage addPage(
111         java.lang.String uuid, long userId, long nodeId,
112         java.lang.String title, double version, java.lang.String content,
113         java.lang.String summary, boolean minorEdit, java.lang.String format,
114         boolean head, java.lang.String parentTitle,
115         java.lang.String redirectTitle,
116         com.liferay.portal.service.ServiceContext serviceContext)
117         throws com.liferay.portal.kernel.exception.PortalException,
118             com.liferay.portal.kernel.exception.SystemException;
119 
120     public void addPageAttachments(long nodeId, java.lang.String title,
121         java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files)
122         throws com.liferay.portal.kernel.exception.PortalException,
123             com.liferay.portal.kernel.exception.SystemException;
124 
125     public void addPageResources(long nodeId, java.lang.String title,
126         boolean addCommunityPermissions, boolean addGuestPermissions)
127         throws com.liferay.portal.kernel.exception.PortalException,
128             com.liferay.portal.kernel.exception.SystemException;
129 
130     public void addPageResources(com.liferay.portlet.wiki.model.WikiPage page,
131         boolean addCommunityPermissions, boolean addGuestPermissions)
132         throws com.liferay.portal.kernel.exception.PortalException,
133             com.liferay.portal.kernel.exception.SystemException;
134 
135     public void addPageResources(long nodeId, java.lang.String title,
136         java.lang.String[] communityPermissions,
137         java.lang.String[] guestPermissions)
138         throws com.liferay.portal.kernel.exception.PortalException,
139             com.liferay.portal.kernel.exception.SystemException;
140 
141     public void addPageResources(com.liferay.portlet.wiki.model.WikiPage page,
142         java.lang.String[] communityPermissions,
143         java.lang.String[] guestPermissions)
144         throws com.liferay.portal.kernel.exception.PortalException,
145             com.liferay.portal.kernel.exception.SystemException;
146 
147     public void changeParent(long userId, long nodeId, java.lang.String title,
148         java.lang.String newParentTitle,
149         com.liferay.portal.service.ServiceContext serviceContext)
150         throws com.liferay.portal.kernel.exception.PortalException,
151             com.liferay.portal.kernel.exception.SystemException;
152 
153     public void deletePage(long nodeId, java.lang.String title)
154         throws com.liferay.portal.kernel.exception.PortalException,
155             com.liferay.portal.kernel.exception.SystemException;
156 
157     public void deletePage(com.liferay.portlet.wiki.model.WikiPage page)
158         throws com.liferay.portal.kernel.exception.PortalException,
159             com.liferay.portal.kernel.exception.SystemException;
160 
161     public void deletePageAttachment(long nodeId, java.lang.String title,
162         java.lang.String fileName)
163         throws com.liferay.portal.kernel.exception.PortalException,
164             com.liferay.portal.kernel.exception.SystemException;
165 
166     public void deletePages(long nodeId)
167         throws com.liferay.portal.kernel.exception.PortalException,
168             com.liferay.portal.kernel.exception.SystemException;
169 
170     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
171     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getChildren(
172         long nodeId, boolean head, java.lang.String parentTitle)
173         throws com.liferay.portal.kernel.exception.SystemException;
174 
175     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
176     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getIncomingLinks(
177         long nodeId, java.lang.String title)
178         throws com.liferay.portal.kernel.exception.PortalException,
179             com.liferay.portal.kernel.exception.SystemException;
180 
181     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
182     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getNoAssetPages()
183         throws com.liferay.portal.kernel.exception.SystemException;
184 
185     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
186     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOrphans(
187         long nodeId)
188         throws com.liferay.portal.kernel.exception.PortalException,
189             com.liferay.portal.kernel.exception.SystemException;
190 
191     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
192     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOutgoingLinks(
193         long nodeId, java.lang.String title)
194         throws com.liferay.portal.kernel.exception.PortalException,
195             com.liferay.portal.kernel.exception.SystemException;
196 
197     public com.liferay.portlet.wiki.model.WikiPage getPage(long resourcePrimKey)
198         throws com.liferay.portal.kernel.exception.PortalException,
199             com.liferay.portal.kernel.exception.SystemException;
200 
201     public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
202         java.lang.String title)
203         throws com.liferay.portal.kernel.exception.PortalException,
204             com.liferay.portal.kernel.exception.SystemException;
205 
206     public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
207         java.lang.String title, double version)
208         throws com.liferay.portal.kernel.exception.PortalException,
209             com.liferay.portal.kernel.exception.SystemException;
210 
211     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
212     public com.liferay.portlet.wiki.model.WikiPageDisplay getPageDisplay(
213         long nodeId, java.lang.String title,
214         javax.portlet.PortletURL viewPageURL,
215         javax.portlet.PortletURL editPageURL,
216         java.lang.String attachmentURLPrefix)
217         throws com.liferay.portal.kernel.exception.PortalException,
218             com.liferay.portal.kernel.exception.SystemException;
219 
220     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
221     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
222         long nodeId, int start, int end)
223         throws com.liferay.portal.kernel.exception.SystemException;
224 
225     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
226     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
227         java.lang.String format)
228         throws com.liferay.portal.kernel.exception.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         throws com.liferay.portal.kernel.exception.SystemException;
234 
235     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
236     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
237         long nodeId, java.lang.String title, int start, int end,
238         com.liferay.portal.kernel.util.OrderByComparator obc)
239         throws com.liferay.portal.kernel.exception.SystemException;
240 
241     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
242     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
243         long nodeId, boolean head, int start, int end)
244         throws com.liferay.portal.kernel.exception.SystemException;
245 
246     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
247     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
248         long nodeId, java.lang.String title, boolean head, int start, int end)
249         throws com.liferay.portal.kernel.exception.SystemException;
250 
251     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
252     public int getPagesCount(long nodeId)
253         throws com.liferay.portal.kernel.exception.SystemException;
254 
255     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
256     public int getPagesCount(long nodeId, java.lang.String title)
257         throws com.liferay.portal.kernel.exception.SystemException;
258 
259     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
260     public int getPagesCount(long nodeId, boolean head)
261         throws com.liferay.portal.kernel.exception.SystemException;
262 
263     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
264     public int getPagesCount(long nodeId, java.lang.String title, boolean head)
265         throws com.liferay.portal.kernel.exception.SystemException;
266 
267     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
268     public int getPagesCount(java.lang.String format)
269         throws com.liferay.portal.kernel.exception.SystemException;
270 
271     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
272     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getRecentChanges(
273         long nodeId, int start, int end)
274         throws com.liferay.portal.kernel.exception.SystemException;
275 
276     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
277     public int getRecentChangesCount(long nodeId)
278         throws com.liferay.portal.kernel.exception.SystemException;
279 
280     public void movePage(long userId, long nodeId, java.lang.String title,
281         java.lang.String newTitle,
282         com.liferay.portal.service.ServiceContext serviceContext)
283         throws com.liferay.portal.kernel.exception.PortalException,
284             com.liferay.portal.kernel.exception.SystemException;
285 
286     public void movePage(long userId, long nodeId, java.lang.String title,
287         java.lang.String newTitle, boolean strict,
288         com.liferay.portal.service.ServiceContext serviceContext)
289         throws com.liferay.portal.kernel.exception.PortalException,
290             com.liferay.portal.kernel.exception.SystemException;
291 
292     public com.liferay.portlet.wiki.model.WikiPage revertPage(long userId,
293         long nodeId, java.lang.String title, double version,
294         com.liferay.portal.service.ServiceContext serviceContext)
295         throws com.liferay.portal.kernel.exception.PortalException,
296             com.liferay.portal.kernel.exception.SystemException;
297 
298     public void subscribePage(long userId, long nodeId, java.lang.String title)
299         throws com.liferay.portal.kernel.exception.PortalException,
300             com.liferay.portal.kernel.exception.SystemException;
301 
302     public void unsubscribePage(long userId, long nodeId, java.lang.String title)
303         throws com.liferay.portal.kernel.exception.PortalException,
304             com.liferay.portal.kernel.exception.SystemException;
305 
306     public void updateAsset(long userId,
307         com.liferay.portlet.wiki.model.WikiPage page, long[] assetCategoryIds,
308         java.lang.String[] assetTagNames)
309         throws com.liferay.portal.kernel.exception.PortalException,
310             com.liferay.portal.kernel.exception.SystemException;
311 
312     public com.liferay.portlet.wiki.model.WikiPage updatePage(long userId,
313         long nodeId, java.lang.String title, double version,
314         java.lang.String content, java.lang.String summary, boolean minorEdit,
315         java.lang.String format, java.lang.String parentTitle,
316         java.lang.String redirectTitle,
317         com.liferay.portal.service.ServiceContext serviceContext)
318         throws com.liferay.portal.kernel.exception.PortalException,
319             com.liferay.portal.kernel.exception.SystemException;
320 
321     public com.liferay.portlet.wiki.model.WikiPage updateStatus(long userId,
322         long resourcePrimKey, int status)
323         throws com.liferay.portal.kernel.exception.PortalException,
324             com.liferay.portal.kernel.exception.SystemException;
325 
326     public com.liferay.portlet.wiki.model.WikiPage updateStatus(long userId,
327         com.liferay.portlet.wiki.model.WikiPage page, int status)
328         throws com.liferay.portal.kernel.exception.PortalException,
329             com.liferay.portal.kernel.exception.SystemException;
330 
331     public void validateTitle(java.lang.String title)
332         throws com.liferay.portal.kernel.exception.PortalException;
333 }