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      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
72      public com.liferay.portlet.wiki.model.WikiPage getWikiPage(long pageId)
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.WikiPage> getWikiPages(
78          int start, int end)
79          throws com.liferay.portal.kernel.exception.SystemException;
80  
81      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
82      public int getWikiPagesCount()
83          throws com.liferay.portal.kernel.exception.SystemException;
84  
85      public com.liferay.portlet.wiki.model.WikiPage updateWikiPage(
86          com.liferay.portlet.wiki.model.WikiPage wikiPage)
87          throws com.liferay.portal.kernel.exception.SystemException;
88  
89      public com.liferay.portlet.wiki.model.WikiPage updateWikiPage(
90          com.liferay.portlet.wiki.model.WikiPage wikiPage, boolean merge)
91          throws com.liferay.portal.kernel.exception.SystemException;
92  
93      public com.liferay.portlet.wiki.model.WikiPage addPage(long userId,
94          long nodeId, java.lang.String title, java.lang.String content,
95          java.lang.String summary, boolean minorEdit,
96          com.liferay.portal.service.ServiceContext serviceContext)
97          throws com.liferay.portal.kernel.exception.PortalException,
98              com.liferay.portal.kernel.exception.SystemException;
99  
100     public com.liferay.portlet.wiki.model.WikiPage addPage(
101         java.lang.String uuid, long userId, long nodeId,
102         java.lang.String title, double version, java.lang.String content,
103         java.lang.String summary, boolean minorEdit, java.lang.String format,
104         boolean head, java.lang.String parentTitle,
105         java.lang.String redirectTitle,
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 void addPageAttachments(long nodeId, java.lang.String title,
111         java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files)
112         throws com.liferay.portal.kernel.exception.PortalException,
113             com.liferay.portal.kernel.exception.SystemException;
114 
115     public void addPageResources(long nodeId, java.lang.String title,
116         boolean addCommunityPermissions, boolean addGuestPermissions)
117         throws com.liferay.portal.kernel.exception.PortalException,
118             com.liferay.portal.kernel.exception.SystemException;
119 
120     public void addPageResources(com.liferay.portlet.wiki.model.WikiPage page,
121         boolean addCommunityPermissions, boolean addGuestPermissions)
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         java.lang.String[] communityPermissions,
127         java.lang.String[] guestPermissions)
128         throws com.liferay.portal.kernel.exception.PortalException,
129             com.liferay.portal.kernel.exception.SystemException;
130 
131     public void addPageResources(com.liferay.portlet.wiki.model.WikiPage page,
132         java.lang.String[] communityPermissions,
133         java.lang.String[] guestPermissions)
134         throws com.liferay.portal.kernel.exception.PortalException,
135             com.liferay.portal.kernel.exception.SystemException;
136 
137     public void changeParent(long userId, long nodeId, java.lang.String title,
138         java.lang.String newParentTitle,
139         com.liferay.portal.service.ServiceContext serviceContext)
140         throws com.liferay.portal.kernel.exception.PortalException,
141             com.liferay.portal.kernel.exception.SystemException;
142 
143     public void deletePage(long nodeId, java.lang.String title)
144         throws com.liferay.portal.kernel.exception.PortalException,
145             com.liferay.portal.kernel.exception.SystemException;
146 
147     public void deletePage(com.liferay.portlet.wiki.model.WikiPage page)
148         throws com.liferay.portal.kernel.exception.PortalException,
149             com.liferay.portal.kernel.exception.SystemException;
150 
151     public void deletePageAttachment(long nodeId, java.lang.String title,
152         java.lang.String fileName)
153         throws com.liferay.portal.kernel.exception.PortalException,
154             com.liferay.portal.kernel.exception.SystemException;
155 
156     public void deletePages(long nodeId)
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.WikiPage> getChildren(
162         long nodeId, boolean head, java.lang.String parentTitle)
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.WikiPage> getIncomingLinks(
167         long nodeId, java.lang.String title)
168         throws com.liferay.portal.kernel.exception.PortalException,
169             com.liferay.portal.kernel.exception.SystemException;
170 
171     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
172     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getNoAssetPages()
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> getOrphans(
177         long nodeId)
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> getOutgoingLinks(
183         long nodeId, java.lang.String title)
184         throws com.liferay.portal.kernel.exception.PortalException,
185             com.liferay.portal.kernel.exception.SystemException;
186 
187     public com.liferay.portlet.wiki.model.WikiPage getPage(long resourcePrimKey)
188         throws com.liferay.portal.kernel.exception.PortalException,
189             com.liferay.portal.kernel.exception.SystemException;
190 
191     public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
192         java.lang.String title)
193         throws com.liferay.portal.kernel.exception.PortalException,
194             com.liferay.portal.kernel.exception.SystemException;
195 
196     public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
197         java.lang.String title, double version)
198         throws com.liferay.portal.kernel.exception.PortalException,
199             com.liferay.portal.kernel.exception.SystemException;
200 
201     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
202     public com.liferay.portlet.wiki.model.WikiPageDisplay getPageDisplay(
203         long nodeId, java.lang.String title,
204         javax.portlet.PortletURL viewPageURL,
205         javax.portlet.PortletURL editPageURL,
206         java.lang.String attachmentURLPrefix)
207         throws com.liferay.portal.kernel.exception.PortalException,
208             com.liferay.portal.kernel.exception.SystemException;
209 
210     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
211     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
212         long nodeId, int start, int end)
213         throws com.liferay.portal.kernel.exception.SystemException;
214 
215     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
216     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
217         java.lang.String format)
218         throws 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, java.lang.String title, 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         long nodeId, java.lang.String title, int start, int end,
228         com.liferay.portal.kernel.util.OrderByComparator obc)
229         throws com.liferay.portal.kernel.exception.SystemException;
230 
231     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
232     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
233         long nodeId, boolean head, int start, int end)
234         throws com.liferay.portal.kernel.exception.SystemException;
235 
236     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
237     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
238         long nodeId, java.lang.String title, boolean head, int start, int end)
239         throws com.liferay.portal.kernel.exception.SystemException;
240 
241     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
242     public int getPagesCount(long nodeId)
243         throws com.liferay.portal.kernel.exception.SystemException;
244 
245     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
246     public int getPagesCount(long nodeId, java.lang.String title)
247         throws com.liferay.portal.kernel.exception.SystemException;
248 
249     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
250     public int getPagesCount(long nodeId, boolean head)
251         throws com.liferay.portal.kernel.exception.SystemException;
252 
253     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
254     public int getPagesCount(long nodeId, java.lang.String title, boolean head)
255         throws com.liferay.portal.kernel.exception.SystemException;
256 
257     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
258     public int getPagesCount(java.lang.String format)
259         throws com.liferay.portal.kernel.exception.SystemException;
260 
261     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
262     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getRecentChanges(
263         long nodeId, int start, int end)
264         throws com.liferay.portal.kernel.exception.SystemException;
265 
266     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
267     public int getRecentChangesCount(long nodeId)
268         throws com.liferay.portal.kernel.exception.SystemException;
269 
270     public void movePage(long userId, long nodeId, java.lang.String title,
271         java.lang.String newTitle,
272         com.liferay.portal.service.ServiceContext serviceContext)
273         throws com.liferay.portal.kernel.exception.PortalException,
274             com.liferay.portal.kernel.exception.SystemException;
275 
276     public void movePage(long userId, long nodeId, java.lang.String title,
277         java.lang.String newTitle, boolean strict,
278         com.liferay.portal.service.ServiceContext serviceContext)
279         throws com.liferay.portal.kernel.exception.PortalException,
280             com.liferay.portal.kernel.exception.SystemException;
281 
282     public com.liferay.portlet.wiki.model.WikiPage revertPage(long userId,
283         long nodeId, java.lang.String title, double version,
284         com.liferay.portal.service.ServiceContext serviceContext)
285         throws com.liferay.portal.kernel.exception.PortalException,
286             com.liferay.portal.kernel.exception.SystemException;
287 
288     public void subscribePage(long userId, long nodeId, java.lang.String title)
289         throws com.liferay.portal.kernel.exception.PortalException,
290             com.liferay.portal.kernel.exception.SystemException;
291 
292     public void unsubscribePage(long userId, long nodeId, java.lang.String title)
293         throws com.liferay.portal.kernel.exception.PortalException,
294             com.liferay.portal.kernel.exception.SystemException;
295 
296     public void updateAsset(long userId,
297         com.liferay.portlet.wiki.model.WikiPage page, long[] assetCategoryIds,
298         java.lang.String[] assetTagNames)
299         throws com.liferay.portal.kernel.exception.PortalException,
300             com.liferay.portal.kernel.exception.SystemException;
301 
302     public com.liferay.portlet.wiki.model.WikiPage updatePage(long userId,
303         long nodeId, java.lang.String title, double version,
304         java.lang.String content, java.lang.String summary, boolean minorEdit,
305         java.lang.String format, java.lang.String parentTitle,
306         java.lang.String redirectTitle,
307         com.liferay.portal.service.ServiceContext serviceContext)
308         throws com.liferay.portal.kernel.exception.PortalException,
309             com.liferay.portal.kernel.exception.SystemException;
310 
311     public com.liferay.portlet.wiki.model.WikiPage updateStatus(long userId,
312         long resourcePrimKey, int status)
313         throws com.liferay.portal.kernel.exception.PortalException,
314             com.liferay.portal.kernel.exception.SystemException;
315 
316     public com.liferay.portlet.wiki.model.WikiPage updateStatus(long userId,
317         com.liferay.portlet.wiki.model.WikiPage page, int status)
318         throws com.liferay.portal.kernel.exception.PortalException,
319             com.liferay.portal.kernel.exception.SystemException;
320 
321     public void validateTitle(java.lang.String title)
322         throws com.liferay.portal.kernel.exception.PortalException;
323 }