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          javax.portlet.PortletPreferences prefs,
43          com.liferay.portal.theme.ThemeDisplay themeDisplay)
44          throws com.liferay.portal.PortalException,
45              com.liferay.portal.SystemException, java.rmi.RemoteException {
46          return _wikiPageService.addPage(nodeId, title, content, summary,
47              minorEdit, prefs, themeDisplay);
48      }
49  
50      public com.liferay.portlet.wiki.model.WikiPage addPage(long nodeId,
51          java.lang.String title, java.lang.String content,
52          java.lang.String summary, boolean minorEdit, java.lang.String format,
53          java.lang.String parentTitle, java.lang.String redirectTitle,
54          java.lang.String[] tagsEntries, javax.portlet.PortletPreferences prefs,
55          com.liferay.portal.theme.ThemeDisplay themeDisplay)
56          throws com.liferay.portal.PortalException,
57              com.liferay.portal.SystemException, java.rmi.RemoteException {
58          return _wikiPageService.addPage(nodeId, title, content, summary,
59              minorEdit, format, parentTitle, redirectTitle, tagsEntries, prefs,
60              themeDisplay);
61      }
62  
63      public void addPageAttachments(long nodeId, java.lang.String title,
64          java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files)
65          throws com.liferay.portal.PortalException,
66              com.liferay.portal.SystemException, java.rmi.RemoteException {
67          _wikiPageService.addPageAttachments(nodeId, title, files);
68      }
69  
70      public void changeParent(long nodeId, java.lang.String title,
71          java.lang.String newParentTitle,
72          javax.portlet.PortletPreferences prefs,
73          com.liferay.portal.theme.ThemeDisplay themeDisplay)
74          throws com.liferay.portal.PortalException,
75              com.liferay.portal.SystemException, java.rmi.RemoteException {
76          _wikiPageService.changeParent(nodeId, title, newParentTitle, prefs,
77              themeDisplay);
78      }
79  
80      public void deletePage(long nodeId, java.lang.String title)
81          throws com.liferay.portal.PortalException,
82              com.liferay.portal.SystemException, java.rmi.RemoteException {
83          _wikiPageService.deletePage(nodeId, title);
84      }
85  
86      public void deletePageAttachment(long nodeId, java.lang.String title,
87          java.lang.String fileName)
88          throws com.liferay.portal.PortalException,
89              com.liferay.portal.SystemException, java.rmi.RemoteException {
90          _wikiPageService.deletePageAttachment(nodeId, title, fileName);
91      }
92  
93      public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getNodePages(
94          long nodeId, int max)
95          throws com.liferay.portal.PortalException,
96              com.liferay.portal.SystemException, java.rmi.RemoteException {
97          return _wikiPageService.getNodePages(nodeId, max);
98      }
99  
100     public java.lang.String getNodePagesRSS(long nodeId, int max,
101         java.lang.String type, double version, java.lang.String displayStyle,
102         java.lang.String feedURL, java.lang.String entryURL)
103         throws com.liferay.portal.PortalException,
104             com.liferay.portal.SystemException, java.rmi.RemoteException {
105         return _wikiPageService.getNodePagesRSS(nodeId, max, type, version,
106             displayStyle, feedURL, entryURL);
107     }
108 
109     public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
110         java.lang.String title)
111         throws com.liferay.portal.PortalException,
112             com.liferay.portal.SystemException, java.rmi.RemoteException {
113         return _wikiPageService.getPage(nodeId, title);
114     }
115 
116     public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
117         java.lang.String title, double version)
118         throws com.liferay.portal.PortalException,
119             com.liferay.portal.SystemException, java.rmi.RemoteException {
120         return _wikiPageService.getPage(nodeId, title, version);
121     }
122 
123     public java.lang.String getPagesRSS(long companyId, long nodeId,
124         java.lang.String title, int max, java.lang.String type, double version,
125         java.lang.String displayStyle, java.lang.String feedURL,
126         java.lang.String entryURL, java.util.Locale locale)
127         throws com.liferay.portal.PortalException,
128             com.liferay.portal.SystemException, java.rmi.RemoteException {
129         return _wikiPageService.getPagesRSS(companyId, nodeId, title, max,
130             type, version, displayStyle, feedURL, entryURL, locale);
131     }
132 
133     public void movePage(long nodeId, java.lang.String title,
134         java.lang.String newTitle, javax.portlet.PortletPreferences prefs,
135         com.liferay.portal.theme.ThemeDisplay themeDisplay)
136         throws com.liferay.portal.PortalException,
137             com.liferay.portal.SystemException, java.rmi.RemoteException {
138         _wikiPageService.movePage(nodeId, title, newTitle, prefs, themeDisplay);
139     }
140 
141     public com.liferay.portlet.wiki.model.WikiPage revertPage(long nodeId,
142         java.lang.String title, double version,
143         javax.portlet.PortletPreferences prefs,
144         com.liferay.portal.theme.ThemeDisplay themeDisplay)
145         throws com.liferay.portal.PortalException,
146             com.liferay.portal.SystemException, java.rmi.RemoteException {
147         return _wikiPageService.revertPage(nodeId, title, version, prefs,
148             themeDisplay);
149     }
150 
151     public void subscribePage(long nodeId, java.lang.String title)
152         throws com.liferay.portal.PortalException,
153             com.liferay.portal.SystemException, java.rmi.RemoteException {
154         _wikiPageService.subscribePage(nodeId, title);
155     }
156 
157     public void unsubscribePage(long nodeId, java.lang.String title)
158         throws com.liferay.portal.PortalException,
159             com.liferay.portal.SystemException, java.rmi.RemoteException {
160         _wikiPageService.unsubscribePage(nodeId, title);
161     }
162 
163     public com.liferay.portlet.wiki.model.WikiPage updatePage(long nodeId,
164         java.lang.String title, double version, java.lang.String content,
165         java.lang.String summary, boolean minorEdit, java.lang.String format,
166         java.lang.String parentTitle, java.lang.String redirectTitle,
167         java.lang.String[] tagsEntries, javax.portlet.PortletPreferences prefs,
168         com.liferay.portal.theme.ThemeDisplay themeDisplay)
169         throws com.liferay.portal.PortalException,
170             com.liferay.portal.SystemException, java.rmi.RemoteException {
171         return _wikiPageService.updatePage(nodeId, title, version, content,
172             summary, minorEdit, format, parentTitle, redirectTitle,
173             tagsEntries, prefs, themeDisplay);
174     }
175 
176     public WikiPageService getWrappedWikiPageService() {
177         return _wikiPageService;
178     }
179 
180     private WikiPageService _wikiPageService;
181 }