001    /**
002     * Copyright (c) 2000-2013 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 aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020    import com.liferay.portal.kernel.util.ReferenceRegistry;
021    
022    /**
023     * Provides the local service utility for WikiPage. This utility wraps
024     * {@link com.liferay.portlet.wiki.service.impl.WikiPageLocalServiceImpl} and is the
025     * primary access point for service operations in application layer code running
026     * on the local server. Methods of this service will not have security checks
027     * based on the propagated JAAS credentials because this service can only be
028     * accessed from within the same VM.
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    @ProviderType
037    public class WikiPageLocalServiceUtil {
038            /*
039             * NOTE FOR DEVELOPERS:
040             *
041             * 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.
042             */
043    
044            /**
045            * Adds the wiki page to the database. Also notifies the appropriate model listeners.
046            *
047            * @param wikiPage the wiki page
048            * @return the wiki page that was added
049            * @throws SystemException if a system exception occurred
050            */
051            public static com.liferay.portlet.wiki.model.WikiPage addWikiPage(
052                    com.liferay.portlet.wiki.model.WikiPage wikiPage)
053                    throws com.liferay.portal.kernel.exception.SystemException {
054                    return getService().addWikiPage(wikiPage);
055            }
056    
057            /**
058            * Creates a new wiki page with the primary key. Does not add the wiki page to the database.
059            *
060            * @param pageId the primary key for the new wiki page
061            * @return the new wiki page
062            */
063            public static com.liferay.portlet.wiki.model.WikiPage createWikiPage(
064                    long pageId) {
065                    return getService().createWikiPage(pageId);
066            }
067    
068            /**
069            * Deletes the wiki page with the primary key from the database. Also notifies the appropriate model listeners.
070            *
071            * @param pageId the primary key of the wiki page
072            * @return the wiki page that was removed
073            * @throws PortalException if a wiki page with the primary key could not be found
074            * @throws SystemException if a system exception occurred
075            */
076            public static com.liferay.portlet.wiki.model.WikiPage deleteWikiPage(
077                    long pageId)
078                    throws com.liferay.portal.kernel.exception.PortalException,
079                            com.liferay.portal.kernel.exception.SystemException {
080                    return getService().deleteWikiPage(pageId);
081            }
082    
083            /**
084            * Deletes the wiki page from the database. Also notifies the appropriate model listeners.
085            *
086            * @param wikiPage the wiki page
087            * @return the wiki page that was removed
088            * @throws SystemException if a system exception occurred
089            */
090            public static com.liferay.portlet.wiki.model.WikiPage deleteWikiPage(
091                    com.liferay.portlet.wiki.model.WikiPage wikiPage)
092                    throws com.liferay.portal.kernel.exception.SystemException {
093                    return getService().deleteWikiPage(wikiPage);
094            }
095    
096            public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
097                    return getService().dynamicQuery();
098            }
099    
100            /**
101            * Performs a dynamic query on the database and returns the matching rows.
102            *
103            * @param dynamicQuery the dynamic query
104            * @return the matching rows
105            * @throws SystemException if a system exception occurred
106            */
107            @SuppressWarnings("rawtypes")
108            public static java.util.List dynamicQuery(
109                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
110                    throws com.liferay.portal.kernel.exception.SystemException {
111                    return getService().dynamicQuery(dynamicQuery);
112            }
113    
114            /**
115            * Performs a dynamic query on the database and returns a range of the matching rows.
116            *
117            * <p>
118            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.wiki.model.impl.WikiPageModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
119            * </p>
120            *
121            * @param dynamicQuery the dynamic query
122            * @param start the lower bound of the range of model instances
123            * @param end the upper bound of the range of model instances (not inclusive)
124            * @return the range of matching rows
125            * @throws SystemException if a system exception occurred
126            */
127            @SuppressWarnings("rawtypes")
128            public static java.util.List dynamicQuery(
129                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
130                    int end) throws com.liferay.portal.kernel.exception.SystemException {
131                    return getService().dynamicQuery(dynamicQuery, start, end);
132            }
133    
134            /**
135            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
136            *
137            * <p>
138            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.wiki.model.impl.WikiPageModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
139            * </p>
140            *
141            * @param dynamicQuery the dynamic query
142            * @param start the lower bound of the range of model instances
143            * @param end the upper bound of the range of model instances (not inclusive)
144            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
145            * @return the ordered range of matching rows
146            * @throws SystemException if a system exception occurred
147            */
148            @SuppressWarnings("rawtypes")
149            public static java.util.List dynamicQuery(
150                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
151                    int end,
152                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
153                    throws com.liferay.portal.kernel.exception.SystemException {
154                    return getService()
155                                       .dynamicQuery(dynamicQuery, start, end, orderByComparator);
156            }
157    
158            /**
159            * Returns the number of rows that match the dynamic query.
160            *
161            * @param dynamicQuery the dynamic query
162            * @return the number of rows that match the dynamic query
163            * @throws SystemException if a system exception occurred
164            */
165            public static long dynamicQueryCount(
166                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
167                    throws com.liferay.portal.kernel.exception.SystemException {
168                    return getService().dynamicQueryCount(dynamicQuery);
169            }
170    
171            /**
172            * Returns the number of rows that match the dynamic query.
173            *
174            * @param dynamicQuery the dynamic query
175            * @param projection the projection to apply to the query
176            * @return the number of rows that match the dynamic query
177            * @throws SystemException if a system exception occurred
178            */
179            public static long dynamicQueryCount(
180                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
181                    com.liferay.portal.kernel.dao.orm.Projection projection)
182                    throws com.liferay.portal.kernel.exception.SystemException {
183                    return getService().dynamicQueryCount(dynamicQuery, projection);
184            }
185    
186            public static com.liferay.portlet.wiki.model.WikiPage fetchWikiPage(
187                    long pageId) throws com.liferay.portal.kernel.exception.SystemException {
188                    return getService().fetchWikiPage(pageId);
189            }
190    
191            /**
192            * Returns the wiki page with the matching UUID and company.
193            *
194            * @param uuid the wiki page's UUID
195            * @param companyId the primary key of the company
196            * @return the matching wiki page, or <code>null</code> if a matching wiki page could not be found
197            * @throws SystemException if a system exception occurred
198            */
199            public static com.liferay.portlet.wiki.model.WikiPage fetchWikiPageByUuidAndCompanyId(
200                    java.lang.String uuid, long companyId)
201                    throws com.liferay.portal.kernel.exception.SystemException {
202                    return getService().fetchWikiPageByUuidAndCompanyId(uuid, companyId);
203            }
204    
205            /**
206            * Returns the wiki page matching the UUID and group.
207            *
208            * @param uuid the wiki page's UUID
209            * @param groupId the primary key of the group
210            * @return the matching wiki page, or <code>null</code> if a matching wiki page could not be found
211            * @throws SystemException if a system exception occurred
212            */
213            public static com.liferay.portlet.wiki.model.WikiPage fetchWikiPageByUuidAndGroupId(
214                    java.lang.String uuid, long groupId)
215                    throws com.liferay.portal.kernel.exception.SystemException {
216                    return getService().fetchWikiPageByUuidAndGroupId(uuid, groupId);
217            }
218    
219            /**
220            * Returns the wiki page with the primary key.
221            *
222            * @param pageId the primary key of the wiki page
223            * @return the wiki page
224            * @throws PortalException if a wiki page with the primary key could not be found
225            * @throws SystemException if a system exception occurred
226            */
227            public static com.liferay.portlet.wiki.model.WikiPage getWikiPage(
228                    long pageId)
229                    throws com.liferay.portal.kernel.exception.PortalException,
230                            com.liferay.portal.kernel.exception.SystemException {
231                    return getService().getWikiPage(pageId);
232            }
233    
234            public static com.liferay.portal.model.PersistedModel getPersistedModel(
235                    java.io.Serializable primaryKeyObj)
236                    throws com.liferay.portal.kernel.exception.PortalException,
237                            com.liferay.portal.kernel.exception.SystemException {
238                    return getService().getPersistedModel(primaryKeyObj);
239            }
240    
241            /**
242            * Returns the wiki page with the matching UUID and company.
243            *
244            * @param uuid the wiki page's UUID
245            * @param companyId the primary key of the company
246            * @return the matching wiki page
247            * @throws PortalException if a matching wiki page could not be found
248            * @throws SystemException if a system exception occurred
249            */
250            public static com.liferay.portlet.wiki.model.WikiPage getWikiPageByUuidAndCompanyId(
251                    java.lang.String uuid, long companyId)
252                    throws com.liferay.portal.kernel.exception.PortalException,
253                            com.liferay.portal.kernel.exception.SystemException {
254                    return getService().getWikiPageByUuidAndCompanyId(uuid, companyId);
255            }
256    
257            /**
258            * Returns the wiki page matching the UUID and group.
259            *
260            * @param uuid the wiki page's UUID
261            * @param groupId the primary key of the group
262            * @return the matching wiki page
263            * @throws PortalException if a matching wiki page could not be found
264            * @throws SystemException if a system exception occurred
265            */
266            public static com.liferay.portlet.wiki.model.WikiPage getWikiPageByUuidAndGroupId(
267                    java.lang.String uuid, long groupId)
268                    throws com.liferay.portal.kernel.exception.PortalException,
269                            com.liferay.portal.kernel.exception.SystemException {
270                    return getService().getWikiPageByUuidAndGroupId(uuid, groupId);
271            }
272    
273            /**
274            * Returns a range of all the wiki pages.
275            *
276            * <p>
277            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.wiki.model.impl.WikiPageModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
278            * </p>
279            *
280            * @param start the lower bound of the range of wiki pages
281            * @param end the upper bound of the range of wiki pages (not inclusive)
282            * @return the range of wiki pages
283            * @throws SystemException if a system exception occurred
284            */
285            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getWikiPages(
286                    int start, int end)
287                    throws com.liferay.portal.kernel.exception.SystemException {
288                    return getService().getWikiPages(start, end);
289            }
290    
291            /**
292            * Returns the number of wiki pages.
293            *
294            * @return the number of wiki pages
295            * @throws SystemException if a system exception occurred
296            */
297            public static int getWikiPagesCount()
298                    throws com.liferay.portal.kernel.exception.SystemException {
299                    return getService().getWikiPagesCount();
300            }
301    
302            /**
303            * Updates the wiki page in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
304            *
305            * @param wikiPage the wiki page
306            * @return the wiki page that was updated
307            * @throws SystemException if a system exception occurred
308            */
309            public static com.liferay.portlet.wiki.model.WikiPage updateWikiPage(
310                    com.liferay.portlet.wiki.model.WikiPage wikiPage)
311                    throws com.liferay.portal.kernel.exception.SystemException {
312                    return getService().updateWikiPage(wikiPage);
313            }
314    
315            /**
316            * Returns the Spring bean ID for this bean.
317            *
318            * @return the Spring bean ID for this bean
319            */
320            public static java.lang.String getBeanIdentifier() {
321                    return getService().getBeanIdentifier();
322            }
323    
324            /**
325            * Sets the Spring bean ID for this bean.
326            *
327            * @param beanIdentifier the Spring bean ID for this bean
328            */
329            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
330                    getService().setBeanIdentifier(beanIdentifier);
331            }
332    
333            public static com.liferay.portlet.wiki.model.WikiPage addPage(long userId,
334                    long nodeId, java.lang.String title, double version,
335                    java.lang.String content, java.lang.String summary, boolean minorEdit,
336                    java.lang.String format, boolean head, java.lang.String parentTitle,
337                    java.lang.String redirectTitle,
338                    com.liferay.portal.service.ServiceContext serviceContext)
339                    throws com.liferay.portal.kernel.exception.PortalException,
340                            com.liferay.portal.kernel.exception.SystemException {
341                    return getService()
342                                       .addPage(userId, nodeId, title, version, content, summary,
343                            minorEdit, format, head, parentTitle, redirectTitle, serviceContext);
344            }
345    
346            public static com.liferay.portlet.wiki.model.WikiPage addPage(long userId,
347                    long nodeId, java.lang.String title, java.lang.String content,
348                    java.lang.String summary, boolean minorEdit,
349                    com.liferay.portal.service.ServiceContext serviceContext)
350                    throws com.liferay.portal.kernel.exception.PortalException,
351                            com.liferay.portal.kernel.exception.SystemException {
352                    return getService()
353                                       .addPage(userId, nodeId, title, content, summary, minorEdit,
354                            serviceContext);
355            }
356    
357            public static void addPageAttachment(long userId, long nodeId,
358                    java.lang.String title, java.lang.String fileName, java.io.File file,
359                    java.lang.String mimeType)
360                    throws com.liferay.portal.kernel.exception.PortalException,
361                            com.liferay.portal.kernel.exception.SystemException {
362                    getService()
363                            .addPageAttachment(userId, nodeId, title, fileName, file, mimeType);
364            }
365    
366            public static void addPageAttachment(long userId, long nodeId,
367                    java.lang.String title, java.lang.String fileName,
368                    java.io.InputStream inputStream, java.lang.String mimeType)
369                    throws com.liferay.portal.kernel.exception.PortalException,
370                            com.liferay.portal.kernel.exception.SystemException {
371                    getService()
372                            .addPageAttachment(userId, nodeId, title, fileName, inputStream,
373                            mimeType);
374            }
375    
376            public static void addPageAttachments(long userId, long nodeId,
377                    java.lang.String title,
378                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs)
379                    throws com.liferay.portal.kernel.exception.PortalException,
380                            com.liferay.portal.kernel.exception.SystemException {
381                    getService().addPageAttachments(userId, nodeId, title, inputStreamOVPs);
382            }
383    
384            public static void addPageResources(long nodeId, java.lang.String title,
385                    boolean addGroupPermissions, boolean addGuestPermissions)
386                    throws com.liferay.portal.kernel.exception.PortalException,
387                            com.liferay.portal.kernel.exception.SystemException {
388                    getService()
389                            .addPageResources(nodeId, title, addGroupPermissions,
390                            addGuestPermissions);
391            }
392    
393            public static void addPageResources(long nodeId, java.lang.String title,
394                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
395                    throws com.liferay.portal.kernel.exception.PortalException,
396                            com.liferay.portal.kernel.exception.SystemException {
397                    getService()
398                            .addPageResources(nodeId, title, groupPermissions, guestPermissions);
399            }
400    
401            public static void addPageResources(
402                    com.liferay.portlet.wiki.model.WikiPage page,
403                    boolean addGroupPermissions, boolean addGuestPermissions)
404                    throws com.liferay.portal.kernel.exception.PortalException,
405                            com.liferay.portal.kernel.exception.SystemException {
406                    getService()
407                            .addPageResources(page, addGroupPermissions, addGuestPermissions);
408            }
409    
410            public static void addPageResources(
411                    com.liferay.portlet.wiki.model.WikiPage page,
412                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
413                    throws com.liferay.portal.kernel.exception.PortalException,
414                            com.liferay.portal.kernel.exception.SystemException {
415                    getService().addPageResources(page, groupPermissions, guestPermissions);
416            }
417    
418            public static void addTempPageAttachment(long groupId, long userId,
419                    java.lang.String fileName, java.lang.String tempFolderName,
420                    java.io.InputStream inputStream, java.lang.String mimeType)
421                    throws com.liferay.portal.kernel.exception.PortalException,
422                            com.liferay.portal.kernel.exception.SystemException {
423                    getService()
424                            .addTempPageAttachment(groupId, userId, fileName, tempFolderName,
425                            inputStream, mimeType);
426            }
427    
428            public static void changeParent(long userId, long nodeId,
429                    java.lang.String title, java.lang.String newParentTitle,
430                    com.liferay.portal.service.ServiceContext serviceContext)
431                    throws com.liferay.portal.kernel.exception.PortalException,
432                            com.liferay.portal.kernel.exception.SystemException {
433                    getService()
434                            .changeParent(userId, nodeId, title, newParentTitle, serviceContext);
435            }
436    
437            public static void copyPageAttachments(long userId, long templateNodeId,
438                    java.lang.String templateTitle, long nodeId, java.lang.String title)
439                    throws com.liferay.portal.kernel.exception.PortalException,
440                            com.liferay.portal.kernel.exception.SystemException {
441                    getService()
442                            .copyPageAttachments(userId, templateNodeId, templateTitle, nodeId,
443                            title);
444            }
445    
446            public static void deletePage(long nodeId, java.lang.String title)
447                    throws com.liferay.portal.kernel.exception.PortalException,
448                            com.liferay.portal.kernel.exception.SystemException {
449                    getService().deletePage(nodeId, title);
450            }
451    
452            /**
453            * @deprecated As of 6.2.0 replaced by {@link #discardDraft(long, String,
454            double)}
455            */
456            public static void deletePage(long nodeId, java.lang.String title,
457                    double version)
458                    throws com.liferay.portal.kernel.exception.PortalException,
459                            com.liferay.portal.kernel.exception.SystemException {
460                    getService().deletePage(nodeId, title, version);
461            }
462    
463            public static void deletePage(com.liferay.portlet.wiki.model.WikiPage page)
464                    throws com.liferay.portal.kernel.exception.PortalException,
465                            com.liferay.portal.kernel.exception.SystemException {
466                    getService().deletePage(page);
467            }
468    
469            public static void deletePageAttachment(long nodeId,
470                    java.lang.String title, java.lang.String fileName)
471                    throws com.liferay.portal.kernel.exception.PortalException,
472                            com.liferay.portal.kernel.exception.SystemException {
473                    getService().deletePageAttachment(nodeId, title, fileName);
474            }
475    
476            public static void deletePageAttachments(long nodeId, java.lang.String title)
477                    throws com.liferay.portal.kernel.exception.PortalException,
478                            com.liferay.portal.kernel.exception.SystemException {
479                    getService().deletePageAttachments(nodeId, title);
480            }
481    
482            public static void deletePages(long nodeId)
483                    throws com.liferay.portal.kernel.exception.PortalException,
484                            com.liferay.portal.kernel.exception.SystemException {
485                    getService().deletePages(nodeId);
486            }
487    
488            public static void deleteTempPageAttachment(long groupId, long userId,
489                    java.lang.String fileName, java.lang.String tempFolderName)
490                    throws com.liferay.portal.kernel.exception.PortalException,
491                            com.liferay.portal.kernel.exception.SystemException {
492                    getService()
493                            .deleteTempPageAttachment(groupId, userId, fileName, tempFolderName);
494            }
495    
496            public static void deleteTrashPageAttachments(long nodeId,
497                    java.lang.String title)
498                    throws com.liferay.portal.kernel.exception.PortalException,
499                            com.liferay.portal.kernel.exception.SystemException {
500                    getService().deleteTrashPageAttachments(nodeId, title);
501            }
502    
503            public static void discardDraft(long nodeId, java.lang.String title,
504                    double version)
505                    throws com.liferay.portal.kernel.exception.PortalException,
506                            com.liferay.portal.kernel.exception.SystemException {
507                    getService().discardDraft(nodeId, title, version);
508            }
509    
510            public static com.liferay.portlet.wiki.model.WikiPage fetchLatestPage(
511                    long resourcePrimKey, int status, boolean preferApproved)
512                    throws com.liferay.portal.kernel.exception.SystemException {
513                    return getService()
514                                       .fetchLatestPage(resourcePrimKey, status, preferApproved);
515            }
516    
517            public static com.liferay.portlet.wiki.model.WikiPage fetchLatestPage(
518                    long resourcePrimKey, long nodeId, int status, boolean preferApproved)
519                    throws com.liferay.portal.kernel.exception.SystemException {
520                    return getService()
521                                       .fetchLatestPage(resourcePrimKey, nodeId, status,
522                            preferApproved);
523            }
524    
525            public static com.liferay.portlet.wiki.model.WikiPage fetchLatestPage(
526                    long nodeId, java.lang.String title, int status, boolean preferApproved)
527                    throws com.liferay.portal.kernel.exception.SystemException {
528                    return getService()
529                                       .fetchLatestPage(nodeId, title, status, preferApproved);
530            }
531    
532            public static com.liferay.portlet.wiki.model.WikiPage fetchPage(
533                    long nodeId, java.lang.String title)
534                    throws com.liferay.portal.kernel.exception.SystemException {
535                    return getService().fetchPage(nodeId, title);
536            }
537    
538            public static com.liferay.portlet.wiki.model.WikiPage fetchPage(
539                    long nodeId, java.lang.String title, double version)
540                    throws com.liferay.portal.kernel.exception.SystemException {
541                    return getService().fetchPage(nodeId, title, version);
542            }
543    
544            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getChildren(
545                    long nodeId, boolean head, java.lang.String parentTitle)
546                    throws com.liferay.portal.kernel.exception.SystemException {
547                    return getService().getChildren(nodeId, head, parentTitle);
548            }
549    
550            public static com.liferay.portlet.wiki.model.WikiPage getDraftPage(
551                    long nodeId, java.lang.String title)
552                    throws com.liferay.portal.kernel.exception.PortalException,
553                            com.liferay.portal.kernel.exception.SystemException {
554                    return getService().getDraftPage(nodeId, title);
555            }
556    
557            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getIncomingLinks(
558                    long nodeId, java.lang.String title)
559                    throws com.liferay.portal.kernel.exception.PortalException,
560                            com.liferay.portal.kernel.exception.SystemException {
561                    return getService().getIncomingLinks(nodeId, title);
562            }
563    
564            public static com.liferay.portlet.wiki.model.WikiPage getLatestPage(
565                    long resourcePrimKey, int status, boolean preferApproved)
566                    throws com.liferay.portal.kernel.exception.PortalException,
567                            com.liferay.portal.kernel.exception.SystemException {
568                    return getService()
569                                       .getLatestPage(resourcePrimKey, status, preferApproved);
570            }
571    
572            public static com.liferay.portlet.wiki.model.WikiPage getLatestPage(
573                    long resourcePrimKey, long nodeId, int status, boolean preferApproved)
574                    throws com.liferay.portal.kernel.exception.PortalException,
575                            com.liferay.portal.kernel.exception.SystemException {
576                    return getService()
577                                       .getLatestPage(resourcePrimKey, nodeId, status,
578                            preferApproved);
579            }
580    
581            public static com.liferay.portlet.wiki.model.WikiPage getLatestPage(
582                    long nodeId, java.lang.String title, int status, boolean preferApproved)
583                    throws com.liferay.portal.kernel.exception.PortalException,
584                            com.liferay.portal.kernel.exception.SystemException {
585                    return getService().getLatestPage(nodeId, title, status, preferApproved);
586            }
587    
588            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getNoAssetPages()
589                    throws com.liferay.portal.kernel.exception.SystemException {
590                    return getService().getNoAssetPages();
591            }
592    
593            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOrphans(
594                    long nodeId)
595                    throws com.liferay.portal.kernel.exception.PortalException,
596                            com.liferay.portal.kernel.exception.SystemException {
597                    return getService().getOrphans(nodeId);
598            }
599    
600            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOutgoingLinks(
601                    long nodeId, java.lang.String title)
602                    throws com.liferay.portal.kernel.exception.PortalException,
603                            com.liferay.portal.kernel.exception.SystemException {
604                    return getService().getOutgoingLinks(nodeId, title);
605            }
606    
607            public static com.liferay.portlet.wiki.model.WikiPage getPage(
608                    long resourcePrimKey)
609                    throws com.liferay.portal.kernel.exception.PortalException,
610                            com.liferay.portal.kernel.exception.SystemException {
611                    return getService().getPage(resourcePrimKey);
612            }
613    
614            public static com.liferay.portlet.wiki.model.WikiPage getPage(
615                    long resourcePrimKey, java.lang.Boolean head)
616                    throws com.liferay.portal.kernel.exception.PortalException,
617                            com.liferay.portal.kernel.exception.SystemException {
618                    return getService().getPage(resourcePrimKey, head);
619            }
620    
621            public static com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
622                    java.lang.String title)
623                    throws com.liferay.portal.kernel.exception.PortalException,
624                            com.liferay.portal.kernel.exception.SystemException {
625                    return getService().getPage(nodeId, title);
626            }
627    
628            public static com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
629                    java.lang.String title, java.lang.Boolean head)
630                    throws com.liferay.portal.kernel.exception.PortalException,
631                            com.liferay.portal.kernel.exception.SystemException {
632                    return getService().getPage(nodeId, title, head);
633            }
634    
635            public static com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
636                    java.lang.String title, double version)
637                    throws com.liferay.portal.kernel.exception.PortalException,
638                            com.liferay.portal.kernel.exception.SystemException {
639                    return getService().getPage(nodeId, title, version);
640            }
641    
642            public static com.liferay.portlet.wiki.model.WikiPage getPageByPageId(
643                    long pageId)
644                    throws com.liferay.portal.kernel.exception.PortalException,
645                            com.liferay.portal.kernel.exception.SystemException {
646                    return getService().getPageByPageId(pageId);
647            }
648    
649            public static com.liferay.portlet.wiki.model.WikiPageDisplay getPageDisplay(
650                    long nodeId, java.lang.String title,
651                    javax.portlet.PortletURL viewPageURL,
652                    javax.portlet.PortletURL editPageURL,
653                    java.lang.String attachmentURLPrefix)
654                    throws com.liferay.portal.kernel.exception.PortalException,
655                            com.liferay.portal.kernel.exception.SystemException {
656                    return getService()
657                                       .getPageDisplay(nodeId, title, viewPageURL, editPageURL,
658                            attachmentURLPrefix);
659            }
660    
661            public static com.liferay.portlet.wiki.model.WikiPageDisplay getPageDisplay(
662                    com.liferay.portlet.wiki.model.WikiPage page,
663                    javax.portlet.PortletURL viewPageURL,
664                    javax.portlet.PortletURL editPageURL,
665                    java.lang.String attachmentURLPrefix)
666                    throws com.liferay.portal.kernel.exception.PortalException,
667                            com.liferay.portal.kernel.exception.SystemException {
668                    return getService()
669                                       .getPageDisplay(page, viewPageURL, editPageURL,
670                            attachmentURLPrefix);
671            }
672    
673            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
674                    long nodeId, boolean head, int start, int end)
675                    throws com.liferay.portal.kernel.exception.SystemException {
676                    return getService().getPages(nodeId, head, start, end);
677            }
678    
679            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
680                    long nodeId, boolean head, int status, int start, int end)
681                    throws com.liferay.portal.kernel.exception.SystemException {
682                    return getService().getPages(nodeId, head, status, start, end);
683            }
684    
685            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
686                    long nodeId, boolean head, int status, int start, int end,
687                    com.liferay.portal.kernel.util.OrderByComparator obc)
688                    throws com.liferay.portal.kernel.exception.SystemException {
689                    return getService().getPages(nodeId, head, status, start, end, obc);
690            }
691    
692            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
693                    long nodeId, boolean head, int start, int end,
694                    com.liferay.portal.kernel.util.OrderByComparator obc)
695                    throws com.liferay.portal.kernel.exception.SystemException {
696                    return getService().getPages(nodeId, head, start, end, obc);
697            }
698    
699            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
700                    long nodeId, int start, int end)
701                    throws com.liferay.portal.kernel.exception.SystemException {
702                    return getService().getPages(nodeId, start, end);
703            }
704    
705            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
706                    long nodeId, int start, int end,
707                    com.liferay.portal.kernel.util.OrderByComparator obc)
708                    throws com.liferay.portal.kernel.exception.SystemException {
709                    return getService().getPages(nodeId, start, end, obc);
710            }
711    
712            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
713                    long resourcePrimKey, long nodeId, int status)
714                    throws com.liferay.portal.kernel.exception.SystemException {
715                    return getService().getPages(resourcePrimKey, nodeId, status);
716            }
717    
718            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
719                    long userId, long nodeId, int status, int start, int end)
720                    throws com.liferay.portal.kernel.exception.SystemException {
721                    return getService().getPages(userId, nodeId, status, start, end);
722            }
723    
724            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
725                    long nodeId, java.lang.String title, boolean head, int start, int end)
726                    throws com.liferay.portal.kernel.exception.SystemException {
727                    return getService().getPages(nodeId, title, head, start, end);
728            }
729    
730            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
731                    long nodeId, java.lang.String title, int start, int end)
732                    throws com.liferay.portal.kernel.exception.SystemException {
733                    return getService().getPages(nodeId, title, start, end);
734            }
735    
736            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
737                    long nodeId, java.lang.String title, int start, int end,
738                    com.liferay.portal.kernel.util.OrderByComparator obc)
739                    throws com.liferay.portal.kernel.exception.SystemException {
740                    return getService().getPages(nodeId, title, start, end, obc);
741            }
742    
743            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
744                    java.lang.String format)
745                    throws com.liferay.portal.kernel.exception.SystemException {
746                    return getService().getPages(format);
747            }
748    
749            public static int getPagesCount(long nodeId)
750                    throws com.liferay.portal.kernel.exception.SystemException {
751                    return getService().getPagesCount(nodeId);
752            }
753    
754            public static int getPagesCount(long nodeId, boolean head)
755                    throws com.liferay.portal.kernel.exception.SystemException {
756                    return getService().getPagesCount(nodeId, head);
757            }
758    
759            public static int getPagesCount(long nodeId, boolean head, int status)
760                    throws com.liferay.portal.kernel.exception.SystemException {
761                    return getService().getPagesCount(nodeId, head, status);
762            }
763    
764            public static int getPagesCount(long nodeId, int status)
765                    throws com.liferay.portal.kernel.exception.SystemException {
766                    return getService().getPagesCount(nodeId, status);
767            }
768    
769            public static int getPagesCount(long userId, long nodeId, int status)
770                    throws com.liferay.portal.kernel.exception.SystemException {
771                    return getService().getPagesCount(userId, nodeId, status);
772            }
773    
774            public static int getPagesCount(long nodeId, java.lang.String title)
775                    throws com.liferay.portal.kernel.exception.SystemException {
776                    return getService().getPagesCount(nodeId, title);
777            }
778    
779            public static int getPagesCount(long nodeId, java.lang.String title,
780                    boolean head)
781                    throws com.liferay.portal.kernel.exception.SystemException {
782                    return getService().getPagesCount(nodeId, title, head);
783            }
784    
785            public static int getPagesCount(java.lang.String format)
786                    throws com.liferay.portal.kernel.exception.SystemException {
787                    return getService().getPagesCount(format);
788            }
789    
790            /**
791            * @deprecated As of 6.2.0, replaced by {@link #getRecentChanges(long, long,
792            int, int)}
793            */
794            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getRecentChanges(
795                    long nodeId, int start, int end)
796                    throws com.liferay.portal.kernel.exception.PortalException,
797                            com.liferay.portal.kernel.exception.SystemException {
798                    return getService().getRecentChanges(nodeId, start, end);
799            }
800    
801            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getRecentChanges(
802                    long groupId, long nodeId, int start, int end)
803                    throws com.liferay.portal.kernel.exception.SystemException {
804                    return getService().getRecentChanges(groupId, nodeId, start, end);
805            }
806    
807            /**
808            * @deprecated As of 6.2.0, replaced by {@link #getRecentChangesCount(long,
809            long)}
810            */
811            public static int getRecentChangesCount(long nodeId)
812                    throws com.liferay.portal.kernel.exception.PortalException,
813                            com.liferay.portal.kernel.exception.SystemException {
814                    return getService().getRecentChangesCount(nodeId);
815            }
816    
817            public static int getRecentChangesCount(long groupId, long nodeId)
818                    throws com.liferay.portal.kernel.exception.SystemException {
819                    return getService().getRecentChangesCount(groupId, nodeId);
820            }
821    
822            public static java.lang.String[] getTempPageAttachmentNames(long groupId,
823                    long userId, java.lang.String tempFolderName)
824                    throws com.liferay.portal.kernel.exception.PortalException,
825                            com.liferay.portal.kernel.exception.SystemException {
826                    return getService()
827                                       .getTempPageAttachmentNames(groupId, userId, tempFolderName);
828            }
829    
830            public static boolean hasDraftPage(long nodeId, java.lang.String title)
831                    throws com.liferay.portal.kernel.exception.SystemException {
832                    return getService().hasDraftPage(nodeId, title);
833            }
834    
835            public static void movePage(long userId, long nodeId,
836                    java.lang.String title, java.lang.String newTitle, boolean strict,
837                    com.liferay.portal.service.ServiceContext serviceContext)
838                    throws com.liferay.portal.kernel.exception.PortalException,
839                            com.liferay.portal.kernel.exception.SystemException {
840                    getService()
841                            .movePage(userId, nodeId, title, newTitle, strict, serviceContext);
842            }
843    
844            public static void movePage(long userId, long nodeId,
845                    java.lang.String title, java.lang.String newTitle,
846                    com.liferay.portal.service.ServiceContext serviceContext)
847                    throws com.liferay.portal.kernel.exception.PortalException,
848                            com.liferay.portal.kernel.exception.SystemException {
849                    getService().movePage(userId, nodeId, title, newTitle, serviceContext);
850            }
851    
852            public static com.liferay.portal.kernel.repository.model.FileEntry movePageAttachmentToTrash(
853                    long userId, long nodeId, java.lang.String title,
854                    java.lang.String fileName)
855                    throws com.liferay.portal.kernel.exception.PortalException,
856                            com.liferay.portal.kernel.exception.SystemException {
857                    return getService()
858                                       .movePageAttachmentToTrash(userId, nodeId, title, fileName);
859            }
860    
861            public static com.liferay.portlet.wiki.model.WikiPage movePageToTrash(
862                    long userId, long nodeId, java.lang.String title)
863                    throws com.liferay.portal.kernel.exception.PortalException,
864                            com.liferay.portal.kernel.exception.SystemException {
865                    return getService().movePageToTrash(userId, nodeId, title);
866            }
867    
868            public static com.liferay.portlet.wiki.model.WikiPage movePageToTrash(
869                    long userId, long nodeId, java.lang.String title, double version)
870                    throws com.liferay.portal.kernel.exception.PortalException,
871                            com.liferay.portal.kernel.exception.SystemException {
872                    return getService().movePageToTrash(userId, nodeId, title, version);
873            }
874    
875            public static com.liferay.portlet.wiki.model.WikiPage movePageToTrash(
876                    long userId, com.liferay.portlet.wiki.model.WikiPage page)
877                    throws com.liferay.portal.kernel.exception.PortalException,
878                            com.liferay.portal.kernel.exception.SystemException {
879                    return getService().movePageToTrash(userId, page);
880            }
881    
882            public static void restorePageAttachmentFromTrash(long userId, long nodeId,
883                    java.lang.String title, java.lang.String fileName)
884                    throws com.liferay.portal.kernel.exception.PortalException,
885                            com.liferay.portal.kernel.exception.SystemException {
886                    getService()
887                            .restorePageAttachmentFromTrash(userId, nodeId, title, fileName);
888            }
889    
890            public static void restorePageFromTrash(long userId,
891                    com.liferay.portlet.wiki.model.WikiPage page)
892                    throws com.liferay.portal.kernel.exception.PortalException,
893                            com.liferay.portal.kernel.exception.SystemException {
894                    getService().restorePageFromTrash(userId, page);
895            }
896    
897            public static com.liferay.portlet.wiki.model.WikiPage revertPage(
898                    long userId, long nodeId, java.lang.String title, double version,
899                    com.liferay.portal.service.ServiceContext serviceContext)
900                    throws com.liferay.portal.kernel.exception.PortalException,
901                            com.liferay.portal.kernel.exception.SystemException {
902                    return getService()
903                                       .revertPage(userId, nodeId, title, version, serviceContext);
904            }
905    
906            public static void subscribePage(long userId, long nodeId,
907                    java.lang.String title)
908                    throws com.liferay.portal.kernel.exception.PortalException,
909                            com.liferay.portal.kernel.exception.SystemException {
910                    getService().subscribePage(userId, nodeId, title);
911            }
912    
913            public static void unsubscribePage(long userId, long nodeId,
914                    java.lang.String title)
915                    throws com.liferay.portal.kernel.exception.PortalException,
916                            com.liferay.portal.kernel.exception.SystemException {
917                    getService().unsubscribePage(userId, nodeId, title);
918            }
919    
920            public static void updateAsset(long userId,
921                    com.liferay.portlet.wiki.model.WikiPage page, long[] assetCategoryIds,
922                    java.lang.String[] assetTagNames, long[] assetLinkEntryIds)
923                    throws com.liferay.portal.kernel.exception.PortalException,
924                            com.liferay.portal.kernel.exception.SystemException {
925                    getService()
926                            .updateAsset(userId, page, assetCategoryIds, assetTagNames,
927                            assetLinkEntryIds);
928            }
929    
930            public static com.liferay.portlet.wiki.model.WikiPage updatePage(
931                    long userId, long nodeId, java.lang.String title, double version,
932                    java.lang.String content, java.lang.String summary, boolean minorEdit,
933                    java.lang.String format, java.lang.String parentTitle,
934                    java.lang.String redirectTitle,
935                    com.liferay.portal.service.ServiceContext serviceContext)
936                    throws com.liferay.portal.kernel.exception.PortalException,
937                            com.liferay.portal.kernel.exception.SystemException {
938                    return getService()
939                                       .updatePage(userId, nodeId, title, version, content,
940                            summary, minorEdit, format, parentTitle, redirectTitle,
941                            serviceContext);
942            }
943    
944            public static com.liferay.portlet.wiki.model.WikiPage updateStatus(
945                    long userId, long resourcePrimKey, int status,
946                    com.liferay.portal.service.ServiceContext serviceContext)
947                    throws com.liferay.portal.kernel.exception.PortalException,
948                            com.liferay.portal.kernel.exception.SystemException {
949                    return getService()
950                                       .updateStatus(userId, resourcePrimKey, status, serviceContext);
951            }
952    
953            public static com.liferay.portlet.wiki.model.WikiPage updateStatus(
954                    long userId, com.liferay.portlet.wiki.model.WikiPage page, int status,
955                    com.liferay.portal.service.ServiceContext serviceContext)
956                    throws com.liferay.portal.kernel.exception.PortalException,
957                            com.liferay.portal.kernel.exception.SystemException {
958                    return getService().updateStatus(userId, page, status, serviceContext);
959            }
960    
961            public static void validateTitle(java.lang.String title)
962                    throws com.liferay.portal.kernel.exception.PortalException {
963                    getService().validateTitle(title);
964            }
965    
966            public static WikiPageLocalService getService() {
967                    if (_service == null) {
968                            _service = (WikiPageLocalService)PortalBeanLocatorUtil.locate(WikiPageLocalService.class.getName());
969    
970                            ReferenceRegistry.registerReference(WikiPageLocalServiceUtil.class,
971                                    "_service");
972                    }
973    
974                    return _service;
975            }
976    
977            /**
978             * @deprecated As of 6.2.0
979             */
980            public void setService(WikiPageLocalService service) {
981            }
982    
983            private static WikiPageLocalService _service;
984    }