1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.wiki.service;
24  
25  
26  /**
27   * <a href="WikiPageServiceUtil.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * <p>
35   * This class is a wrapper for {@link WikiPageService}.
36   * </p>
37   *
38   * @author    Brian Wing Shun Chan
39   * @see       WikiPageService
40   * @generated
41   */
42  public class WikiPageServiceWrapper implements WikiPageService {
43      public WikiPageServiceWrapper(WikiPageService wikiPageService) {
44          _wikiPageService = wikiPageService;
45      }
46  
47      public com.liferay.portlet.wiki.model.WikiPage addPage(long nodeId,
48          java.lang.String title, java.lang.String content,
49          java.lang.String summary, boolean minorEdit,
50          com.liferay.portal.service.ServiceContext serviceContext)
51          throws com.liferay.portal.PortalException,
52              com.liferay.portal.SystemException {
53          return _wikiPageService.addPage(nodeId, title, content, summary,
54              minorEdit, serviceContext);
55      }
56  
57      public com.liferay.portlet.wiki.model.WikiPage addPage(long nodeId,
58          java.lang.String title, java.lang.String content,
59          java.lang.String summary, boolean minorEdit, java.lang.String format,
60          java.lang.String parentTitle, java.lang.String redirectTitle,
61          com.liferay.portal.service.ServiceContext serviceContext)
62          throws com.liferay.portal.PortalException,
63              com.liferay.portal.SystemException {
64          return _wikiPageService.addPage(nodeId, title, content, summary,
65              minorEdit, format, parentTitle, redirectTitle, serviceContext);
66      }
67  
68      public void addPageAttachments(long nodeId, java.lang.String title,
69          java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files)
70          throws com.liferay.portal.PortalException,
71              com.liferay.portal.SystemException {
72          _wikiPageService.addPageAttachments(nodeId, title, files);
73      }
74  
75      public void changeParent(long nodeId, java.lang.String title,
76          java.lang.String newParentTitle,
77          com.liferay.portal.service.ServiceContext serviceContext)
78          throws com.liferay.portal.PortalException,
79              com.liferay.portal.SystemException {
80          _wikiPageService.changeParent(nodeId, title, newParentTitle,
81              serviceContext);
82      }
83  
84      public void deletePage(long nodeId, java.lang.String title)
85          throws com.liferay.portal.PortalException,
86              com.liferay.portal.SystemException {
87          _wikiPageService.deletePage(nodeId, title);
88      }
89  
90      public void deletePageAttachment(long nodeId, java.lang.String title,
91          java.lang.String fileName)
92          throws com.liferay.portal.PortalException,
93              com.liferay.portal.SystemException {
94          _wikiPageService.deletePageAttachment(nodeId, title, fileName);
95      }
96  
97      public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getNodePages(
98          long nodeId, int max)
99          throws com.liferay.portal.PortalException,
100             com.liferay.portal.SystemException {
101         return _wikiPageService.getNodePages(nodeId, max);
102     }
103 
104     public java.lang.String getNodePagesRSS(long nodeId, int max,
105         java.lang.String type, double version, java.lang.String displayStyle,
106         java.lang.String feedURL, java.lang.String entryURL)
107         throws com.liferay.portal.PortalException,
108             com.liferay.portal.SystemException {
109         return _wikiPageService.getNodePagesRSS(nodeId, max, type, version,
110             displayStyle, feedURL, entryURL);
111     }
112 
113     public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
114         java.lang.String title)
115         throws com.liferay.portal.PortalException,
116             com.liferay.portal.SystemException {
117         return _wikiPageService.getPage(nodeId, title);
118     }
119 
120     public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
121         java.lang.String title, double version)
122         throws com.liferay.portal.PortalException,
123             com.liferay.portal.SystemException {
124         return _wikiPageService.getPage(nodeId, title, version);
125     }
126 
127     public java.lang.String getPagesRSS(long companyId, long nodeId,
128         java.lang.String title, int max, java.lang.String type, double version,
129         java.lang.String displayStyle, java.lang.String feedURL,
130         java.lang.String entryURL, java.util.Locale locale)
131         throws com.liferay.portal.PortalException,
132             com.liferay.portal.SystemException {
133         return _wikiPageService.getPagesRSS(companyId, nodeId, title, max,
134             type, version, displayStyle, feedURL, entryURL, locale);
135     }
136 
137     public void movePage(long nodeId, java.lang.String title,
138         java.lang.String newTitle,
139         com.liferay.portal.service.ServiceContext serviceContext)
140         throws com.liferay.portal.PortalException,
141             com.liferay.portal.SystemException {
142         _wikiPageService.movePage(nodeId, title, newTitle, serviceContext);
143     }
144 
145     public com.liferay.portlet.wiki.model.WikiPage revertPage(long nodeId,
146         java.lang.String title, double version,
147         com.liferay.portal.service.ServiceContext serviceContext)
148         throws com.liferay.portal.PortalException,
149             com.liferay.portal.SystemException {
150         return _wikiPageService.revertPage(nodeId, title, version,
151             serviceContext);
152     }
153 
154     public void subscribePage(long nodeId, java.lang.String title)
155         throws com.liferay.portal.PortalException,
156             com.liferay.portal.SystemException {
157         _wikiPageService.subscribePage(nodeId, title);
158     }
159 
160     public void unsubscribePage(long nodeId, java.lang.String title)
161         throws com.liferay.portal.PortalException,
162             com.liferay.portal.SystemException {
163         _wikiPageService.unsubscribePage(nodeId, title);
164     }
165 
166     public com.liferay.portlet.wiki.model.WikiPage updatePage(long nodeId,
167         java.lang.String title, double version, java.lang.String content,
168         java.lang.String summary, boolean minorEdit, java.lang.String format,
169         java.lang.String parentTitle, java.lang.String redirectTitle,
170         com.liferay.portal.service.ServiceContext serviceContext)
171         throws com.liferay.portal.PortalException,
172             com.liferay.portal.SystemException {
173         return _wikiPageService.updatePage(nodeId, title, version, content,
174             summary, minorEdit, format, parentTitle, redirectTitle,
175             serviceContext);
176     }
177 
178     public WikiPageService getWrappedWikiPageService() {
179         return _wikiPageService;
180     }
181 
182     private WikiPageService _wikiPageService;
183 }