1   /**
2    * Copyright (c) 2000-2008 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 provides static methods for the
36   * <code>com.liferay.portlet.wiki.service.WikiPageService</code>
37   * bean. The static methods of this class calls the same methods of the bean
38   * instance. It's convenient to be able to just write one line to call a method
39   * on a bean instead of writing a lookup call and a method call.
40   * </p>
41   *
42   * @author Brian Wing Shun Chan
43   *
44   * @see com.liferay.portlet.wiki.service.WikiPageService
45   *
46   */
47  public class WikiPageServiceUtil {
48      public static com.liferay.portlet.wiki.model.WikiPage addPage(long nodeId,
49          java.lang.String title, java.lang.String content,
50          java.lang.String summary, boolean minorEdit,
51          javax.portlet.PortletPreferences prefs,
52          com.liferay.portal.theme.ThemeDisplay themeDisplay)
53          throws com.liferay.portal.PortalException,
54              com.liferay.portal.SystemException, java.rmi.RemoteException {
55          return _service.addPage(nodeId, title, content, summary, minorEdit,
56              prefs, themeDisplay);
57      }
58  
59      public static void addPageAttachments(long nodeId, java.lang.String title,
60          java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files)
61          throws com.liferay.portal.PortalException,
62              com.liferay.portal.SystemException, java.rmi.RemoteException {
63          _service.addPageAttachments(nodeId, title, files);
64      }
65  
66      public static void changeParent(long nodeId, java.lang.String title,
67          java.lang.String newParentTitle,
68          javax.portlet.PortletPreferences prefs,
69          com.liferay.portal.theme.ThemeDisplay themeDisplay)
70          throws com.liferay.portal.PortalException,
71              com.liferay.portal.SystemException, java.rmi.RemoteException {
72          _service.changeParent(nodeId, title, newParentTitle, prefs, themeDisplay);
73      }
74  
75      public static void deletePage(long nodeId, java.lang.String title)
76          throws com.liferay.portal.PortalException,
77              com.liferay.portal.SystemException, java.rmi.RemoteException {
78          _service.deletePage(nodeId, title);
79      }
80  
81      public static void deletePageAttachment(long nodeId,
82          java.lang.String title, java.lang.String fileName)
83          throws com.liferay.portal.PortalException,
84              com.liferay.portal.SystemException, java.rmi.RemoteException {
85          _service.deletePageAttachment(nodeId, title, fileName);
86      }
87  
88      public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getNodePages(
89          long nodeId, int max)
90          throws com.liferay.portal.PortalException,
91              com.liferay.portal.SystemException, java.rmi.RemoteException {
92          return _service.getNodePages(nodeId, max);
93      }
94  
95      public static java.lang.String getNodePagesRSS(long nodeId, int max,
96          java.lang.String type, double version, java.lang.String displayStyle,
97          java.lang.String feedURL, java.lang.String entryURL)
98          throws com.liferay.portal.PortalException,
99              com.liferay.portal.SystemException, java.rmi.RemoteException {
100         return _service.getNodePagesRSS(nodeId, max, type, version,
101             displayStyle, feedURL, entryURL);
102     }
103 
104     public static com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
105         java.lang.String title)
106         throws com.liferay.portal.PortalException,
107             com.liferay.portal.SystemException, java.rmi.RemoteException {
108         return _service.getPage(nodeId, title);
109     }
110 
111     public static com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
112         java.lang.String title, double version)
113         throws com.liferay.portal.PortalException,
114             com.liferay.portal.SystemException, java.rmi.RemoteException {
115         return _service.getPage(nodeId, title, version);
116     }
117 
118     public static java.lang.String getPagesRSS(long companyId, long nodeId,
119         java.lang.String title, int max, java.lang.String type, double version,
120         java.lang.String displayStyle, java.lang.String feedURL,
121         java.lang.String entryURL, java.util.Locale locale)
122         throws com.liferay.portal.PortalException,
123             com.liferay.portal.SystemException, java.rmi.RemoteException {
124         return _service.getPagesRSS(companyId, nodeId, title, max, type,
125             version, displayStyle, feedURL, entryURL, locale);
126     }
127 
128     public static void movePage(long nodeId, java.lang.String title,
129         java.lang.String newTitle, javax.portlet.PortletPreferences prefs,
130         com.liferay.portal.theme.ThemeDisplay themeDisplay)
131         throws com.liferay.portal.PortalException,
132             com.liferay.portal.SystemException, java.rmi.RemoteException {
133         _service.movePage(nodeId, title, newTitle, prefs, themeDisplay);
134     }
135 
136     public static com.liferay.portlet.wiki.model.WikiPage revertPage(
137         long nodeId, java.lang.String title, double version,
138         javax.portlet.PortletPreferences prefs,
139         com.liferay.portal.theme.ThemeDisplay themeDisplay)
140         throws com.liferay.portal.PortalException,
141             com.liferay.portal.SystemException, java.rmi.RemoteException {
142         return _service.revertPage(nodeId, title, version, prefs, themeDisplay);
143     }
144 
145     public static void subscribePage(long nodeId, java.lang.String title)
146         throws com.liferay.portal.PortalException,
147             com.liferay.portal.SystemException, java.rmi.RemoteException {
148         _service.subscribePage(nodeId, title);
149     }
150 
151     public static void unsubscribePage(long nodeId, java.lang.String title)
152         throws com.liferay.portal.PortalException,
153             com.liferay.portal.SystemException, java.rmi.RemoteException {
154         _service.unsubscribePage(nodeId, title);
155     }
156 
157     public static com.liferay.portlet.wiki.model.WikiPage updatePage(
158         long nodeId, java.lang.String title, double version,
159         java.lang.String content, java.lang.String summary, boolean minorEdit,
160         java.lang.String format, java.lang.String parentTitle,
161         java.lang.String redirectTitle, java.lang.String[] tagsEntries,
162         javax.portlet.PortletPreferences prefs,
163         com.liferay.portal.theme.ThemeDisplay themeDisplay)
164         throws com.liferay.portal.PortalException,
165             com.liferay.portal.SystemException, java.rmi.RemoteException {
166         return _service.updatePage(nodeId, title, version, content, summary,
167             minorEdit, format, parentTitle, redirectTitle, tagsEntries, prefs,
168             themeDisplay);
169     }
170 
171     public static WikiPageService getService() {
172         return _service;
173     }
174 
175     public void setService(WikiPageService service) {
176         _service = service;
177     }
178 
179     private static WikiPageService _service;
180 }