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  
18  /**
19   * <a href="WikiPageLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
20   *
21   * <p>
22   * ServiceBuilder generated this class. Modifications in this class will be
23   * overwritten the next time is generated.
24   * </p>
25   *
26   * <p>
27   * This class is a wrapper for {@link WikiPageLocalService}.
28   * </p>
29   *
30   * @author    Brian Wing Shun Chan
31   * @see       WikiPageLocalService
32   * @generated
33   */
34  public class WikiPageLocalServiceWrapper implements WikiPageLocalService {
35      public WikiPageLocalServiceWrapper(
36          WikiPageLocalService wikiPageLocalService) {
37          _wikiPageLocalService = wikiPageLocalService;
38      }
39  
40      public com.liferay.portlet.wiki.model.WikiPage addWikiPage(
41          com.liferay.portlet.wiki.model.WikiPage wikiPage)
42          throws com.liferay.portal.kernel.exception.SystemException {
43          return _wikiPageLocalService.addWikiPage(wikiPage);
44      }
45  
46      public com.liferay.portlet.wiki.model.WikiPage createWikiPage(long pageId) {
47          return _wikiPageLocalService.createWikiPage(pageId);
48      }
49  
50      public void deleteWikiPage(long pageId)
51          throws com.liferay.portal.kernel.exception.PortalException,
52              com.liferay.portal.kernel.exception.SystemException {
53          _wikiPageLocalService.deleteWikiPage(pageId);
54      }
55  
56      public void deleteWikiPage(com.liferay.portlet.wiki.model.WikiPage wikiPage)
57          throws com.liferay.portal.kernel.exception.SystemException {
58          _wikiPageLocalService.deleteWikiPage(wikiPage);
59      }
60  
61      public java.util.List<Object> dynamicQuery(
62          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
63          throws com.liferay.portal.kernel.exception.SystemException {
64          return _wikiPageLocalService.dynamicQuery(dynamicQuery);
65      }
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          return _wikiPageLocalService.dynamicQuery(dynamicQuery, start, end);
71      }
72  
73      public java.util.List<Object> dynamicQuery(
74          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75          int end,
76          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
77          throws com.liferay.portal.kernel.exception.SystemException {
78          return _wikiPageLocalService.dynamicQuery(dynamicQuery, start, end,
79              orderByComparator);
80      }
81  
82      public int dynamicQueryCount(
83          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
84          throws com.liferay.portal.kernel.exception.SystemException {
85          return _wikiPageLocalService.dynamicQueryCount(dynamicQuery);
86      }
87  
88      public com.liferay.portlet.wiki.model.WikiPage getWikiPage(long pageId)
89          throws com.liferay.portal.kernel.exception.PortalException,
90              com.liferay.portal.kernel.exception.SystemException {
91          return _wikiPageLocalService.getWikiPage(pageId);
92      }
93  
94      public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getWikiPages(
95          int start, int end)
96          throws com.liferay.portal.kernel.exception.SystemException {
97          return _wikiPageLocalService.getWikiPages(start, end);
98      }
99  
100     public int getWikiPagesCount()
101         throws com.liferay.portal.kernel.exception.SystemException {
102         return _wikiPageLocalService.getWikiPagesCount();
103     }
104 
105     public com.liferay.portlet.wiki.model.WikiPage updateWikiPage(
106         com.liferay.portlet.wiki.model.WikiPage wikiPage)
107         throws com.liferay.portal.kernel.exception.SystemException {
108         return _wikiPageLocalService.updateWikiPage(wikiPage);
109     }
110 
111     public com.liferay.portlet.wiki.model.WikiPage updateWikiPage(
112         com.liferay.portlet.wiki.model.WikiPage wikiPage, boolean merge)
113         throws com.liferay.portal.kernel.exception.SystemException {
114         return _wikiPageLocalService.updateWikiPage(wikiPage, merge);
115     }
116 
117     public com.liferay.portlet.wiki.model.WikiPage addPage(long userId,
118         long nodeId, java.lang.String title, java.lang.String content,
119         java.lang.String summary, boolean minorEdit,
120         com.liferay.portal.service.ServiceContext serviceContext)
121         throws com.liferay.portal.kernel.exception.PortalException,
122             com.liferay.portal.kernel.exception.SystemException {
123         return _wikiPageLocalService.addPage(userId, nodeId, title, content,
124             summary, minorEdit, serviceContext);
125     }
126 
127     public com.liferay.portlet.wiki.model.WikiPage addPage(
128         java.lang.String uuid, long userId, long nodeId,
129         java.lang.String title, double version, java.lang.String content,
130         java.lang.String summary, boolean minorEdit, java.lang.String format,
131         boolean head, java.lang.String parentTitle,
132         java.lang.String redirectTitle,
133         com.liferay.portal.service.ServiceContext serviceContext)
134         throws com.liferay.portal.kernel.exception.PortalException,
135             com.liferay.portal.kernel.exception.SystemException {
136         return _wikiPageLocalService.addPage(uuid, userId, nodeId, title,
137             version, content, summary, minorEdit, format, head, parentTitle,
138             redirectTitle, serviceContext);
139     }
140 
141     public void addPageAttachments(long nodeId, java.lang.String title,
142         java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files)
143         throws com.liferay.portal.kernel.exception.PortalException,
144             com.liferay.portal.kernel.exception.SystemException {
145         _wikiPageLocalService.addPageAttachments(nodeId, title, files);
146     }
147 
148     public void addPageResources(long nodeId, java.lang.String title,
149         boolean addCommunityPermissions, boolean addGuestPermissions)
150         throws com.liferay.portal.kernel.exception.PortalException,
151             com.liferay.portal.kernel.exception.SystemException {
152         _wikiPageLocalService.addPageResources(nodeId, title,
153             addCommunityPermissions, addGuestPermissions);
154     }
155 
156     public void addPageResources(com.liferay.portlet.wiki.model.WikiPage page,
157         boolean addCommunityPermissions, boolean addGuestPermissions)
158         throws com.liferay.portal.kernel.exception.PortalException,
159             com.liferay.portal.kernel.exception.SystemException {
160         _wikiPageLocalService.addPageResources(page, addCommunityPermissions,
161             addGuestPermissions);
162     }
163 
164     public void addPageResources(long nodeId, java.lang.String title,
165         java.lang.String[] communityPermissions,
166         java.lang.String[] guestPermissions)
167         throws com.liferay.portal.kernel.exception.PortalException,
168             com.liferay.portal.kernel.exception.SystemException {
169         _wikiPageLocalService.addPageResources(nodeId, title,
170             communityPermissions, guestPermissions);
171     }
172 
173     public void addPageResources(com.liferay.portlet.wiki.model.WikiPage page,
174         java.lang.String[] communityPermissions,
175         java.lang.String[] guestPermissions)
176         throws com.liferay.portal.kernel.exception.PortalException,
177             com.liferay.portal.kernel.exception.SystemException {
178         _wikiPageLocalService.addPageResources(page, communityPermissions,
179             guestPermissions);
180     }
181 
182     public void changeParent(long userId, long nodeId, java.lang.String title,
183         java.lang.String newParentTitle,
184         com.liferay.portal.service.ServiceContext serviceContext)
185         throws com.liferay.portal.kernel.exception.PortalException,
186             com.liferay.portal.kernel.exception.SystemException {
187         _wikiPageLocalService.changeParent(userId, nodeId, title,
188             newParentTitle, serviceContext);
189     }
190 
191     public void deletePage(long nodeId, java.lang.String title)
192         throws com.liferay.portal.kernel.exception.PortalException,
193             com.liferay.portal.kernel.exception.SystemException {
194         _wikiPageLocalService.deletePage(nodeId, title);
195     }
196 
197     public void deletePage(com.liferay.portlet.wiki.model.WikiPage page)
198         throws com.liferay.portal.kernel.exception.PortalException,
199             com.liferay.portal.kernel.exception.SystemException {
200         _wikiPageLocalService.deletePage(page);
201     }
202 
203     public void deletePageAttachment(long nodeId, java.lang.String title,
204         java.lang.String fileName)
205         throws com.liferay.portal.kernel.exception.PortalException,
206             com.liferay.portal.kernel.exception.SystemException {
207         _wikiPageLocalService.deletePageAttachment(nodeId, title, fileName);
208     }
209 
210     public void deletePages(long nodeId)
211         throws com.liferay.portal.kernel.exception.PortalException,
212             com.liferay.portal.kernel.exception.SystemException {
213         _wikiPageLocalService.deletePages(nodeId);
214     }
215 
216     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getChildren(
217         long nodeId, boolean head, java.lang.String parentTitle)
218         throws com.liferay.portal.kernel.exception.SystemException {
219         return _wikiPageLocalService.getChildren(nodeId, head, parentTitle);
220     }
221 
222     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getIncomingLinks(
223         long nodeId, java.lang.String title)
224         throws com.liferay.portal.kernel.exception.PortalException,
225             com.liferay.portal.kernel.exception.SystemException {
226         return _wikiPageLocalService.getIncomingLinks(nodeId, title);
227     }
228 
229     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getNoAssetPages()
230         throws com.liferay.portal.kernel.exception.SystemException {
231         return _wikiPageLocalService.getNoAssetPages();
232     }
233 
234     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOrphans(
235         long nodeId)
236         throws com.liferay.portal.kernel.exception.PortalException,
237             com.liferay.portal.kernel.exception.SystemException {
238         return _wikiPageLocalService.getOrphans(nodeId);
239     }
240 
241     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOutgoingLinks(
242         long nodeId, java.lang.String title)
243         throws com.liferay.portal.kernel.exception.PortalException,
244             com.liferay.portal.kernel.exception.SystemException {
245         return _wikiPageLocalService.getOutgoingLinks(nodeId, title);
246     }
247 
248     public com.liferay.portlet.wiki.model.WikiPage getPage(long resourcePrimKey)
249         throws com.liferay.portal.kernel.exception.PortalException,
250             com.liferay.portal.kernel.exception.SystemException {
251         return _wikiPageLocalService.getPage(resourcePrimKey);
252     }
253 
254     public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
255         java.lang.String title)
256         throws com.liferay.portal.kernel.exception.PortalException,
257             com.liferay.portal.kernel.exception.SystemException {
258         return _wikiPageLocalService.getPage(nodeId, title);
259     }
260 
261     public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
262         java.lang.String title, double version)
263         throws com.liferay.portal.kernel.exception.PortalException,
264             com.liferay.portal.kernel.exception.SystemException {
265         return _wikiPageLocalService.getPage(nodeId, title, version);
266     }
267 
268     public com.liferay.portlet.wiki.model.WikiPageDisplay getPageDisplay(
269         long nodeId, java.lang.String title,
270         javax.portlet.PortletURL viewPageURL,
271         javax.portlet.PortletURL editPageURL,
272         java.lang.String attachmentURLPrefix)
273         throws com.liferay.portal.kernel.exception.PortalException,
274             com.liferay.portal.kernel.exception.SystemException {
275         return _wikiPageLocalService.getPageDisplay(nodeId, title, viewPageURL,
276             editPageURL, attachmentURLPrefix);
277     }
278 
279     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
280         long nodeId, int start, int end)
281         throws com.liferay.portal.kernel.exception.SystemException {
282         return _wikiPageLocalService.getPages(nodeId, start, end);
283     }
284 
285     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
286         java.lang.String format)
287         throws com.liferay.portal.kernel.exception.SystemException {
288         return _wikiPageLocalService.getPages(format);
289     }
290 
291     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
292         long nodeId, java.lang.String title, int start, int end)
293         throws com.liferay.portal.kernel.exception.SystemException {
294         return _wikiPageLocalService.getPages(nodeId, title, start, end);
295     }
296 
297     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
298         long nodeId, java.lang.String title, int start, int end,
299         com.liferay.portal.kernel.util.OrderByComparator obc)
300         throws com.liferay.portal.kernel.exception.SystemException {
301         return _wikiPageLocalService.getPages(nodeId, title, start, end, obc);
302     }
303 
304     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
305         long nodeId, boolean head, int start, int end)
306         throws com.liferay.portal.kernel.exception.SystemException {
307         return _wikiPageLocalService.getPages(nodeId, head, start, end);
308     }
309 
310     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
311         long nodeId, java.lang.String title, boolean head, int start, int end)
312         throws com.liferay.portal.kernel.exception.SystemException {
313         return _wikiPageLocalService.getPages(nodeId, title, head, start, end);
314     }
315 
316     public int getPagesCount(long nodeId)
317         throws com.liferay.portal.kernel.exception.SystemException {
318         return _wikiPageLocalService.getPagesCount(nodeId);
319     }
320 
321     public int getPagesCount(long nodeId, java.lang.String title)
322         throws com.liferay.portal.kernel.exception.SystemException {
323         return _wikiPageLocalService.getPagesCount(nodeId, title);
324     }
325 
326     public int getPagesCount(long nodeId, boolean head)
327         throws com.liferay.portal.kernel.exception.SystemException {
328         return _wikiPageLocalService.getPagesCount(nodeId, head);
329     }
330 
331     public int getPagesCount(long nodeId, java.lang.String title, boolean head)
332         throws com.liferay.portal.kernel.exception.SystemException {
333         return _wikiPageLocalService.getPagesCount(nodeId, title, head);
334     }
335 
336     public int getPagesCount(java.lang.String format)
337         throws com.liferay.portal.kernel.exception.SystemException {
338         return _wikiPageLocalService.getPagesCount(format);
339     }
340 
341     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getRecentChanges(
342         long nodeId, int start, int end)
343         throws com.liferay.portal.kernel.exception.SystemException {
344         return _wikiPageLocalService.getRecentChanges(nodeId, start, end);
345     }
346 
347     public int getRecentChangesCount(long nodeId)
348         throws com.liferay.portal.kernel.exception.SystemException {
349         return _wikiPageLocalService.getRecentChangesCount(nodeId);
350     }
351 
352     public void movePage(long userId, long nodeId, java.lang.String title,
353         java.lang.String newTitle,
354         com.liferay.portal.service.ServiceContext serviceContext)
355         throws com.liferay.portal.kernel.exception.PortalException,
356             com.liferay.portal.kernel.exception.SystemException {
357         _wikiPageLocalService.movePage(userId, nodeId, title, newTitle,
358             serviceContext);
359     }
360 
361     public void movePage(long userId, long nodeId, java.lang.String title,
362         java.lang.String newTitle, boolean strict,
363         com.liferay.portal.service.ServiceContext serviceContext)
364         throws com.liferay.portal.kernel.exception.PortalException,
365             com.liferay.portal.kernel.exception.SystemException {
366         _wikiPageLocalService.movePage(userId, nodeId, title, newTitle, strict,
367             serviceContext);
368     }
369 
370     public com.liferay.portlet.wiki.model.WikiPage revertPage(long userId,
371         long nodeId, java.lang.String title, double version,
372         com.liferay.portal.service.ServiceContext serviceContext)
373         throws com.liferay.portal.kernel.exception.PortalException,
374             com.liferay.portal.kernel.exception.SystemException {
375         return _wikiPageLocalService.revertPage(userId, nodeId, title, version,
376             serviceContext);
377     }
378 
379     public void subscribePage(long userId, long nodeId, java.lang.String title)
380         throws com.liferay.portal.kernel.exception.PortalException,
381             com.liferay.portal.kernel.exception.SystemException {
382         _wikiPageLocalService.subscribePage(userId, nodeId, title);
383     }
384 
385     public void unsubscribePage(long userId, long nodeId, java.lang.String title)
386         throws com.liferay.portal.kernel.exception.PortalException,
387             com.liferay.portal.kernel.exception.SystemException {
388         _wikiPageLocalService.unsubscribePage(userId, nodeId, title);
389     }
390 
391     public void updateAsset(long userId,
392         com.liferay.portlet.wiki.model.WikiPage page, long[] assetCategoryIds,
393         java.lang.String[] assetTagNames)
394         throws com.liferay.portal.kernel.exception.PortalException,
395             com.liferay.portal.kernel.exception.SystemException {
396         _wikiPageLocalService.updateAsset(userId, page, assetCategoryIds,
397             assetTagNames);
398     }
399 
400     public com.liferay.portlet.wiki.model.WikiPage updatePage(long userId,
401         long nodeId, java.lang.String title, double version,
402         java.lang.String content, java.lang.String summary, boolean minorEdit,
403         java.lang.String format, java.lang.String parentTitle,
404         java.lang.String redirectTitle,
405         com.liferay.portal.service.ServiceContext serviceContext)
406         throws com.liferay.portal.kernel.exception.PortalException,
407             com.liferay.portal.kernel.exception.SystemException {
408         return _wikiPageLocalService.updatePage(userId, nodeId, title, version,
409             content, summary, minorEdit, format, parentTitle, redirectTitle,
410             serviceContext);
411     }
412 
413     public com.liferay.portlet.wiki.model.WikiPage updateStatus(long userId,
414         long resourcePrimKey, int status)
415         throws com.liferay.portal.kernel.exception.PortalException,
416             com.liferay.portal.kernel.exception.SystemException {
417         return _wikiPageLocalService.updateStatus(userId, resourcePrimKey,
418             status);
419     }
420 
421     public com.liferay.portlet.wiki.model.WikiPage updateStatus(long userId,
422         com.liferay.portlet.wiki.model.WikiPage page, int status)
423         throws com.liferay.portal.kernel.exception.PortalException,
424             com.liferay.portal.kernel.exception.SystemException {
425         return _wikiPageLocalService.updateStatus(userId, page, status);
426     }
427 
428     public void validateTitle(java.lang.String title)
429         throws com.liferay.portal.kernel.exception.PortalException {
430         _wikiPageLocalService.validateTitle(title);
431     }
432 
433     public WikiPageLocalService getWrappedWikiPageLocalService() {
434         return _wikiPageLocalService;
435     }
436 
437     private WikiPageLocalService _wikiPageLocalService;
438 }