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      @SuppressWarnings("unchecked")
62      public java.util.List dynamicQuery(
63          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
64          throws com.liferay.portal.kernel.exception.SystemException {
65          return _wikiPageLocalService.dynamicQuery(dynamicQuery);
66      }
67  
68      @SuppressWarnings("unchecked")
69      public java.util.List dynamicQuery(
70          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71          int end) throws com.liferay.portal.kernel.exception.SystemException {
72          return _wikiPageLocalService.dynamicQuery(dynamicQuery, start, end);
73      }
74  
75      @SuppressWarnings("unchecked")
76      public java.util.List dynamicQuery(
77          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
78          int end,
79          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
80          throws com.liferay.portal.kernel.exception.SystemException {
81          return _wikiPageLocalService.dynamicQuery(dynamicQuery, start, end,
82              orderByComparator);
83      }
84  
85      public long dynamicQueryCount(
86          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
87          throws com.liferay.portal.kernel.exception.SystemException {
88          return _wikiPageLocalService.dynamicQueryCount(dynamicQuery);
89      }
90  
91      public com.liferay.portlet.wiki.model.WikiPage getWikiPage(long pageId)
92          throws com.liferay.portal.kernel.exception.PortalException,
93              com.liferay.portal.kernel.exception.SystemException {
94          return _wikiPageLocalService.getWikiPage(pageId);
95      }
96  
97      public com.liferay.portlet.wiki.model.WikiPage getWikiPageByUuidAndGroupId(
98          java.lang.String uuid, long groupId)
99          throws com.liferay.portal.kernel.exception.PortalException,
100             com.liferay.portal.kernel.exception.SystemException {
101         return _wikiPageLocalService.getWikiPageByUuidAndGroupId(uuid, groupId);
102     }
103 
104     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getWikiPages(
105         int start, int end)
106         throws com.liferay.portal.kernel.exception.SystemException {
107         return _wikiPageLocalService.getWikiPages(start, end);
108     }
109 
110     public int getWikiPagesCount()
111         throws com.liferay.portal.kernel.exception.SystemException {
112         return _wikiPageLocalService.getWikiPagesCount();
113     }
114 
115     public com.liferay.portlet.wiki.model.WikiPage updateWikiPage(
116         com.liferay.portlet.wiki.model.WikiPage wikiPage)
117         throws com.liferay.portal.kernel.exception.SystemException {
118         return _wikiPageLocalService.updateWikiPage(wikiPage);
119     }
120 
121     public com.liferay.portlet.wiki.model.WikiPage updateWikiPage(
122         com.liferay.portlet.wiki.model.WikiPage wikiPage, boolean merge)
123         throws com.liferay.portal.kernel.exception.SystemException {
124         return _wikiPageLocalService.updateWikiPage(wikiPage, merge);
125     }
126 
127     public com.liferay.portlet.wiki.model.WikiPage addPage(long userId,
128         long nodeId, java.lang.String title, java.lang.String content,
129         java.lang.String summary, boolean minorEdit,
130         com.liferay.portal.service.ServiceContext serviceContext)
131         throws com.liferay.portal.kernel.exception.PortalException,
132             com.liferay.portal.kernel.exception.SystemException {
133         return _wikiPageLocalService.addPage(userId, nodeId, title, content,
134             summary, minorEdit, serviceContext);
135     }
136 
137     public com.liferay.portlet.wiki.model.WikiPage addPage(
138         java.lang.String uuid, long userId, long nodeId,
139         java.lang.String title, double version, java.lang.String content,
140         java.lang.String summary, boolean minorEdit, java.lang.String format,
141         boolean head, java.lang.String parentTitle,
142         java.lang.String redirectTitle,
143         com.liferay.portal.service.ServiceContext serviceContext)
144         throws com.liferay.portal.kernel.exception.PortalException,
145             com.liferay.portal.kernel.exception.SystemException {
146         return _wikiPageLocalService.addPage(uuid, userId, nodeId, title,
147             version, content, summary, minorEdit, format, head, parentTitle,
148             redirectTitle, serviceContext);
149     }
150 
151     public void addPageAttachment(long companyId, java.lang.String dirName,
152         java.util.Date modifiedDate, java.lang.String fileName,
153         java.io.InputStream inputStream)
154         throws com.liferay.portal.kernel.exception.PortalException,
155             com.liferay.portal.kernel.exception.SystemException {
156         _wikiPageLocalService.addPageAttachment(companyId, dirName,
157             modifiedDate, fileName, inputStream);
158     }
159 
160     public void addPageAttachments(long nodeId, java.lang.String title,
161         java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, byte[]>> files)
162         throws com.liferay.portal.kernel.exception.PortalException,
163             com.liferay.portal.kernel.exception.SystemException {
164         _wikiPageLocalService.addPageAttachments(nodeId, title, files);
165     }
166 
167     public void addPageResources(long nodeId, java.lang.String title,
168         boolean addCommunityPermissions, boolean addGuestPermissions)
169         throws com.liferay.portal.kernel.exception.PortalException,
170             com.liferay.portal.kernel.exception.SystemException {
171         _wikiPageLocalService.addPageResources(nodeId, title,
172             addCommunityPermissions, addGuestPermissions);
173     }
174 
175     public void addPageResources(com.liferay.portlet.wiki.model.WikiPage page,
176         boolean addCommunityPermissions, boolean addGuestPermissions)
177         throws com.liferay.portal.kernel.exception.PortalException,
178             com.liferay.portal.kernel.exception.SystemException {
179         _wikiPageLocalService.addPageResources(page, addCommunityPermissions,
180             addGuestPermissions);
181     }
182 
183     public void addPageResources(long nodeId, java.lang.String title,
184         java.lang.String[] communityPermissions,
185         java.lang.String[] guestPermissions)
186         throws com.liferay.portal.kernel.exception.PortalException,
187             com.liferay.portal.kernel.exception.SystemException {
188         _wikiPageLocalService.addPageResources(nodeId, title,
189             communityPermissions, guestPermissions);
190     }
191 
192     public void addPageResources(com.liferay.portlet.wiki.model.WikiPage page,
193         java.lang.String[] communityPermissions,
194         java.lang.String[] guestPermissions)
195         throws com.liferay.portal.kernel.exception.PortalException,
196             com.liferay.portal.kernel.exception.SystemException {
197         _wikiPageLocalService.addPageResources(page, communityPermissions,
198             guestPermissions);
199     }
200 
201     public void changeParent(long userId, long nodeId, java.lang.String title,
202         java.lang.String newParentTitle,
203         com.liferay.portal.service.ServiceContext serviceContext)
204         throws com.liferay.portal.kernel.exception.PortalException,
205             com.liferay.portal.kernel.exception.SystemException {
206         _wikiPageLocalService.changeParent(userId, nodeId, title,
207             newParentTitle, serviceContext);
208     }
209 
210     public void deletePage(long nodeId, java.lang.String title)
211         throws com.liferay.portal.kernel.exception.PortalException,
212             com.liferay.portal.kernel.exception.SystemException {
213         _wikiPageLocalService.deletePage(nodeId, title);
214     }
215 
216     public void deletePage(com.liferay.portlet.wiki.model.WikiPage page)
217         throws com.liferay.portal.kernel.exception.PortalException,
218             com.liferay.portal.kernel.exception.SystemException {
219         _wikiPageLocalService.deletePage(page);
220     }
221 
222     public void deletePageAttachment(long nodeId, java.lang.String title,
223         java.lang.String fileName)
224         throws com.liferay.portal.kernel.exception.PortalException,
225             com.liferay.portal.kernel.exception.SystemException {
226         _wikiPageLocalService.deletePageAttachment(nodeId, title, fileName);
227     }
228 
229     public void deletePages(long nodeId)
230         throws com.liferay.portal.kernel.exception.PortalException,
231             com.liferay.portal.kernel.exception.SystemException {
232         _wikiPageLocalService.deletePages(nodeId);
233     }
234 
235     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getChildren(
236         long nodeId, boolean head, java.lang.String parentTitle)
237         throws com.liferay.portal.kernel.exception.SystemException {
238         return _wikiPageLocalService.getChildren(nodeId, head, parentTitle);
239     }
240 
241     public com.liferay.portlet.wiki.model.WikiPage getDraftPage(long nodeId,
242         java.lang.String title)
243         throws com.liferay.portal.kernel.exception.PortalException,
244             com.liferay.portal.kernel.exception.SystemException {
245         return _wikiPageLocalService.getDraftPage(nodeId, title);
246     }
247 
248     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getDraftPages(
249         long userId, long nodeId, int start, int end)
250         throws com.liferay.portal.kernel.exception.SystemException {
251         return _wikiPageLocalService.getDraftPages(userId, nodeId, start, end);
252     }
253 
254     public int getDraftPagesCount(long userId, long nodeId)
255         throws com.liferay.portal.kernel.exception.SystemException {
256         return _wikiPageLocalService.getDraftPagesCount(userId, nodeId);
257     }
258 
259     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getIncomingLinks(
260         long nodeId, java.lang.String title)
261         throws com.liferay.portal.kernel.exception.PortalException,
262             com.liferay.portal.kernel.exception.SystemException {
263         return _wikiPageLocalService.getIncomingLinks(nodeId, title);
264     }
265 
266     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getNoAssetPages()
267         throws com.liferay.portal.kernel.exception.SystemException {
268         return _wikiPageLocalService.getNoAssetPages();
269     }
270 
271     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOrphans(
272         long nodeId)
273         throws com.liferay.portal.kernel.exception.PortalException,
274             com.liferay.portal.kernel.exception.SystemException {
275         return _wikiPageLocalService.getOrphans(nodeId);
276     }
277 
278     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOutgoingLinks(
279         long nodeId, java.lang.String title)
280         throws com.liferay.portal.kernel.exception.PortalException,
281             com.liferay.portal.kernel.exception.SystemException {
282         return _wikiPageLocalService.getOutgoingLinks(nodeId, title);
283     }
284 
285     public com.liferay.portlet.wiki.model.WikiPage getPage(long resourcePrimKey)
286         throws com.liferay.portal.kernel.exception.PortalException,
287             com.liferay.portal.kernel.exception.SystemException {
288         return _wikiPageLocalService.getPage(resourcePrimKey);
289     }
290 
291     public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
292         java.lang.String title)
293         throws com.liferay.portal.kernel.exception.PortalException,
294             com.liferay.portal.kernel.exception.SystemException {
295         return _wikiPageLocalService.getPage(nodeId, title);
296     }
297 
298     public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
299         java.lang.String title, boolean head)
300         throws com.liferay.portal.kernel.exception.PortalException,
301             com.liferay.portal.kernel.exception.SystemException {
302         return _wikiPageLocalService.getPage(nodeId, title, head);
303     }
304 
305     public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
306         java.lang.String title, double version)
307         throws com.liferay.portal.kernel.exception.PortalException,
308             com.liferay.portal.kernel.exception.SystemException {
309         return _wikiPageLocalService.getPage(nodeId, title, version);
310     }
311 
312     public com.liferay.portlet.wiki.model.WikiPageDisplay getPageDisplay(
313         long nodeId, java.lang.String title,
314         javax.portlet.PortletURL viewPageURL,
315         javax.portlet.PortletURL editPageURL,
316         java.lang.String attachmentURLPrefix)
317         throws com.liferay.portal.kernel.exception.PortalException,
318             com.liferay.portal.kernel.exception.SystemException {
319         return _wikiPageLocalService.getPageDisplay(nodeId, title, viewPageURL,
320             editPageURL, attachmentURLPrefix);
321     }
322 
323     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
324         long nodeId, int start, int end)
325         throws com.liferay.portal.kernel.exception.SystemException {
326         return _wikiPageLocalService.getPages(nodeId, start, end);
327     }
328 
329     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
330         java.lang.String format)
331         throws com.liferay.portal.kernel.exception.SystemException {
332         return _wikiPageLocalService.getPages(format);
333     }
334 
335     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
336         long nodeId, java.lang.String title, int start, int end)
337         throws com.liferay.portal.kernel.exception.SystemException {
338         return _wikiPageLocalService.getPages(nodeId, title, start, end);
339     }
340 
341     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
342         long nodeId, java.lang.String title, int start, int end,
343         com.liferay.portal.kernel.util.OrderByComparator obc)
344         throws com.liferay.portal.kernel.exception.SystemException {
345         return _wikiPageLocalService.getPages(nodeId, title, start, end, obc);
346     }
347 
348     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
349         long nodeId, boolean head, int start, int end)
350         throws com.liferay.portal.kernel.exception.SystemException {
351         return _wikiPageLocalService.getPages(nodeId, head, start, end);
352     }
353 
354     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
355         long resourcePrimKey, long nodeId, int status)
356         throws com.liferay.portal.kernel.exception.SystemException {
357         return _wikiPageLocalService.getPages(resourcePrimKey, nodeId, status);
358     }
359 
360     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
361         long nodeId, java.lang.String title, boolean head, int start, int end)
362         throws com.liferay.portal.kernel.exception.SystemException {
363         return _wikiPageLocalService.getPages(nodeId, title, head, start, end);
364     }
365 
366     public int getPagesCount(long nodeId)
367         throws com.liferay.portal.kernel.exception.SystemException {
368         return _wikiPageLocalService.getPagesCount(nodeId);
369     }
370 
371     public int getPagesCount(long nodeId, java.lang.String title)
372         throws com.liferay.portal.kernel.exception.SystemException {
373         return _wikiPageLocalService.getPagesCount(nodeId, title);
374     }
375 
376     public int getPagesCount(long nodeId, boolean head)
377         throws com.liferay.portal.kernel.exception.SystemException {
378         return _wikiPageLocalService.getPagesCount(nodeId, head);
379     }
380 
381     public int getPagesCount(long nodeId, java.lang.String title, boolean head)
382         throws com.liferay.portal.kernel.exception.SystemException {
383         return _wikiPageLocalService.getPagesCount(nodeId, title, head);
384     }
385 
386     public int getPagesCount(java.lang.String format)
387         throws com.liferay.portal.kernel.exception.SystemException {
388         return _wikiPageLocalService.getPagesCount(format);
389     }
390 
391     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getRecentChanges(
392         long nodeId, int start, int end)
393         throws com.liferay.portal.kernel.exception.SystemException {
394         return _wikiPageLocalService.getRecentChanges(nodeId, start, end);
395     }
396 
397     public int getRecentChangesCount(long nodeId)
398         throws com.liferay.portal.kernel.exception.SystemException {
399         return _wikiPageLocalService.getRecentChangesCount(nodeId);
400     }
401 
402     public boolean hasDraftPage(long nodeId, java.lang.String title)
403         throws com.liferay.portal.kernel.exception.SystemException {
404         return _wikiPageLocalService.hasDraftPage(nodeId, title);
405     }
406 
407     public void movePage(long userId, long nodeId, java.lang.String title,
408         java.lang.String newTitle,
409         com.liferay.portal.service.ServiceContext serviceContext)
410         throws com.liferay.portal.kernel.exception.PortalException,
411             com.liferay.portal.kernel.exception.SystemException {
412         _wikiPageLocalService.movePage(userId, nodeId, title, newTitle,
413             serviceContext);
414     }
415 
416     public void movePage(long userId, long nodeId, java.lang.String title,
417         java.lang.String newTitle, boolean strict,
418         com.liferay.portal.service.ServiceContext serviceContext)
419         throws com.liferay.portal.kernel.exception.PortalException,
420             com.liferay.portal.kernel.exception.SystemException {
421         _wikiPageLocalService.movePage(userId, nodeId, title, newTitle, strict,
422             serviceContext);
423     }
424 
425     public com.liferay.portlet.wiki.model.WikiPage revertPage(long userId,
426         long nodeId, java.lang.String title, double version,
427         com.liferay.portal.service.ServiceContext serviceContext)
428         throws com.liferay.portal.kernel.exception.PortalException,
429             com.liferay.portal.kernel.exception.SystemException {
430         return _wikiPageLocalService.revertPage(userId, nodeId, title, version,
431             serviceContext);
432     }
433 
434     public void subscribePage(long userId, long nodeId, java.lang.String title)
435         throws com.liferay.portal.kernel.exception.PortalException,
436             com.liferay.portal.kernel.exception.SystemException {
437         _wikiPageLocalService.subscribePage(userId, nodeId, title);
438     }
439 
440     public void unsubscribePage(long userId, long nodeId, java.lang.String title)
441         throws com.liferay.portal.kernel.exception.PortalException,
442             com.liferay.portal.kernel.exception.SystemException {
443         _wikiPageLocalService.unsubscribePage(userId, nodeId, title);
444     }
445 
446     public void updateAsset(long userId,
447         com.liferay.portlet.wiki.model.WikiPage page, long[] assetCategoryIds,
448         java.lang.String[] assetTagNames)
449         throws com.liferay.portal.kernel.exception.PortalException,
450             com.liferay.portal.kernel.exception.SystemException {
451         _wikiPageLocalService.updateAsset(userId, page, assetCategoryIds,
452             assetTagNames);
453     }
454 
455     public com.liferay.portlet.wiki.model.WikiPage updatePage(long userId,
456         long nodeId, java.lang.String title, double version,
457         java.lang.String content, java.lang.String summary, boolean minorEdit,
458         java.lang.String format, java.lang.String parentTitle,
459         java.lang.String redirectTitle,
460         com.liferay.portal.service.ServiceContext serviceContext)
461         throws com.liferay.portal.kernel.exception.PortalException,
462             com.liferay.portal.kernel.exception.SystemException {
463         return _wikiPageLocalService.updatePage(userId, nodeId, title, version,
464             content, summary, minorEdit, format, parentTitle, redirectTitle,
465             serviceContext);
466     }
467 
468     public com.liferay.portlet.wiki.model.WikiPage updateStatus(long userId,
469         long resourcePrimKey, int status,
470         com.liferay.portal.service.ServiceContext serviceContext)
471         throws com.liferay.portal.kernel.exception.PortalException,
472             com.liferay.portal.kernel.exception.SystemException {
473         return _wikiPageLocalService.updateStatus(userId, resourcePrimKey,
474             status, serviceContext);
475     }
476 
477     public com.liferay.portlet.wiki.model.WikiPage updateStatus(long userId,
478         com.liferay.portlet.wiki.model.WikiPage page, int status,
479         com.liferay.portal.service.ServiceContext serviceContext)
480         throws com.liferay.portal.kernel.exception.PortalException,
481             com.liferay.portal.kernel.exception.SystemException {
482         return _wikiPageLocalService.updateStatus(userId, page, status,
483             serviceContext);
484     }
485 
486     public void validateTitle(java.lang.String title)
487         throws com.liferay.portal.kernel.exception.PortalException {
488         _wikiPageLocalService.validateTitle(title);
489     }
490 
491     public WikiPageLocalService getWrappedWikiPageLocalService() {
492         return _wikiPageLocalService;
493     }
494 
495     private WikiPageLocalService _wikiPageLocalService;
496 }