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="WikiPageServiceUtil.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 WikiPageService}.
28   * </p>
29   *
30   * @author    Brian Wing Shun Chan
31   * @see       WikiPageService
32   * @generated
33   */
34  public class WikiPageServiceWrapper implements WikiPageService {
35      public WikiPageServiceWrapper(WikiPageService wikiPageService) {
36          _wikiPageService = wikiPageService;
37      }
38  
39      public com.liferay.portlet.wiki.model.WikiPage addPage(long nodeId,
40          java.lang.String title, java.lang.String content,
41          java.lang.String summary, boolean minorEdit,
42          com.liferay.portal.service.ServiceContext serviceContext)
43          throws com.liferay.portal.kernel.exception.PortalException,
44              com.liferay.portal.kernel.exception.SystemException {
45          return _wikiPageService.addPage(nodeId, title, content, summary,
46              minorEdit, serviceContext);
47      }
48  
49      public com.liferay.portlet.wiki.model.WikiPage addPage(long nodeId,
50          java.lang.String title, java.lang.String content,
51          java.lang.String summary, boolean minorEdit, java.lang.String format,
52          java.lang.String parentTitle, java.lang.String redirectTitle,
53          com.liferay.portal.service.ServiceContext serviceContext)
54          throws com.liferay.portal.kernel.exception.PortalException,
55              com.liferay.portal.kernel.exception.SystemException {
56          return _wikiPageService.addPage(nodeId, title, content, summary,
57              minorEdit, format, parentTitle, redirectTitle, serviceContext);
58      }
59  
60      public void addPageAttachments(long nodeId, java.lang.String title,
61          java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, byte[]>> files)
62          throws com.liferay.portal.kernel.exception.PortalException,
63              com.liferay.portal.kernel.exception.SystemException {
64          _wikiPageService.addPageAttachments(nodeId, title, files);
65      }
66  
67      public void changeParent(long nodeId, java.lang.String title,
68          java.lang.String newParentTitle,
69          com.liferay.portal.service.ServiceContext serviceContext)
70          throws com.liferay.portal.kernel.exception.PortalException,
71              com.liferay.portal.kernel.exception.SystemException {
72          _wikiPageService.changeParent(nodeId, title, newParentTitle,
73              serviceContext);
74      }
75  
76      public void deletePage(long nodeId, java.lang.String title)
77          throws com.liferay.portal.kernel.exception.PortalException,
78              com.liferay.portal.kernel.exception.SystemException {
79          _wikiPageService.deletePage(nodeId, title);
80      }
81  
82      public void deletePageAttachment(long nodeId, java.lang.String title,
83          java.lang.String fileName)
84          throws com.liferay.portal.kernel.exception.PortalException,
85              com.liferay.portal.kernel.exception.SystemException {
86          _wikiPageService.deletePageAttachment(nodeId, title, fileName);
87      }
88  
89      public com.liferay.portlet.wiki.model.WikiPage getDraftPage(long nodeId,
90          java.lang.String title)
91          throws com.liferay.portal.kernel.exception.PortalException,
92              com.liferay.portal.kernel.exception.SystemException {
93          return _wikiPageService.getDraftPage(nodeId, title);
94      }
95  
96      public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getNodePages(
97          long nodeId, int max)
98          throws com.liferay.portal.kernel.exception.PortalException,
99              com.liferay.portal.kernel.exception.SystemException {
100         return _wikiPageService.getNodePages(nodeId, max);
101     }
102 
103     public java.lang.String getNodePagesRSS(long nodeId, int max,
104         java.lang.String type, double version, java.lang.String displayStyle,
105         java.lang.String feedURL, java.lang.String entryURL)
106         throws com.liferay.portal.kernel.exception.PortalException,
107             com.liferay.portal.kernel.exception.SystemException {
108         return _wikiPageService.getNodePagesRSS(nodeId, max, type, version,
109             displayStyle, feedURL, entryURL);
110     }
111 
112     public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
113         java.lang.String title)
114         throws com.liferay.portal.kernel.exception.PortalException,
115             com.liferay.portal.kernel.exception.SystemException {
116         return _wikiPageService.getPage(nodeId, title);
117     }
118 
119     public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
120         java.lang.String title, boolean head)
121         throws com.liferay.portal.kernel.exception.PortalException,
122             com.liferay.portal.kernel.exception.SystemException {
123         return _wikiPageService.getPage(nodeId, title, head);
124     }
125 
126     public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
127         java.lang.String title, double version)
128         throws com.liferay.portal.kernel.exception.PortalException,
129             com.liferay.portal.kernel.exception.SystemException {
130         return _wikiPageService.getPage(nodeId, title, version);
131     }
132 
133     public java.lang.String getPagesRSS(long companyId, long nodeId,
134         java.lang.String title, int max, java.lang.String type, double version,
135         java.lang.String displayStyle, java.lang.String feedURL,
136         java.lang.String entryURL, java.util.Locale locale)
137         throws com.liferay.portal.kernel.exception.PortalException,
138             com.liferay.portal.kernel.exception.SystemException {
139         return _wikiPageService.getPagesRSS(companyId, nodeId, title, max,
140             type, version, displayStyle, feedURL, entryURL, locale);
141     }
142 
143     public void movePage(long nodeId, java.lang.String title,
144         java.lang.String newTitle,
145         com.liferay.portal.service.ServiceContext serviceContext)
146         throws com.liferay.portal.kernel.exception.PortalException,
147             com.liferay.portal.kernel.exception.SystemException {
148         _wikiPageService.movePage(nodeId, title, newTitle, serviceContext);
149     }
150 
151     public com.liferay.portlet.wiki.model.WikiPage revertPage(long nodeId,
152         java.lang.String title, double version,
153         com.liferay.portal.service.ServiceContext serviceContext)
154         throws com.liferay.portal.kernel.exception.PortalException,
155             com.liferay.portal.kernel.exception.SystemException {
156         return _wikiPageService.revertPage(nodeId, title, version,
157             serviceContext);
158     }
159 
160     public void subscribePage(long nodeId, java.lang.String title)
161         throws com.liferay.portal.kernel.exception.PortalException,
162             com.liferay.portal.kernel.exception.SystemException {
163         _wikiPageService.subscribePage(nodeId, title);
164     }
165 
166     public void unsubscribePage(long nodeId, java.lang.String title)
167         throws com.liferay.portal.kernel.exception.PortalException,
168             com.liferay.portal.kernel.exception.SystemException {
169         _wikiPageService.unsubscribePage(nodeId, title);
170     }
171 
172     public com.liferay.portlet.wiki.model.WikiPage updatePage(long nodeId,
173         java.lang.String title, double version, java.lang.String content,
174         java.lang.String summary, boolean minorEdit, java.lang.String format,
175         java.lang.String parentTitle, java.lang.String redirectTitle,
176         com.liferay.portal.service.ServiceContext serviceContext)
177         throws com.liferay.portal.kernel.exception.PortalException,
178             com.liferay.portal.kernel.exception.SystemException {
179         return _wikiPageService.updatePage(nodeId, title, version, content,
180             summary, minorEdit, format, parentTitle, redirectTitle,
181             serviceContext);
182     }
183 
184     public WikiPageService getWrappedWikiPageService() {
185         return _wikiPageService;
186     }
187 
188     private WikiPageService _wikiPageService;
189 }