001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.wiki.service;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    
019    /**
020     * The utility for the wiki page local service. This utility wraps {@link com.liferay.portlet.wiki.service.impl.WikiPageLocalServiceImpl} and is the primary access point for service operations in application layer code running on the local server.
021     *
022     * <p>
023     * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.wiki.service.impl.WikiPageLocalServiceImpl} and rerun ServiceBuilder to regenerate this class.
024     * </p>
025     *
026     * <p>
027     * This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
028     * </p>
029     *
030     * @author Brian Wing Shun Chan
031     * @see WikiPageLocalService
032     * @see com.liferay.portlet.wiki.service.base.WikiPageLocalServiceBaseImpl
033     * @see com.liferay.portlet.wiki.service.impl.WikiPageLocalServiceImpl
034     * @generated
035     */
036    public class WikiPageLocalServiceUtil {
037            /**
038            * Adds the wiki page to the database. Also notifies the appropriate model listeners.
039            *
040            * @param wikiPage the wiki page to add
041            * @return the wiki page that was added
042            * @throws SystemException if a system exception occurred
043            */
044            public static com.liferay.portlet.wiki.model.WikiPage addWikiPage(
045                    com.liferay.portlet.wiki.model.WikiPage wikiPage)
046                    throws com.liferay.portal.kernel.exception.SystemException {
047                    return getService().addWikiPage(wikiPage);
048            }
049    
050            /**
051            * Creates a new wiki page with the primary key. Does not add the wiki page to the database.
052            *
053            * @param pageId the primary key for the new wiki page
054            * @return the new wiki page
055            */
056            public static com.liferay.portlet.wiki.model.WikiPage createWikiPage(
057                    long pageId) {
058                    return getService().createWikiPage(pageId);
059            }
060    
061            /**
062            * Deletes the wiki page with the primary key from the database. Also notifies the appropriate model listeners.
063            *
064            * @param pageId the primary key of the wiki page to delete
065            * @throws PortalException if a wiki page with the primary key could not be found
066            * @throws SystemException if a system exception occurred
067            */
068            public static void deleteWikiPage(long pageId)
069                    throws com.liferay.portal.kernel.exception.PortalException,
070                            com.liferay.portal.kernel.exception.SystemException {
071                    getService().deleteWikiPage(pageId);
072            }
073    
074            /**
075            * Deletes the wiki page from the database. Also notifies the appropriate model listeners.
076            *
077            * @param wikiPage the wiki page to delete
078            * @throws SystemException if a system exception occurred
079            */
080            public static void deleteWikiPage(
081                    com.liferay.portlet.wiki.model.WikiPage wikiPage)
082                    throws com.liferay.portal.kernel.exception.SystemException {
083                    getService().deleteWikiPage(wikiPage);
084            }
085    
086            /**
087            * Performs a dynamic query on the database and returns the matching rows.
088            *
089            * @param dynamicQuery the dynamic query to search with
090            * @return the matching rows
091            * @throws SystemException if a system exception occurred
092            */
093            @SuppressWarnings("rawtypes")
094            public static java.util.List dynamicQuery(
095                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
096                    throws com.liferay.portal.kernel.exception.SystemException {
097                    return getService().dynamicQuery(dynamicQuery);
098            }
099    
100            /**
101            * Performs a dynamic query on the database and returns a range of the matching rows.
102            *
103            * <p>
104            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
105            * </p>
106            *
107            * @param dynamicQuery the dynamic query to search with
108            * @param start the lower bound of the range of model instances to return
109            * @param end the upper bound of the range of model instances to return (not inclusive)
110            * @return the range of matching rows
111            * @throws SystemException if a system exception occurred
112            */
113            @SuppressWarnings("rawtypes")
114            public static java.util.List dynamicQuery(
115                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
116                    int end) throws com.liferay.portal.kernel.exception.SystemException {
117                    return getService().dynamicQuery(dynamicQuery, start, end);
118            }
119    
120            /**
121            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
122            *
123            * <p>
124            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
125            * </p>
126            *
127            * @param dynamicQuery the dynamic query to search with
128            * @param start the lower bound of the range of model instances to return
129            * @param end the upper bound of the range of model instances to return (not inclusive)
130            * @param orderByComparator the comparator to order the results by
131            * @return the ordered range of matching rows
132            * @throws SystemException if a system exception occurred
133            */
134            @SuppressWarnings("rawtypes")
135            public static java.util.List dynamicQuery(
136                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
137                    int end,
138                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
139                    throws com.liferay.portal.kernel.exception.SystemException {
140                    return getService()
141                                       .dynamicQuery(dynamicQuery, start, end, orderByComparator);
142            }
143    
144            /**
145            * Counts the number of rows that match the dynamic query.
146            *
147            * @param dynamicQuery the dynamic query to search with
148            * @return the number of rows that match the dynamic query
149            * @throws SystemException if a system exception occurred
150            */
151            public static long dynamicQueryCount(
152                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
153                    throws com.liferay.portal.kernel.exception.SystemException {
154                    return getService().dynamicQueryCount(dynamicQuery);
155            }
156    
157            /**
158            * Gets the wiki page with the primary key.
159            *
160            * @param pageId the primary key of the wiki page to get
161            * @return the wiki page
162            * @throws PortalException if a wiki page with the primary key could not be found
163            * @throws SystemException if a system exception occurred
164            */
165            public static com.liferay.portlet.wiki.model.WikiPage getWikiPage(
166                    long pageId)
167                    throws com.liferay.portal.kernel.exception.PortalException,
168                            com.liferay.portal.kernel.exception.SystemException {
169                    return getService().getWikiPage(pageId);
170            }
171    
172            /**
173            * Gets the wiki page with the UUID and group id.
174            *
175            * @param uuid the UUID of wiki page to get
176            * @param groupId the group id of the wiki page to get
177            * @return the wiki page
178            * @throws PortalException if a wiki page with the UUID and group id could not be found
179            * @throws SystemException if a system exception occurred
180            */
181            public static com.liferay.portlet.wiki.model.WikiPage getWikiPageByUuidAndGroupId(
182                    java.lang.String uuid, long groupId)
183                    throws com.liferay.portal.kernel.exception.PortalException,
184                            com.liferay.portal.kernel.exception.SystemException {
185                    return getService().getWikiPageByUuidAndGroupId(uuid, groupId);
186            }
187    
188            /**
189            * Gets a range of all the wiki pages.
190            *
191            * <p>
192            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
193            * </p>
194            *
195            * @param start the lower bound of the range of wiki pages to return
196            * @param end the upper bound of the range of wiki pages to return (not inclusive)
197            * @return the range of wiki pages
198            * @throws SystemException if a system exception occurred
199            */
200            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getWikiPages(
201                    int start, int end)
202                    throws com.liferay.portal.kernel.exception.SystemException {
203                    return getService().getWikiPages(start, end);
204            }
205    
206            /**
207            * Gets the number of wiki pages.
208            *
209            * @return the number of wiki pages
210            * @throws SystemException if a system exception occurred
211            */
212            public static int getWikiPagesCount()
213                    throws com.liferay.portal.kernel.exception.SystemException {
214                    return getService().getWikiPagesCount();
215            }
216    
217            /**
218            * Updates the wiki page in the database. Also notifies the appropriate model listeners.
219            *
220            * @param wikiPage the wiki page to update
221            * @return the wiki page that was updated
222            * @throws SystemException if a system exception occurred
223            */
224            public static com.liferay.portlet.wiki.model.WikiPage updateWikiPage(
225                    com.liferay.portlet.wiki.model.WikiPage wikiPage)
226                    throws com.liferay.portal.kernel.exception.SystemException {
227                    return getService().updateWikiPage(wikiPage);
228            }
229    
230            /**
231            * Updates the wiki page in the database. Also notifies the appropriate model listeners.
232            *
233            * @param wikiPage the wiki page to update
234            * @param merge whether to merge the wiki page with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
235            * @return the wiki page that was updated
236            * @throws SystemException if a system exception occurred
237            */
238            public static com.liferay.portlet.wiki.model.WikiPage updateWikiPage(
239                    com.liferay.portlet.wiki.model.WikiPage wikiPage, boolean merge)
240                    throws com.liferay.portal.kernel.exception.SystemException {
241                    return getService().updateWikiPage(wikiPage, merge);
242            }
243    
244            public static com.liferay.portlet.wiki.model.WikiPage addPage(long userId,
245                    long nodeId, java.lang.String title, double version,
246                    java.lang.String content, java.lang.String summary, boolean minorEdit,
247                    java.lang.String format, boolean head, java.lang.String parentTitle,
248                    java.lang.String redirectTitle,
249                    com.liferay.portal.service.ServiceContext serviceContext)
250                    throws com.liferay.portal.kernel.exception.PortalException,
251                            com.liferay.portal.kernel.exception.SystemException {
252                    return getService()
253                                       .addPage(userId, nodeId, title, version, content, summary,
254                            minorEdit, format, head, parentTitle, redirectTitle, serviceContext);
255            }
256    
257            public static com.liferay.portlet.wiki.model.WikiPage addPage(long userId,
258                    long nodeId, java.lang.String title, java.lang.String content,
259                    java.lang.String summary, boolean minorEdit,
260                    com.liferay.portal.service.ServiceContext serviceContext)
261                    throws com.liferay.portal.kernel.exception.PortalException,
262                            com.liferay.portal.kernel.exception.SystemException {
263                    return getService()
264                                       .addPage(userId, nodeId, title, content, summary, minorEdit,
265                            serviceContext);
266            }
267    
268            public static void addPageAttachment(long companyId,
269                    java.lang.String dirName, java.util.Date modifiedDate,
270                    java.lang.String fileName, java.io.InputStream inputStream)
271                    throws com.liferay.portal.kernel.exception.PortalException,
272                            com.liferay.portal.kernel.exception.SystemException {
273                    getService()
274                            .addPageAttachment(companyId, dirName, modifiedDate, fileName,
275                            inputStream);
276            }
277    
278            public static void addPageAttachments(long nodeId, java.lang.String title,
279                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, byte[]>> files)
280                    throws com.liferay.portal.kernel.exception.PortalException,
281                            com.liferay.portal.kernel.exception.SystemException {
282                    getService().addPageAttachments(nodeId, title, files);
283            }
284    
285            public static void addPageResources(long nodeId, java.lang.String title,
286                    boolean addCommunityPermissions, boolean addGuestPermissions)
287                    throws com.liferay.portal.kernel.exception.PortalException,
288                            com.liferay.portal.kernel.exception.SystemException {
289                    getService()
290                            .addPageResources(nodeId, title, addCommunityPermissions,
291                            addGuestPermissions);
292            }
293    
294            public static void addPageResources(long nodeId, java.lang.String title,
295                    java.lang.String[] communityPermissions,
296                    java.lang.String[] guestPermissions)
297                    throws com.liferay.portal.kernel.exception.PortalException,
298                            com.liferay.portal.kernel.exception.SystemException {
299                    getService()
300                            .addPageResources(nodeId, title, communityPermissions,
301                            guestPermissions);
302            }
303    
304            public static void addPageResources(
305                    com.liferay.portlet.wiki.model.WikiPage page,
306                    boolean addCommunityPermissions, boolean addGuestPermissions)
307                    throws com.liferay.portal.kernel.exception.PortalException,
308                            com.liferay.portal.kernel.exception.SystemException {
309                    getService()
310                            .addPageResources(page, addCommunityPermissions, addGuestPermissions);
311            }
312    
313            public static void addPageResources(
314                    com.liferay.portlet.wiki.model.WikiPage page,
315                    java.lang.String[] communityPermissions,
316                    java.lang.String[] guestPermissions)
317                    throws com.liferay.portal.kernel.exception.PortalException,
318                            com.liferay.portal.kernel.exception.SystemException {
319                    getService()
320                            .addPageResources(page, communityPermissions, guestPermissions);
321            }
322    
323            public static void changeParent(long userId, long nodeId,
324                    java.lang.String title, java.lang.String newParentTitle,
325                    com.liferay.portal.service.ServiceContext serviceContext)
326                    throws com.liferay.portal.kernel.exception.PortalException,
327                            com.liferay.portal.kernel.exception.SystemException {
328                    getService()
329                            .changeParent(userId, nodeId, title, newParentTitle, serviceContext);
330            }
331    
332            public static void deletePage(long nodeId, java.lang.String title)
333                    throws com.liferay.portal.kernel.exception.PortalException,
334                            com.liferay.portal.kernel.exception.SystemException {
335                    getService().deletePage(nodeId, title);
336            }
337    
338            public static void deletePage(long nodeId, java.lang.String title,
339                    double version)
340                    throws com.liferay.portal.kernel.exception.PortalException,
341                            com.liferay.portal.kernel.exception.SystemException {
342                    getService().deletePage(nodeId, title, version);
343            }
344    
345            public static void deletePage(com.liferay.portlet.wiki.model.WikiPage page)
346                    throws com.liferay.portal.kernel.exception.PortalException,
347                            com.liferay.portal.kernel.exception.SystemException {
348                    getService().deletePage(page);
349            }
350    
351            public static void deletePageAttachment(long nodeId,
352                    java.lang.String title, java.lang.String fileName)
353                    throws com.liferay.portal.kernel.exception.PortalException,
354                            com.liferay.portal.kernel.exception.SystemException {
355                    getService().deletePageAttachment(nodeId, title, fileName);
356            }
357    
358            public static void deletePages(long nodeId)
359                    throws com.liferay.portal.kernel.exception.PortalException,
360                            com.liferay.portal.kernel.exception.SystemException {
361                    getService().deletePages(nodeId);
362            }
363    
364            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getChildren(
365                    long nodeId, boolean head, java.lang.String parentTitle)
366                    throws com.liferay.portal.kernel.exception.SystemException {
367                    return getService().getChildren(nodeId, head, parentTitle);
368            }
369    
370            public static com.liferay.portlet.wiki.model.WikiPage getDraftPage(
371                    long nodeId, java.lang.String title)
372                    throws com.liferay.portal.kernel.exception.PortalException,
373                            com.liferay.portal.kernel.exception.SystemException {
374                    return getService().getDraftPage(nodeId, title);
375            }
376    
377            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getIncomingLinks(
378                    long nodeId, java.lang.String title)
379                    throws com.liferay.portal.kernel.exception.PortalException,
380                            com.liferay.portal.kernel.exception.SystemException {
381                    return getService().getIncomingLinks(nodeId, title);
382            }
383    
384            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getNoAssetPages()
385                    throws com.liferay.portal.kernel.exception.SystemException {
386                    return getService().getNoAssetPages();
387            }
388    
389            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOrphans(
390                    long nodeId)
391                    throws com.liferay.portal.kernel.exception.PortalException,
392                            com.liferay.portal.kernel.exception.SystemException {
393                    return getService().getOrphans(nodeId);
394            }
395    
396            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOutgoingLinks(
397                    long nodeId, java.lang.String title)
398                    throws com.liferay.portal.kernel.exception.PortalException,
399                            com.liferay.portal.kernel.exception.SystemException {
400                    return getService().getOutgoingLinks(nodeId, title);
401            }
402    
403            public static com.liferay.portlet.wiki.model.WikiPage getPage(
404                    long resourcePrimKey)
405                    throws com.liferay.portal.kernel.exception.PortalException,
406                            com.liferay.portal.kernel.exception.SystemException {
407                    return getService().getPage(resourcePrimKey);
408            }
409    
410            public static com.liferay.portlet.wiki.model.WikiPage getPage(
411                    long resourcePrimKey, java.lang.Boolean head)
412                    throws com.liferay.portal.kernel.exception.PortalException,
413                            com.liferay.portal.kernel.exception.SystemException {
414                    return getService().getPage(resourcePrimKey, head);
415            }
416    
417            public static com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
418                    java.lang.String title)
419                    throws com.liferay.portal.kernel.exception.PortalException,
420                            com.liferay.portal.kernel.exception.SystemException {
421                    return getService().getPage(nodeId, title);
422            }
423    
424            public static com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
425                    java.lang.String title, java.lang.Boolean head)
426                    throws com.liferay.portal.kernel.exception.PortalException,
427                            com.liferay.portal.kernel.exception.SystemException {
428                    return getService().getPage(nodeId, title, head);
429            }
430    
431            public static com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
432                    java.lang.String title, double version)
433                    throws com.liferay.portal.kernel.exception.PortalException,
434                            com.liferay.portal.kernel.exception.SystemException {
435                    return getService().getPage(nodeId, title, version);
436            }
437    
438            public static com.liferay.portlet.wiki.model.WikiPageDisplay getPageDisplay(
439                    long nodeId, java.lang.String title,
440                    javax.portlet.PortletURL viewPageURL,
441                    javax.portlet.PortletURL editPageURL,
442                    java.lang.String attachmentURLPrefix)
443                    throws com.liferay.portal.kernel.exception.PortalException,
444                            com.liferay.portal.kernel.exception.SystemException {
445                    return getService()
446                                       .getPageDisplay(nodeId, title, viewPageURL, editPageURL,
447                            attachmentURLPrefix);
448            }
449    
450            public static com.liferay.portlet.wiki.model.WikiPageDisplay getPageDisplay(
451                    com.liferay.portlet.wiki.model.WikiPage page,
452                    javax.portlet.PortletURL viewPageURL,
453                    javax.portlet.PortletURL editPageURL,
454                    java.lang.String attachmentURLPrefix)
455                    throws com.liferay.portal.kernel.exception.PortalException,
456                            com.liferay.portal.kernel.exception.SystemException {
457                    return getService()
458                                       .getPageDisplay(page, viewPageURL, editPageURL,
459                            attachmentURLPrefix);
460            }
461    
462            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
463                    long nodeId, boolean head, int start, int end)
464                    throws com.liferay.portal.kernel.exception.SystemException {
465                    return getService().getPages(nodeId, head, start, end);
466            }
467    
468            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
469                    long nodeId, boolean head, int start, int end,
470                    com.liferay.portal.kernel.util.OrderByComparator obc)
471                    throws com.liferay.portal.kernel.exception.SystemException {
472                    return getService().getPages(nodeId, head, start, end, obc);
473            }
474    
475            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
476                    long nodeId, int start, int end)
477                    throws com.liferay.portal.kernel.exception.SystemException {
478                    return getService().getPages(nodeId, start, end);
479            }
480    
481            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
482                    long nodeId, int start, int end,
483                    com.liferay.portal.kernel.util.OrderByComparator obc)
484                    throws com.liferay.portal.kernel.exception.SystemException {
485                    return getService().getPages(nodeId, start, end, obc);
486            }
487    
488            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
489                    long resourcePrimKey, long nodeId, int status)
490                    throws com.liferay.portal.kernel.exception.SystemException {
491                    return getService().getPages(resourcePrimKey, nodeId, status);
492            }
493    
494            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
495                    long userId, long nodeId, int status, int start, int end)
496                    throws com.liferay.portal.kernel.exception.SystemException {
497                    return getService().getPages(userId, nodeId, status, start, end);
498            }
499    
500            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
501                    long nodeId, java.lang.String title, boolean head, int start, int end)
502                    throws com.liferay.portal.kernel.exception.SystemException {
503                    return getService().getPages(nodeId, title, head, start, end);
504            }
505    
506            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
507                    long nodeId, java.lang.String title, int start, int end)
508                    throws com.liferay.portal.kernel.exception.SystemException {
509                    return getService().getPages(nodeId, title, start, end);
510            }
511    
512            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
513                    long nodeId, java.lang.String title, int start, int end,
514                    com.liferay.portal.kernel.util.OrderByComparator obc)
515                    throws com.liferay.portal.kernel.exception.SystemException {
516                    return getService().getPages(nodeId, title, start, end, obc);
517            }
518    
519            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
520                    java.lang.String format)
521                    throws com.liferay.portal.kernel.exception.SystemException {
522                    return getService().getPages(format);
523            }
524    
525            public static int getPagesCount(long nodeId)
526                    throws com.liferay.portal.kernel.exception.SystemException {
527                    return getService().getPagesCount(nodeId);
528            }
529    
530            public static int getPagesCount(long nodeId, boolean head)
531                    throws com.liferay.portal.kernel.exception.SystemException {
532                    return getService().getPagesCount(nodeId, head);
533            }
534    
535            public static int getPagesCount(long userId, long nodeId, int status)
536                    throws com.liferay.portal.kernel.exception.SystemException {
537                    return getService().getPagesCount(userId, nodeId, status);
538            }
539    
540            public static int getPagesCount(long nodeId, java.lang.String title)
541                    throws com.liferay.portal.kernel.exception.SystemException {
542                    return getService().getPagesCount(nodeId, title);
543            }
544    
545            public static int getPagesCount(long nodeId, java.lang.String title,
546                    boolean head)
547                    throws com.liferay.portal.kernel.exception.SystemException {
548                    return getService().getPagesCount(nodeId, title, head);
549            }
550    
551            public static int getPagesCount(java.lang.String format)
552                    throws com.liferay.portal.kernel.exception.SystemException {
553                    return getService().getPagesCount(format);
554            }
555    
556            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getRecentChanges(
557                    long nodeId, int start, int end)
558                    throws com.liferay.portal.kernel.exception.SystemException {
559                    return getService().getRecentChanges(nodeId, start, end);
560            }
561    
562            public static int getRecentChangesCount(long nodeId)
563                    throws com.liferay.portal.kernel.exception.SystemException {
564                    return getService().getRecentChangesCount(nodeId);
565            }
566    
567            public static boolean hasDraftPage(long nodeId, java.lang.String title)
568                    throws com.liferay.portal.kernel.exception.SystemException {
569                    return getService().hasDraftPage(nodeId, title);
570            }
571    
572            public static void movePage(long userId, long nodeId,
573                    java.lang.String title, java.lang.String newTitle, boolean strict,
574                    com.liferay.portal.service.ServiceContext serviceContext)
575                    throws com.liferay.portal.kernel.exception.PortalException,
576                            com.liferay.portal.kernel.exception.SystemException {
577                    getService()
578                            .movePage(userId, nodeId, title, newTitle, strict, serviceContext);
579            }
580    
581            public static void movePage(long userId, long nodeId,
582                    java.lang.String title, java.lang.String newTitle,
583                    com.liferay.portal.service.ServiceContext serviceContext)
584                    throws com.liferay.portal.kernel.exception.PortalException,
585                            com.liferay.portal.kernel.exception.SystemException {
586                    getService().movePage(userId, nodeId, title, newTitle, serviceContext);
587            }
588    
589            public static com.liferay.portlet.wiki.model.WikiPage revertPage(
590                    long userId, long nodeId, java.lang.String title, double version,
591                    com.liferay.portal.service.ServiceContext serviceContext)
592                    throws com.liferay.portal.kernel.exception.PortalException,
593                            com.liferay.portal.kernel.exception.SystemException {
594                    return getService()
595                                       .revertPage(userId, nodeId, title, version, serviceContext);
596            }
597    
598            public static void subscribePage(long userId, long nodeId,
599                    java.lang.String title)
600                    throws com.liferay.portal.kernel.exception.PortalException,
601                            com.liferay.portal.kernel.exception.SystemException {
602                    getService().subscribePage(userId, nodeId, title);
603            }
604    
605            public static void unsubscribePage(long userId, long nodeId,
606                    java.lang.String title)
607                    throws com.liferay.portal.kernel.exception.PortalException,
608                            com.liferay.portal.kernel.exception.SystemException {
609                    getService().unsubscribePage(userId, nodeId, title);
610            }
611    
612            public static void updateAsset(long userId,
613                    com.liferay.portlet.wiki.model.WikiPage page, long[] assetCategoryIds,
614                    java.lang.String[] assetTagNames)
615                    throws com.liferay.portal.kernel.exception.PortalException,
616                            com.liferay.portal.kernel.exception.SystemException {
617                    getService().updateAsset(userId, page, assetCategoryIds, assetTagNames);
618            }
619    
620            public static com.liferay.portlet.wiki.model.WikiPage updatePage(
621                    long userId, long nodeId, java.lang.String title, double version,
622                    java.lang.String content, java.lang.String summary, boolean minorEdit,
623                    java.lang.String format, java.lang.String parentTitle,
624                    java.lang.String redirectTitle,
625                    com.liferay.portal.service.ServiceContext serviceContext)
626                    throws com.liferay.portal.kernel.exception.PortalException,
627                            com.liferay.portal.kernel.exception.SystemException {
628                    return getService()
629                                       .updatePage(userId, nodeId, title, version, content,
630                            summary, minorEdit, format, parentTitle, redirectTitle,
631                            serviceContext);
632            }
633    
634            public static com.liferay.portlet.wiki.model.WikiPage updateStatus(
635                    long userId, long resourcePrimKey, int status,
636                    com.liferay.portal.service.ServiceContext serviceContext)
637                    throws com.liferay.portal.kernel.exception.PortalException,
638                            com.liferay.portal.kernel.exception.SystemException {
639                    return getService()
640                                       .updateStatus(userId, resourcePrimKey, status, serviceContext);
641            }
642    
643            public static com.liferay.portlet.wiki.model.WikiPage updateStatus(
644                    long userId, com.liferay.portlet.wiki.model.WikiPage page, int status,
645                    com.liferay.portal.service.ServiceContext serviceContext)
646                    throws com.liferay.portal.kernel.exception.PortalException,
647                            com.liferay.portal.kernel.exception.SystemException {
648                    return getService().updateStatus(userId, page, status, serviceContext);
649            }
650    
651            public static void validateTitle(java.lang.String title)
652                    throws com.liferay.portal.kernel.exception.PortalException {
653                    getService().validateTitle(title);
654            }
655    
656            public static WikiPageLocalService getService() {
657                    if (_service == null) {
658                            _service = (WikiPageLocalService)PortalBeanLocatorUtil.locate(WikiPageLocalService.class.getName());
659                    }
660    
661                    return _service;
662            }
663    
664            public void setService(WikiPageLocalService service) {
665                    _service = service;
666            }
667    
668            private static WikiPageLocalService _service;
669    }