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