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="WikiPageLocalServiceUtil.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.WikiPageLocalService</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.WikiPageLocalService
45   *
46   */
47  public class WikiPageLocalServiceUtil {
48      public static com.liferay.portlet.wiki.model.WikiPage addWikiPage(
49          com.liferay.portlet.wiki.model.WikiPage wikiPage)
50          throws com.liferay.portal.SystemException {
51          return _service.addWikiPage(wikiPage);
52      }
53  
54      public static void deleteWikiPage(long pageId)
55          throws com.liferay.portal.PortalException,
56              com.liferay.portal.SystemException {
57          _service.deleteWikiPage(pageId);
58      }
59  
60      public static void deleteWikiPage(
61          com.liferay.portlet.wiki.model.WikiPage wikiPage)
62          throws com.liferay.portal.SystemException {
63          _service.deleteWikiPage(wikiPage);
64      }
65  
66      public static java.util.List<Object> dynamicQuery(
67          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68          throws com.liferay.portal.SystemException {
69          return _service.dynamicQuery(dynamicQuery);
70      }
71  
72      public static java.util.List<Object> dynamicQuery(
73          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
74          int end) throws com.liferay.portal.SystemException {
75          return _service.dynamicQuery(dynamicQuery, start, end);
76      }
77  
78      public static com.liferay.portlet.wiki.model.WikiPage getWikiPage(
79          long pageId)
80          throws com.liferay.portal.PortalException,
81              com.liferay.portal.SystemException {
82          return _service.getWikiPage(pageId);
83      }
84  
85      public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getWikiPages(
86          int start, int end) throws com.liferay.portal.SystemException {
87          return _service.getWikiPages(start, end);
88      }
89  
90      public static int getWikiPagesCount()
91          throws com.liferay.portal.SystemException {
92          return _service.getWikiPagesCount();
93      }
94  
95      public static com.liferay.portlet.wiki.model.WikiPage updateWikiPage(
96          com.liferay.portlet.wiki.model.WikiPage wikiPage)
97          throws com.liferay.portal.SystemException {
98          return _service.updateWikiPage(wikiPage);
99      }
100 
101     public static com.liferay.portlet.wiki.model.WikiPage addPage(long userId,
102         long nodeId, java.lang.String title, java.lang.String content,
103         java.lang.String summary, boolean minorEdit,
104         javax.portlet.PortletPreferences prefs,
105         com.liferay.portal.theme.ThemeDisplay themeDisplay)
106         throws com.liferay.portal.PortalException,
107             com.liferay.portal.SystemException {
108         return _service.addPage(userId, nodeId, title, content, summary,
109             minorEdit, prefs, themeDisplay);
110     }
111 
112     public static com.liferay.portlet.wiki.model.WikiPage addPage(
113         java.lang.String uuid, long userId, long nodeId,
114         java.lang.String title, double version, java.lang.String content,
115         java.lang.String summary, boolean minorEdit, java.lang.String format,
116         boolean head, java.lang.String parentTitle,
117         java.lang.String redirectTitle, java.lang.String[] tagsEntries,
118         javax.portlet.PortletPreferences prefs,
119         com.liferay.portal.theme.ThemeDisplay themeDisplay)
120         throws com.liferay.portal.PortalException,
121             com.liferay.portal.SystemException {
122         return _service.addPage(uuid, userId, nodeId, title, version, content,
123             summary, minorEdit, format, head, parentTitle, redirectTitle,
124             tagsEntries, prefs, themeDisplay);
125     }
126 
127     public static void addPageAttachments(long nodeId, java.lang.String title,
128         java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files)
129         throws com.liferay.portal.PortalException,
130             com.liferay.portal.SystemException {
131         _service.addPageAttachments(nodeId, title, files);
132     }
133 
134     public static void addPageResources(long nodeId, java.lang.String title,
135         boolean addCommunityPermissions, boolean addGuestPermissions)
136         throws com.liferay.portal.PortalException,
137             com.liferay.portal.SystemException {
138         _service.addPageResources(nodeId, title, addCommunityPermissions,
139             addGuestPermissions);
140     }
141 
142     public static void addPageResources(
143         com.liferay.portlet.wiki.model.WikiNode node,
144         com.liferay.portlet.wiki.model.WikiPage page,
145         boolean addCommunityPermissions, boolean addGuestPermissions)
146         throws com.liferay.portal.PortalException,
147             com.liferay.portal.SystemException {
148         _service.addPageResources(node, page, addCommunityPermissions,
149             addGuestPermissions);
150     }
151 
152     public static void addPageResources(long nodeId, java.lang.String title,
153         java.lang.String[] communityPermissions,
154         java.lang.String[] guestPermissions)
155         throws com.liferay.portal.PortalException,
156             com.liferay.portal.SystemException {
157         _service.addPageResources(nodeId, title, communityPermissions,
158             guestPermissions);
159     }
160 
161     public static void addPageResources(
162         com.liferay.portlet.wiki.model.WikiNode node,
163         com.liferay.portlet.wiki.model.WikiPage page,
164         java.lang.String[] communityPermissions,
165         java.lang.String[] guestPermissions)
166         throws com.liferay.portal.PortalException,
167             com.liferay.portal.SystemException {
168         _service.addPageResources(node, page, communityPermissions,
169             guestPermissions);
170     }
171 
172     public static void changeParent(long userId, long nodeId,
173         java.lang.String title, java.lang.String newParentTitle,
174         javax.portlet.PortletPreferences prefs,
175         com.liferay.portal.theme.ThemeDisplay themeDisplay)
176         throws com.liferay.portal.PortalException,
177             com.liferay.portal.SystemException {
178         _service.changeParent(userId, nodeId, title, newParentTitle, prefs,
179             themeDisplay);
180     }
181 
182     public static void deletePage(long nodeId, java.lang.String title)
183         throws com.liferay.portal.PortalException,
184             com.liferay.portal.SystemException {
185         _service.deletePage(nodeId, title);
186     }
187 
188     public static void deletePage(com.liferay.portlet.wiki.model.WikiPage page)
189         throws com.liferay.portal.PortalException,
190             com.liferay.portal.SystemException {
191         _service.deletePage(page);
192     }
193 
194     public static void deletePageAttachment(long nodeId,
195         java.lang.String title, java.lang.String fileName)
196         throws com.liferay.portal.PortalException,
197             com.liferay.portal.SystemException {
198         _service.deletePageAttachment(nodeId, title, fileName);
199     }
200 
201     public static void deletePages(long nodeId)
202         throws com.liferay.portal.PortalException,
203             com.liferay.portal.SystemException {
204         _service.deletePages(nodeId);
205     }
206 
207     public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getChildren(
208         long nodeId, boolean head, java.lang.String parentTitle)
209         throws com.liferay.portal.SystemException {
210         return _service.getChildren(nodeId, head, parentTitle);
211     }
212 
213     public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getIncomingLinks(
214         long nodeId, java.lang.String title)
215         throws com.liferay.portal.PortalException,
216             com.liferay.portal.SystemException {
217         return _service.getIncomingLinks(nodeId, title);
218     }
219 
220     public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getNoAssetPages()
221         throws com.liferay.portal.SystemException {
222         return _service.getNoAssetPages();
223     }
224 
225     public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOrphans(
226         long nodeId)
227         throws com.liferay.portal.PortalException,
228             com.liferay.portal.SystemException {
229         return _service.getOrphans(nodeId);
230     }
231 
232     public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOutgoingLinks(
233         long nodeId, java.lang.String title)
234         throws com.liferay.portal.PortalException,
235             com.liferay.portal.SystemException {
236         return _service.getOutgoingLinks(nodeId, title);
237     }
238 
239     public static com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
240         java.lang.String title)
241         throws com.liferay.portal.PortalException,
242             com.liferay.portal.SystemException {
243         return _service.getPage(nodeId, title);
244     }
245 
246     public static com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
247         java.lang.String title, double version)
248         throws com.liferay.portal.PortalException,
249             com.liferay.portal.SystemException {
250         return _service.getPage(nodeId, title, version);
251     }
252 
253     public static com.liferay.portlet.wiki.model.WikiPageDisplay getPageDisplay(
254         long nodeId, java.lang.String title,
255         javax.portlet.PortletURL viewPageURL,
256         javax.portlet.PortletURL editPageURL,
257         java.lang.String attachmentURLPrefix)
258         throws com.liferay.portal.PortalException,
259             com.liferay.portal.SystemException {
260         return _service.getPageDisplay(nodeId, title, viewPageURL, editPageURL,
261             attachmentURLPrefix);
262     }
263 
264     public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
265         long nodeId, int start, int end)
266         throws com.liferay.portal.SystemException {
267         return _service.getPages(nodeId, start, end);
268     }
269 
270     public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
271         java.lang.String format) throws com.liferay.portal.SystemException {
272         return _service.getPages(format);
273     }
274 
275     public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
276         long nodeId, java.lang.String title, int start, int end)
277         throws com.liferay.portal.SystemException {
278         return _service.getPages(nodeId, title, start, end);
279     }
280 
281     public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
282         long nodeId, java.lang.String title, int start, int end,
283         com.liferay.portal.kernel.util.OrderByComparator obc)
284         throws com.liferay.portal.SystemException {
285         return _service.getPages(nodeId, title, start, end, obc);
286     }
287 
288     public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
289         long nodeId, boolean head, int start, int end)
290         throws com.liferay.portal.SystemException {
291         return _service.getPages(nodeId, head, start, end);
292     }
293 
294     public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
295         long nodeId, java.lang.String title, boolean head, int start, int end)
296         throws com.liferay.portal.SystemException {
297         return _service.getPages(nodeId, title, head, start, end);
298     }
299 
300     public static int getPagesCount(long nodeId)
301         throws com.liferay.portal.SystemException {
302         return _service.getPagesCount(nodeId);
303     }
304 
305     public static int getPagesCount(long nodeId, java.lang.String title)
306         throws com.liferay.portal.SystemException {
307         return _service.getPagesCount(nodeId, title);
308     }
309 
310     public static int getPagesCount(long nodeId, boolean head)
311         throws com.liferay.portal.SystemException {
312         return _service.getPagesCount(nodeId, head);
313     }
314 
315     public static int getPagesCount(long nodeId, java.lang.String title,
316         boolean head) throws com.liferay.portal.SystemException {
317         return _service.getPagesCount(nodeId, title, head);
318     }
319 
320     public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getRecentChanges(
321         long nodeId, int start, int end)
322         throws com.liferay.portal.SystemException {
323         return _service.getRecentChanges(nodeId, start, end);
324     }
325 
326     public static int getRecentChangesCount(long nodeId)
327         throws com.liferay.portal.SystemException {
328         return _service.getRecentChangesCount(nodeId);
329     }
330 
331     public static void movePage(long userId, long nodeId,
332         java.lang.String title, java.lang.String newTitle,
333         javax.portlet.PortletPreferences prefs,
334         com.liferay.portal.theme.ThemeDisplay themeDisplay)
335         throws com.liferay.portal.PortalException,
336             com.liferay.portal.SystemException {
337         _service.movePage(userId, nodeId, title, newTitle, prefs, themeDisplay);
338     }
339 
340     public static void movePage(long userId, long nodeId,
341         java.lang.String title, java.lang.String newTitle, boolean strict,
342         javax.portlet.PortletPreferences prefs,
343         com.liferay.portal.theme.ThemeDisplay themeDisplay)
344         throws com.liferay.portal.PortalException,
345             com.liferay.portal.SystemException {
346         _service.movePage(userId, nodeId, title, newTitle, strict, prefs,
347             themeDisplay);
348     }
349 
350     public static com.liferay.portlet.wiki.model.WikiPage revertPage(
351         long userId, long nodeId, java.lang.String title, double version,
352         javax.portlet.PortletPreferences prefs,
353         com.liferay.portal.theme.ThemeDisplay themeDisplay)
354         throws com.liferay.portal.PortalException,
355             com.liferay.portal.SystemException {
356         return _service.revertPage(userId, nodeId, title, version, prefs,
357             themeDisplay);
358     }
359 
360     public static void subscribePage(long userId, long nodeId,
361         java.lang.String title)
362         throws com.liferay.portal.PortalException,
363             com.liferay.portal.SystemException {
364         _service.subscribePage(userId, nodeId, title);
365     }
366 
367     public static void unsubscribePage(long userId, long nodeId,
368         java.lang.String title)
369         throws com.liferay.portal.PortalException,
370             com.liferay.portal.SystemException {
371         _service.unsubscribePage(userId, nodeId, title);
372     }
373 
374     public static com.liferay.portlet.wiki.model.WikiPage updatePage(
375         long userId, long nodeId, java.lang.String title, double version,
376         java.lang.String content, java.lang.String summary, boolean minorEdit,
377         java.lang.String format, java.lang.String parentTitle,
378         java.lang.String redirectTitle, java.lang.String[] tagsEntries,
379         javax.portlet.PortletPreferences prefs,
380         com.liferay.portal.theme.ThemeDisplay themeDisplay)
381         throws com.liferay.portal.PortalException,
382             com.liferay.portal.SystemException {
383         return _service.updatePage(userId, nodeId, title, version, content,
384             summary, minorEdit, format, parentTitle, redirectTitle,
385             tagsEntries, prefs, themeDisplay);
386     }
387 
388     public static void updateTagsAsset(long userId,
389         com.liferay.portlet.wiki.model.WikiPage page,
390         java.lang.String[] tagsEntries)
391         throws com.liferay.portal.PortalException,
392             com.liferay.portal.SystemException {
393         _service.updateTagsAsset(userId, page, tagsEntries);
394     }
395 
396     public static void validateTitle(java.lang.String title)
397         throws com.liferay.portal.PortalException {
398         _service.validateTitle(title);
399     }
400 
401     public static WikiPageLocalService getService() {
402         return _service;
403     }
404 
405     public void setService(WikiPageLocalService service) {
406         _service = service;
407     }
408 
409     private static WikiPageLocalService _service;
410 }