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