1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
13   */
14  
15  package com.liferay.portlet.wiki.service;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  
19  /**
20   * <a href="WikiPageLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
21   *
22   * <p>
23   * ServiceBuilder generated this class. Modifications in this class will be
24   * overwritten the next time is generated.
25   * </p>
26   *
27   * <p>
28   * This class provides static methods for the
29   * {@link WikiPageLocalService} bean. The static methods of
30   * this class calls the same methods of the bean instance. It's convenient to be
31   * able to just write one line to call a method on a bean instead of writing a
32   * lookup call and a method call.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       WikiPageLocalService
37   * @generated
38   */
39  public class WikiPageLocalServiceUtil {
40      public static com.liferay.portlet.wiki.model.WikiPage addWikiPage(
41          com.liferay.portlet.wiki.model.WikiPage wikiPage)
42          throws com.liferay.portal.SystemException {
43          return getService().addWikiPage(wikiPage);
44      }
45  
46      public static com.liferay.portlet.wiki.model.WikiPage createWikiPage(
47          long pageId) {
48          return getService().createWikiPage(pageId);
49      }
50  
51      public static void deleteWikiPage(long pageId)
52          throws com.liferay.portal.PortalException,
53              com.liferay.portal.SystemException {
54          getService().deleteWikiPage(pageId);
55      }
56  
57      public static void deleteWikiPage(
58          com.liferay.portlet.wiki.model.WikiPage wikiPage)
59          throws com.liferay.portal.SystemException {
60          getService().deleteWikiPage(wikiPage);
61      }
62  
63      public static java.util.List<Object> dynamicQuery(
64          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65          throws com.liferay.portal.SystemException {
66          return getService().dynamicQuery(dynamicQuery);
67      }
68  
69      public static java.util.List<Object> dynamicQuery(
70          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71          int end) throws com.liferay.portal.SystemException {
72          return getService().dynamicQuery(dynamicQuery, start, end);
73      }
74  
75      public static com.liferay.portlet.wiki.model.WikiPage getWikiPage(
76          long pageId)
77          throws com.liferay.portal.PortalException,
78              com.liferay.portal.SystemException {
79          return getService().getWikiPage(pageId);
80      }
81  
82      public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getWikiPages(
83          int start, int end) throws com.liferay.portal.SystemException {
84          return getService().getWikiPages(start, end);
85      }
86  
87      public static int getWikiPagesCount()
88          throws com.liferay.portal.SystemException {
89          return getService().getWikiPagesCount();
90      }
91  
92      public static com.liferay.portlet.wiki.model.WikiPage updateWikiPage(
93          com.liferay.portlet.wiki.model.WikiPage wikiPage)
94          throws com.liferay.portal.SystemException {
95          return getService().updateWikiPage(wikiPage);
96      }
97  
98      public static com.liferay.portlet.wiki.model.WikiPage updateWikiPage(
99          com.liferay.portlet.wiki.model.WikiPage wikiPage, boolean merge)
100         throws com.liferay.portal.SystemException {
101         return getService().updateWikiPage(wikiPage, merge);
102     }
103 
104     public static com.liferay.portlet.wiki.model.WikiPage addPage(long userId,
105         long nodeId, java.lang.String title, java.lang.String content,
106         java.lang.String summary, boolean minorEdit,
107         javax.portlet.PortletPreferences prefs,
108         com.liferay.portal.theme.ThemeDisplay themeDisplay)
109         throws com.liferay.portal.PortalException,
110             com.liferay.portal.SystemException {
111         return getService()
112                    .addPage(userId, nodeId, title, content, summary, minorEdit,
113             prefs, themeDisplay);
114     }
115 
116     public static com.liferay.portlet.wiki.model.WikiPage addPage(
117         java.lang.String uuid, long userId, long nodeId,
118         java.lang.String title, double version, java.lang.String content,
119         java.lang.String summary, boolean minorEdit, java.lang.String format,
120         boolean head, java.lang.String parentTitle,
121         java.lang.String redirectTitle, java.lang.String[] tagsEntries,
122         javax.portlet.PortletPreferences prefs,
123         com.liferay.portal.theme.ThemeDisplay themeDisplay)
124         throws com.liferay.portal.PortalException,
125             com.liferay.portal.SystemException {
126         return getService()
127                    .addPage(uuid, userId, nodeId, title, version, content,
128             summary, minorEdit, format, head, parentTitle, redirectTitle,
129             tagsEntries, prefs, themeDisplay);
130     }
131 
132     public static void addPageAttachments(long nodeId, java.lang.String title,
133         java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files)
134         throws com.liferay.portal.PortalException,
135             com.liferay.portal.SystemException {
136         getService().addPageAttachments(nodeId, title, files);
137     }
138 
139     public static void addPageResources(long nodeId, java.lang.String title,
140         boolean addCommunityPermissions, boolean addGuestPermissions)
141         throws com.liferay.portal.PortalException,
142             com.liferay.portal.SystemException {
143         getService()
144             .addPageResources(nodeId, title, addCommunityPermissions,
145             addGuestPermissions);
146     }
147 
148     public static void addPageResources(
149         com.liferay.portlet.wiki.model.WikiPage page,
150         boolean addCommunityPermissions, boolean addGuestPermissions)
151         throws com.liferay.portal.PortalException,
152             com.liferay.portal.SystemException {
153         getService()
154             .addPageResources(page, addCommunityPermissions, addGuestPermissions);
155     }
156 
157     public static void addPageResources(long nodeId, java.lang.String title,
158         java.lang.String[] communityPermissions,
159         java.lang.String[] guestPermissions)
160         throws com.liferay.portal.PortalException,
161             com.liferay.portal.SystemException {
162         getService()
163             .addPageResources(nodeId, title, communityPermissions,
164             guestPermissions);
165     }
166 
167     public static void addPageResources(
168         com.liferay.portlet.wiki.model.WikiPage page,
169         java.lang.String[] communityPermissions,
170         java.lang.String[] guestPermissions)
171         throws com.liferay.portal.PortalException,
172             com.liferay.portal.SystemException {
173         getService()
174             .addPageResources(page, communityPermissions, guestPermissions);
175     }
176 
177     public static void changeParent(long userId, long nodeId,
178         java.lang.String title, java.lang.String newParentTitle,
179         javax.portlet.PortletPreferences prefs,
180         com.liferay.portal.theme.ThemeDisplay themeDisplay)
181         throws com.liferay.portal.PortalException,
182             com.liferay.portal.SystemException {
183         getService()
184             .changeParent(userId, nodeId, title, newParentTitle, prefs,
185             themeDisplay);
186     }
187 
188     public static void deletePage(long nodeId, java.lang.String title)
189         throws com.liferay.portal.PortalException,
190             com.liferay.portal.SystemException {
191         getService().deletePage(nodeId, title);
192     }
193 
194     public static void deletePage(com.liferay.portlet.wiki.model.WikiPage page)
195         throws com.liferay.portal.PortalException,
196             com.liferay.portal.SystemException {
197         getService().deletePage(page);
198     }
199 
200     public static void deletePageAttachment(long nodeId,
201         java.lang.String title, java.lang.String fileName)
202         throws com.liferay.portal.PortalException,
203             com.liferay.portal.SystemException {
204         getService().deletePageAttachment(nodeId, title, fileName);
205     }
206 
207     public static void deletePages(long nodeId)
208         throws com.liferay.portal.PortalException,
209             com.liferay.portal.SystemException {
210         getService().deletePages(nodeId);
211     }
212 
213     public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getChildren(
214         long nodeId, boolean head, java.lang.String parentTitle)
215         throws com.liferay.portal.SystemException {
216         return getService().getChildren(nodeId, head, parentTitle);
217     }
218 
219     public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getIncomingLinks(
220         long nodeId, java.lang.String title)
221         throws com.liferay.portal.PortalException,
222             com.liferay.portal.SystemException {
223         return getService().getIncomingLinks(nodeId, title);
224     }
225 
226     public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getNoAssetPages()
227         throws com.liferay.portal.SystemException {
228         return getService().getNoAssetPages();
229     }
230 
231     public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOrphans(
232         long nodeId)
233         throws com.liferay.portal.PortalException,
234             com.liferay.portal.SystemException {
235         return getService().getOrphans(nodeId);
236     }
237 
238     public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOutgoingLinks(
239         long nodeId, java.lang.String title)
240         throws com.liferay.portal.PortalException,
241             com.liferay.portal.SystemException {
242         return getService().getOutgoingLinks(nodeId, title);
243     }
244 
245     public static com.liferay.portlet.wiki.model.WikiPage getPage(
246         long resourcePrimKey)
247         throws com.liferay.portal.PortalException,
248             com.liferay.portal.SystemException {
249         return getService().getPage(resourcePrimKey);
250     }
251 
252     public static com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
253         java.lang.String title)
254         throws com.liferay.portal.PortalException,
255             com.liferay.portal.SystemException {
256         return getService().getPage(nodeId, title);
257     }
258 
259     public static com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
260         java.lang.String title, double version)
261         throws com.liferay.portal.PortalException,
262             com.liferay.portal.SystemException {
263         return getService().getPage(nodeId, title, version);
264     }
265 
266     public static com.liferay.portlet.wiki.model.WikiPageDisplay getPageDisplay(
267         long nodeId, java.lang.String title,
268         javax.portlet.PortletURL viewPageURL,
269         javax.portlet.PortletURL editPageURL,
270         java.lang.String attachmentURLPrefix)
271         throws com.liferay.portal.PortalException,
272             com.liferay.portal.SystemException {
273         return getService()
274                    .getPageDisplay(nodeId, title, viewPageURL, editPageURL,
275             attachmentURLPrefix);
276     }
277 
278     public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
279         long nodeId, int start, int end)
280         throws com.liferay.portal.SystemException {
281         return getService().getPages(nodeId, start, end);
282     }
283 
284     public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
285         java.lang.String format) throws com.liferay.portal.SystemException {
286         return getService().getPages(format);
287     }
288 
289     public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
290         long nodeId, java.lang.String title, int start, int end)
291         throws com.liferay.portal.SystemException {
292         return getService().getPages(nodeId, title, start, end);
293     }
294 
295     public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
296         long nodeId, java.lang.String title, int start, int end,
297         com.liferay.portal.kernel.util.OrderByComparator obc)
298         throws com.liferay.portal.SystemException {
299         return getService().getPages(nodeId, title, start, end, obc);
300     }
301 
302     public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
303         long nodeId, boolean head, int start, int end)
304         throws com.liferay.portal.SystemException {
305         return getService().getPages(nodeId, head, start, end);
306     }
307 
308     public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
309         long nodeId, java.lang.String title, boolean head, int start, int end)
310         throws com.liferay.portal.SystemException {
311         return getService().getPages(nodeId, title, head, start, end);
312     }
313 
314     public static int getPagesCount(long nodeId)
315         throws com.liferay.portal.SystemException {
316         return getService().getPagesCount(nodeId);
317     }
318 
319     public static int getPagesCount(long nodeId, java.lang.String title)
320         throws com.liferay.portal.SystemException {
321         return getService().getPagesCount(nodeId, title);
322     }
323 
324     public static int getPagesCount(long nodeId, boolean head)
325         throws com.liferay.portal.SystemException {
326         return getService().getPagesCount(nodeId, head);
327     }
328 
329     public static int getPagesCount(long nodeId, java.lang.String title,
330         boolean head) throws com.liferay.portal.SystemException {
331         return getService().getPagesCount(nodeId, title, head);
332     }
333 
334     public static int getPagesCount(java.lang.String format)
335         throws com.liferay.portal.SystemException {
336         return getService().getPagesCount(format);
337     }
338 
339     public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getRecentChanges(
340         long nodeId, int start, int end)
341         throws com.liferay.portal.SystemException {
342         return getService().getRecentChanges(nodeId, start, end);
343     }
344 
345     public static int getRecentChangesCount(long nodeId)
346         throws com.liferay.portal.SystemException {
347         return getService().getRecentChangesCount(nodeId);
348     }
349 
350     public static void movePage(long userId, long nodeId,
351         java.lang.String title, java.lang.String newTitle,
352         javax.portlet.PortletPreferences prefs,
353         com.liferay.portal.theme.ThemeDisplay themeDisplay)
354         throws com.liferay.portal.PortalException,
355             com.liferay.portal.SystemException {
356         getService()
357             .movePage(userId, nodeId, title, newTitle, prefs, themeDisplay);
358     }
359 
360     public static void movePage(long userId, long nodeId,
361         java.lang.String title, java.lang.String newTitle, boolean strict,
362         javax.portlet.PortletPreferences prefs,
363         com.liferay.portal.theme.ThemeDisplay themeDisplay)
364         throws com.liferay.portal.PortalException,
365             com.liferay.portal.SystemException {
366         getService()
367             .movePage(userId, nodeId, title, newTitle, strict, prefs,
368             themeDisplay);
369     }
370 
371     public static void reIndex(long resourcePrimKey)
372         throws com.liferay.portal.SystemException {
373         getService().reIndex(resourcePrimKey);
374     }
375 
376     public static void reIndex(com.liferay.portlet.wiki.model.WikiPage page)
377         throws com.liferay.portal.SystemException {
378         getService().reIndex(page);
379     }
380 
381     public static com.liferay.portlet.wiki.model.WikiPage revertPage(
382         long userId, long nodeId, java.lang.String title, double version,
383         javax.portlet.PortletPreferences prefs,
384         com.liferay.portal.theme.ThemeDisplay themeDisplay)
385         throws com.liferay.portal.PortalException,
386             com.liferay.portal.SystemException {
387         return getService()
388                    .revertPage(userId, nodeId, title, version, prefs,
389             themeDisplay);
390     }
391 
392     public static void subscribePage(long userId, long nodeId,
393         java.lang.String title)
394         throws com.liferay.portal.PortalException,
395             com.liferay.portal.SystemException {
396         getService().subscribePage(userId, nodeId, title);
397     }
398 
399     public static void unsubscribePage(long userId, long nodeId,
400         java.lang.String title)
401         throws com.liferay.portal.PortalException,
402             com.liferay.portal.SystemException {
403         getService().unsubscribePage(userId, nodeId, title);
404     }
405 
406     public static com.liferay.portlet.wiki.model.WikiPage updatePage(
407         long userId, long nodeId, java.lang.String title, double version,
408         java.lang.String content, java.lang.String summary, boolean minorEdit,
409         java.lang.String format, java.lang.String parentTitle,
410         java.lang.String redirectTitle, java.lang.String[] tagsEntries,
411         javax.portlet.PortletPreferences prefs,
412         com.liferay.portal.theme.ThemeDisplay themeDisplay)
413         throws com.liferay.portal.PortalException,
414             com.liferay.portal.SystemException {
415         return getService()
416                    .updatePage(userId, nodeId, title, version, content,
417             summary, minorEdit, format, parentTitle, redirectTitle,
418             tagsEntries, prefs, themeDisplay);
419     }
420 
421     public static void updateTagsAsset(long userId,
422         com.liferay.portlet.wiki.model.WikiPage page,
423         java.lang.String[] tagsEntries)
424         throws com.liferay.portal.PortalException,
425             com.liferay.portal.SystemException {
426         getService().updateTagsAsset(userId, page, tagsEntries);
427     }
428 
429     public static void validateTitle(java.lang.String title)
430         throws com.liferay.portal.PortalException {
431         getService().validateTitle(title);
432     }
433 
434     public static WikiPageLocalService getService() {
435         if (_service == null) {
436             _service = (WikiPageLocalService)PortalBeanLocatorUtil.locate(WikiPageLocalService.class.getName());
437         }
438 
439         return _service;
440     }
441 
442     public void setService(WikiPageLocalService service) {
443         _service = service;
444     }
445 
446     private static WikiPageLocalService _service;
447 }