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