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, double version)
534                    throws com.liferay.portal.kernel.exception.SystemException {
535                    return getService().fetchPage(nodeId, title, version);
536            }
537    
538            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getChildren(
539                    long nodeId, boolean head, java.lang.String parentTitle)
540                    throws com.liferay.portal.kernel.exception.SystemException {
541                    return getService().getChildren(nodeId, head, parentTitle);
542            }
543    
544            public static com.liferay.portlet.wiki.model.WikiPage getDraftPage(
545                    long nodeId, java.lang.String title)
546                    throws com.liferay.portal.kernel.exception.PortalException,
547                            com.liferay.portal.kernel.exception.SystemException {
548                    return getService().getDraftPage(nodeId, title);
549            }
550    
551            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getIncomingLinks(
552                    long nodeId, java.lang.String title)
553                    throws com.liferay.portal.kernel.exception.PortalException,
554                            com.liferay.portal.kernel.exception.SystemException {
555                    return getService().getIncomingLinks(nodeId, title);
556            }
557    
558            public static com.liferay.portlet.wiki.model.WikiPage getLatestPage(
559                    long resourcePrimKey, int status, boolean preferApproved)
560                    throws com.liferay.portal.kernel.exception.PortalException,
561                            com.liferay.portal.kernel.exception.SystemException {
562                    return getService()
563                                       .getLatestPage(resourcePrimKey, status, preferApproved);
564            }
565    
566            public static com.liferay.portlet.wiki.model.WikiPage getLatestPage(
567                    long resourcePrimKey, long nodeId, int status, boolean preferApproved)
568                    throws com.liferay.portal.kernel.exception.PortalException,
569                            com.liferay.portal.kernel.exception.SystemException {
570                    return getService()
571                                       .getLatestPage(resourcePrimKey, nodeId, status,
572                            preferApproved);
573            }
574    
575            public static com.liferay.portlet.wiki.model.WikiPage getLatestPage(
576                    long nodeId, java.lang.String title, int status, boolean preferApproved)
577                    throws com.liferay.portal.kernel.exception.PortalException,
578                            com.liferay.portal.kernel.exception.SystemException {
579                    return getService().getLatestPage(nodeId, title, status, preferApproved);
580            }
581    
582            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getNoAssetPages()
583                    throws com.liferay.portal.kernel.exception.SystemException {
584                    return getService().getNoAssetPages();
585            }
586    
587            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOrphans(
588                    long nodeId)
589                    throws com.liferay.portal.kernel.exception.PortalException,
590                            com.liferay.portal.kernel.exception.SystemException {
591                    return getService().getOrphans(nodeId);
592            }
593    
594            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOutgoingLinks(
595                    long nodeId, java.lang.String title)
596                    throws com.liferay.portal.kernel.exception.PortalException,
597                            com.liferay.portal.kernel.exception.SystemException {
598                    return getService().getOutgoingLinks(nodeId, title);
599            }
600    
601            public static com.liferay.portlet.wiki.model.WikiPage getPage(
602                    long resourcePrimKey)
603                    throws com.liferay.portal.kernel.exception.PortalException,
604                            com.liferay.portal.kernel.exception.SystemException {
605                    return getService().getPage(resourcePrimKey);
606            }
607    
608            public static com.liferay.portlet.wiki.model.WikiPage getPage(
609                    long resourcePrimKey, java.lang.Boolean head)
610                    throws com.liferay.portal.kernel.exception.PortalException,
611                            com.liferay.portal.kernel.exception.SystemException {
612                    return getService().getPage(resourcePrimKey, head);
613            }
614    
615            public static com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
616                    java.lang.String title)
617                    throws com.liferay.portal.kernel.exception.PortalException,
618                            com.liferay.portal.kernel.exception.SystemException {
619                    return getService().getPage(nodeId, title);
620            }
621    
622            public static com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
623                    java.lang.String title, java.lang.Boolean head)
624                    throws com.liferay.portal.kernel.exception.PortalException,
625                            com.liferay.portal.kernel.exception.SystemException {
626                    return getService().getPage(nodeId, title, head);
627            }
628    
629            public static com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
630                    java.lang.String title, double version)
631                    throws com.liferay.portal.kernel.exception.PortalException,
632                            com.liferay.portal.kernel.exception.SystemException {
633                    return getService().getPage(nodeId, title, version);
634            }
635    
636            public static com.liferay.portlet.wiki.model.WikiPage getPageByPageId(
637                    long pageId)
638                    throws com.liferay.portal.kernel.exception.PortalException,
639                            com.liferay.portal.kernel.exception.SystemException {
640                    return getService().getPageByPageId(pageId);
641            }
642    
643            public static com.liferay.portlet.wiki.model.WikiPageDisplay getPageDisplay(
644                    long nodeId, java.lang.String title,
645                    javax.portlet.PortletURL viewPageURL,
646                    javax.portlet.PortletURL editPageURL,
647                    java.lang.String attachmentURLPrefix)
648                    throws com.liferay.portal.kernel.exception.PortalException,
649                            com.liferay.portal.kernel.exception.SystemException {
650                    return getService()
651                                       .getPageDisplay(nodeId, title, viewPageURL, editPageURL,
652                            attachmentURLPrefix);
653            }
654    
655            public static com.liferay.portlet.wiki.model.WikiPageDisplay getPageDisplay(
656                    com.liferay.portlet.wiki.model.WikiPage page,
657                    javax.portlet.PortletURL viewPageURL,
658                    javax.portlet.PortletURL editPageURL,
659                    java.lang.String attachmentURLPrefix)
660                    throws com.liferay.portal.kernel.exception.PortalException,
661                            com.liferay.portal.kernel.exception.SystemException {
662                    return getService()
663                                       .getPageDisplay(page, viewPageURL, editPageURL,
664                            attachmentURLPrefix);
665            }
666    
667            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
668                    long nodeId, boolean head, int start, int end)
669                    throws com.liferay.portal.kernel.exception.SystemException {
670                    return getService().getPages(nodeId, head, start, end);
671            }
672    
673            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
674                    long nodeId, boolean head, int status, int start, int end)
675                    throws com.liferay.portal.kernel.exception.SystemException {
676                    return getService().getPages(nodeId, head, status, 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                    com.liferay.portal.kernel.util.OrderByComparator obc)
682                    throws com.liferay.portal.kernel.exception.SystemException {
683                    return getService().getPages(nodeId, head, status, start, end, obc);
684            }
685    
686            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
687                    long nodeId, boolean head, int start, int end,
688                    com.liferay.portal.kernel.util.OrderByComparator obc)
689                    throws com.liferay.portal.kernel.exception.SystemException {
690                    return getService().getPages(nodeId, head, start, end, obc);
691            }
692    
693            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
694                    long nodeId, int start, int end)
695                    throws com.liferay.portal.kernel.exception.SystemException {
696                    return getService().getPages(nodeId, start, end);
697            }
698    
699            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
700                    long nodeId, int start, int end,
701                    com.liferay.portal.kernel.util.OrderByComparator obc)
702                    throws com.liferay.portal.kernel.exception.SystemException {
703                    return getService().getPages(nodeId, start, end, obc);
704            }
705    
706            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
707                    long resourcePrimKey, long nodeId, int status)
708                    throws com.liferay.portal.kernel.exception.SystemException {
709                    return getService().getPages(resourcePrimKey, nodeId, status);
710            }
711    
712            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
713                    long userId, long nodeId, int status, int start, int end)
714                    throws com.liferay.portal.kernel.exception.SystemException {
715                    return getService().getPages(userId, nodeId, status, start, end);
716            }
717    
718            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
719                    long nodeId, java.lang.String title, boolean head, int start, int end)
720                    throws com.liferay.portal.kernel.exception.SystemException {
721                    return getService().getPages(nodeId, title, head, start, end);
722            }
723    
724            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
725                    long nodeId, java.lang.String title, int start, int end)
726                    throws com.liferay.portal.kernel.exception.SystemException {
727                    return getService().getPages(nodeId, title, 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                    com.liferay.portal.kernel.util.OrderByComparator obc)
733                    throws com.liferay.portal.kernel.exception.SystemException {
734                    return getService().getPages(nodeId, title, start, end, obc);
735            }
736    
737            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
738                    java.lang.String format)
739                    throws com.liferay.portal.kernel.exception.SystemException {
740                    return getService().getPages(format);
741            }
742    
743            public static int getPagesCount(long nodeId)
744                    throws com.liferay.portal.kernel.exception.SystemException {
745                    return getService().getPagesCount(nodeId);
746            }
747    
748            public static int getPagesCount(long nodeId, boolean head)
749                    throws com.liferay.portal.kernel.exception.SystemException {
750                    return getService().getPagesCount(nodeId, head);
751            }
752    
753            public static int getPagesCount(long nodeId, boolean head, int status)
754                    throws com.liferay.portal.kernel.exception.SystemException {
755                    return getService().getPagesCount(nodeId, head, status);
756            }
757    
758            public static int getPagesCount(long nodeId, int status)
759                    throws com.liferay.portal.kernel.exception.SystemException {
760                    return getService().getPagesCount(nodeId, status);
761            }
762    
763            public static int getPagesCount(long userId, long nodeId, int status)
764                    throws com.liferay.portal.kernel.exception.SystemException {
765                    return getService().getPagesCount(userId, nodeId, status);
766            }
767    
768            public static int getPagesCount(long nodeId, java.lang.String title)
769                    throws com.liferay.portal.kernel.exception.SystemException {
770                    return getService().getPagesCount(nodeId, title);
771            }
772    
773            public static int getPagesCount(long nodeId, java.lang.String title,
774                    boolean head)
775                    throws com.liferay.portal.kernel.exception.SystemException {
776                    return getService().getPagesCount(nodeId, title, head);
777            }
778    
779            public static int getPagesCount(java.lang.String format)
780                    throws com.liferay.portal.kernel.exception.SystemException {
781                    return getService().getPagesCount(format);
782            }
783    
784            /**
785            * @deprecated As of 6.2.0, replaced by {@link #getRecentChanges(long, long,
786            int, int)}
787            */
788            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getRecentChanges(
789                    long nodeId, int start, int end)
790                    throws com.liferay.portal.kernel.exception.PortalException,
791                            com.liferay.portal.kernel.exception.SystemException {
792                    return getService().getRecentChanges(nodeId, start, end);
793            }
794    
795            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getRecentChanges(
796                    long groupId, long nodeId, int start, int end)
797                    throws com.liferay.portal.kernel.exception.SystemException {
798                    return getService().getRecentChanges(groupId, nodeId, start, end);
799            }
800    
801            /**
802            * @deprecated As of 6.2.0, replaced by {@link #getRecentChangesCount(long,
803            long)}
804            */
805            public static int getRecentChangesCount(long nodeId)
806                    throws com.liferay.portal.kernel.exception.PortalException,
807                            com.liferay.portal.kernel.exception.SystemException {
808                    return getService().getRecentChangesCount(nodeId);
809            }
810    
811            public static int getRecentChangesCount(long groupId, long nodeId)
812                    throws com.liferay.portal.kernel.exception.SystemException {
813                    return getService().getRecentChangesCount(groupId, nodeId);
814            }
815    
816            public static java.lang.String[] getTempPageAttachmentNames(long groupId,
817                    long userId, java.lang.String tempFolderName)
818                    throws com.liferay.portal.kernel.exception.PortalException,
819                            com.liferay.portal.kernel.exception.SystemException {
820                    return getService()
821                                       .getTempPageAttachmentNames(groupId, userId, tempFolderName);
822            }
823    
824            public static boolean hasDraftPage(long nodeId, java.lang.String title)
825                    throws com.liferay.portal.kernel.exception.SystemException {
826                    return getService().hasDraftPage(nodeId, title);
827            }
828    
829            public static void movePage(long userId, long nodeId,
830                    java.lang.String title, java.lang.String newTitle, boolean strict,
831                    com.liferay.portal.service.ServiceContext serviceContext)
832                    throws com.liferay.portal.kernel.exception.PortalException,
833                            com.liferay.portal.kernel.exception.SystemException {
834                    getService()
835                            .movePage(userId, nodeId, title, newTitle, strict, serviceContext);
836            }
837    
838            public static void movePage(long userId, long nodeId,
839                    java.lang.String title, java.lang.String newTitle,
840                    com.liferay.portal.service.ServiceContext serviceContext)
841                    throws com.liferay.portal.kernel.exception.PortalException,
842                            com.liferay.portal.kernel.exception.SystemException {
843                    getService().movePage(userId, nodeId, title, newTitle, serviceContext);
844            }
845    
846            public static com.liferay.portal.kernel.repository.model.FileEntry movePageAttachmentToTrash(
847                    long userId, long nodeId, java.lang.String title,
848                    java.lang.String fileName)
849                    throws com.liferay.portal.kernel.exception.PortalException,
850                            com.liferay.portal.kernel.exception.SystemException {
851                    return getService()
852                                       .movePageAttachmentToTrash(userId, nodeId, title, fileName);
853            }
854    
855            public static com.liferay.portlet.wiki.model.WikiPage movePageToTrash(
856                    long userId, long nodeId, java.lang.String title)
857                    throws com.liferay.portal.kernel.exception.PortalException,
858                            com.liferay.portal.kernel.exception.SystemException {
859                    return getService().movePageToTrash(userId, nodeId, title);
860            }
861    
862            public static com.liferay.portlet.wiki.model.WikiPage movePageToTrash(
863                    long userId, long nodeId, java.lang.String title, double version)
864                    throws com.liferay.portal.kernel.exception.PortalException,
865                            com.liferay.portal.kernel.exception.SystemException {
866                    return getService().movePageToTrash(userId, nodeId, title, version);
867            }
868    
869            public static com.liferay.portlet.wiki.model.WikiPage movePageToTrash(
870                    long userId, com.liferay.portlet.wiki.model.WikiPage page)
871                    throws com.liferay.portal.kernel.exception.PortalException,
872                            com.liferay.portal.kernel.exception.SystemException {
873                    return getService().movePageToTrash(userId, page);
874            }
875    
876            public static void restorePageAttachmentFromTrash(long userId, long nodeId,
877                    java.lang.String title, java.lang.String fileName)
878                    throws com.liferay.portal.kernel.exception.PortalException,
879                            com.liferay.portal.kernel.exception.SystemException {
880                    getService()
881                            .restorePageAttachmentFromTrash(userId, nodeId, title, fileName);
882            }
883    
884            public static void restorePageFromTrash(long userId,
885                    com.liferay.portlet.wiki.model.WikiPage page)
886                    throws com.liferay.portal.kernel.exception.PortalException,
887                            com.liferay.portal.kernel.exception.SystemException {
888                    getService().restorePageFromTrash(userId, page);
889            }
890    
891            public static com.liferay.portlet.wiki.model.WikiPage revertPage(
892                    long userId, long nodeId, java.lang.String title, double version,
893                    com.liferay.portal.service.ServiceContext serviceContext)
894                    throws com.liferay.portal.kernel.exception.PortalException,
895                            com.liferay.portal.kernel.exception.SystemException {
896                    return getService()
897                                       .revertPage(userId, nodeId, title, version, serviceContext);
898            }
899    
900            public static void subscribePage(long userId, long nodeId,
901                    java.lang.String title)
902                    throws com.liferay.portal.kernel.exception.PortalException,
903                            com.liferay.portal.kernel.exception.SystemException {
904                    getService().subscribePage(userId, nodeId, title);
905            }
906    
907            public static void unsubscribePage(long userId, long nodeId,
908                    java.lang.String title)
909                    throws com.liferay.portal.kernel.exception.PortalException,
910                            com.liferay.portal.kernel.exception.SystemException {
911                    getService().unsubscribePage(userId, nodeId, title);
912            }
913    
914            public static void updateAsset(long userId,
915                    com.liferay.portlet.wiki.model.WikiPage page, long[] assetCategoryIds,
916                    java.lang.String[] assetTagNames, long[] assetLinkEntryIds)
917                    throws com.liferay.portal.kernel.exception.PortalException,
918                            com.liferay.portal.kernel.exception.SystemException {
919                    getService()
920                            .updateAsset(userId, page, assetCategoryIds, assetTagNames,
921                            assetLinkEntryIds);
922            }
923    
924            public static com.liferay.portlet.wiki.model.WikiPage updatePage(
925                    long userId, long nodeId, java.lang.String title, double version,
926                    java.lang.String content, java.lang.String summary, boolean minorEdit,
927                    java.lang.String format, java.lang.String parentTitle,
928                    java.lang.String redirectTitle,
929                    com.liferay.portal.service.ServiceContext serviceContext)
930                    throws com.liferay.portal.kernel.exception.PortalException,
931                            com.liferay.portal.kernel.exception.SystemException {
932                    return getService()
933                                       .updatePage(userId, nodeId, title, version, content,
934                            summary, minorEdit, format, parentTitle, redirectTitle,
935                            serviceContext);
936            }
937    
938            public static com.liferay.portlet.wiki.model.WikiPage updateStatus(
939                    long userId, long resourcePrimKey, int status,
940                    com.liferay.portal.service.ServiceContext serviceContext)
941                    throws com.liferay.portal.kernel.exception.PortalException,
942                            com.liferay.portal.kernel.exception.SystemException {
943                    return getService()
944                                       .updateStatus(userId, resourcePrimKey, status, serviceContext);
945            }
946    
947            public static com.liferay.portlet.wiki.model.WikiPage updateStatus(
948                    long userId, com.liferay.portlet.wiki.model.WikiPage page, int status,
949                    com.liferay.portal.service.ServiceContext serviceContext)
950                    throws com.liferay.portal.kernel.exception.PortalException,
951                            com.liferay.portal.kernel.exception.SystemException {
952                    return getService().updateStatus(userId, page, status, serviceContext);
953            }
954    
955            public static void validateTitle(java.lang.String title)
956                    throws com.liferay.portal.kernel.exception.PortalException {
957                    getService().validateTitle(title);
958            }
959    
960            public static WikiPageLocalService getService() {
961                    if (_service == null) {
962                            _service = (WikiPageLocalService)PortalBeanLocatorUtil.locate(WikiPageLocalService.class.getName());
963    
964                            ReferenceRegistry.registerReference(WikiPageLocalServiceUtil.class,
965                                    "_service");
966                    }
967    
968                    return _service;
969            }
970    
971            /**
972             * @deprecated As of 6.2.0
973             */
974            public void setService(WikiPageLocalService service) {
975            }
976    
977            private static WikiPageLocalService _service;
978    }