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