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<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 java.util.List<com.liferay.portlet.wiki.model.WikiPage> getNodePages(
90          long nodeId, int max)
91          throws com.liferay.portal.kernel.exception.PortalException,
92              com.liferay.portal.kernel.exception.SystemException {
93          return _wikiPageService.getNodePages(nodeId, max);
94      }
95  
96      public java.lang.String getNodePagesRSS(long nodeId, int max,
97          java.lang.String type, double version, java.lang.String displayStyle,
98          java.lang.String feedURL, java.lang.String entryURL)
99          throws com.liferay.portal.kernel.exception.PortalException,
100             com.liferay.portal.kernel.exception.SystemException {
101         return _wikiPageService.getNodePagesRSS(nodeId, max, type, version,
102             displayStyle, feedURL, entryURL);
103     }
104 
105     public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
106         java.lang.String title)
107         throws com.liferay.portal.kernel.exception.PortalException,
108             com.liferay.portal.kernel.exception.SystemException {
109         return _wikiPageService.getPage(nodeId, title);
110     }
111 
112     public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
113         java.lang.String title, double version)
114         throws com.liferay.portal.kernel.exception.PortalException,
115             com.liferay.portal.kernel.exception.SystemException {
116         return _wikiPageService.getPage(nodeId, title, version);
117     }
118 
119     public java.lang.String getPagesRSS(long companyId, long nodeId,
120         java.lang.String title, int max, java.lang.String type, double version,
121         java.lang.String displayStyle, java.lang.String feedURL,
122         java.lang.String entryURL, java.util.Locale locale)
123         throws com.liferay.portal.kernel.exception.PortalException,
124             com.liferay.portal.kernel.exception.SystemException {
125         return _wikiPageService.getPagesRSS(companyId, nodeId, title, max,
126             type, version, displayStyle, feedURL, entryURL, locale);
127     }
128 
129     public void movePage(long nodeId, java.lang.String title,
130         java.lang.String newTitle,
131         com.liferay.portal.service.ServiceContext serviceContext)
132         throws com.liferay.portal.kernel.exception.PortalException,
133             com.liferay.portal.kernel.exception.SystemException {
134         _wikiPageService.movePage(nodeId, title, newTitle, serviceContext);
135     }
136 
137     public com.liferay.portlet.wiki.model.WikiPage revertPage(long nodeId,
138         java.lang.String title, double version,
139         com.liferay.portal.service.ServiceContext serviceContext)
140         throws com.liferay.portal.kernel.exception.PortalException,
141             com.liferay.portal.kernel.exception.SystemException {
142         return _wikiPageService.revertPage(nodeId, title, version,
143             serviceContext);
144     }
145 
146     public void subscribePage(long nodeId, java.lang.String title)
147         throws com.liferay.portal.kernel.exception.PortalException,
148             com.liferay.portal.kernel.exception.SystemException {
149         _wikiPageService.subscribePage(nodeId, title);
150     }
151 
152     public void unsubscribePage(long nodeId, java.lang.String title)
153         throws com.liferay.portal.kernel.exception.PortalException,
154             com.liferay.portal.kernel.exception.SystemException {
155         _wikiPageService.unsubscribePage(nodeId, title);
156     }
157 
158     public com.liferay.portlet.wiki.model.WikiPage updatePage(long nodeId,
159         java.lang.String title, double version, java.lang.String content,
160         java.lang.String summary, boolean minorEdit, java.lang.String format,
161         java.lang.String parentTitle, java.lang.String redirectTitle,
162         com.liferay.portal.service.ServiceContext serviceContext)
163         throws com.liferay.portal.kernel.exception.PortalException,
164             com.liferay.portal.kernel.exception.SystemException {
165         return _wikiPageService.updatePage(nodeId, title, version, content,
166             summary, minorEdit, format, parentTitle, redirectTitle,
167             serviceContext);
168     }
169 
170     public WikiPageService getWrappedWikiPageService() {
171         return _wikiPageService;
172     }
173 
174     private WikiPageService _wikiPageService;
175 }