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. 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.
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. 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.
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. 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.
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 addPageAttachments(long userId, long nodeId,
311                    java.lang.String title,
312                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs)
313                    throws com.liferay.portal.kernel.exception.PortalException,
314                            com.liferay.portal.kernel.exception.SystemException {
315                    getService().addPageAttachments(userId, nodeId, title, inputStreamOVPs);
316            }
317    
318            public static void addPageResources(long nodeId, java.lang.String title,
319                    boolean addGroupPermissions, boolean addGuestPermissions)
320                    throws com.liferay.portal.kernel.exception.PortalException,
321                            com.liferay.portal.kernel.exception.SystemException {
322                    getService()
323                            .addPageResources(nodeId, title, addGroupPermissions,
324                            addGuestPermissions);
325            }
326    
327            public static void addPageResources(long nodeId, java.lang.String title,
328                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
329                    throws com.liferay.portal.kernel.exception.PortalException,
330                            com.liferay.portal.kernel.exception.SystemException {
331                    getService()
332                            .addPageResources(nodeId, title, groupPermissions, guestPermissions);
333            }
334    
335            public static void addPageResources(
336                    com.liferay.portlet.wiki.model.WikiPage page,
337                    boolean addGroupPermissions, boolean addGuestPermissions)
338                    throws com.liferay.portal.kernel.exception.PortalException,
339                            com.liferay.portal.kernel.exception.SystemException {
340                    getService()
341                            .addPageResources(page, addGroupPermissions, addGuestPermissions);
342            }
343    
344            public static void addPageResources(
345                    com.liferay.portlet.wiki.model.WikiPage page,
346                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
347                    throws com.liferay.portal.kernel.exception.PortalException,
348                            com.liferay.portal.kernel.exception.SystemException {
349                    getService().addPageResources(page, groupPermissions, guestPermissions);
350            }
351    
352            public static java.lang.String addTempPageAttachment(long userId,
353                    java.lang.String fileName, java.lang.String tempFolderName,
354                    java.io.InputStream inputStream)
355                    throws com.liferay.portal.kernel.exception.PortalException,
356                            com.liferay.portal.kernel.exception.SystemException {
357                    return getService()
358                                       .addTempPageAttachment(userId, fileName, tempFolderName,
359                            inputStream);
360            }
361    
362            public static void changeParent(long userId, long nodeId,
363                    java.lang.String title, java.lang.String newParentTitle,
364                    com.liferay.portal.service.ServiceContext serviceContext)
365                    throws com.liferay.portal.kernel.exception.PortalException,
366                            com.liferay.portal.kernel.exception.SystemException {
367                    getService()
368                            .changeParent(userId, nodeId, title, newParentTitle, serviceContext);
369            }
370    
371            public static void deletePage(long nodeId, java.lang.String title)
372                    throws com.liferay.portal.kernel.exception.PortalException,
373                            com.liferay.portal.kernel.exception.SystemException {
374                    getService().deletePage(nodeId, title);
375            }
376    
377            public static void deletePage(long nodeId, java.lang.String title,
378                    double version)
379                    throws com.liferay.portal.kernel.exception.PortalException,
380                            com.liferay.portal.kernel.exception.SystemException {
381                    getService().deletePage(nodeId, title, version);
382            }
383    
384            public static void deletePage(com.liferay.portlet.wiki.model.WikiPage page)
385                    throws com.liferay.portal.kernel.exception.PortalException,
386                            com.liferay.portal.kernel.exception.SystemException {
387                    getService().deletePage(page);
388            }
389    
390            public static void deletePageAttachment(long nodeId,
391                    java.lang.String title, java.lang.String fileName)
392                    throws com.liferay.portal.kernel.exception.PortalException,
393                            com.liferay.portal.kernel.exception.SystemException {
394                    getService().deletePageAttachment(nodeId, title, fileName);
395            }
396    
397            public static void deletePageAttachments(long nodeId, java.lang.String title)
398                    throws com.liferay.portal.kernel.exception.PortalException,
399                            com.liferay.portal.kernel.exception.SystemException {
400                    getService().deletePageAttachments(nodeId, title);
401            }
402    
403            public static void deletePages(long nodeId)
404                    throws com.liferay.portal.kernel.exception.PortalException,
405                            com.liferay.portal.kernel.exception.SystemException {
406                    getService().deletePages(nodeId);
407            }
408    
409            public static void deleteTempPageAttachment(long userId,
410                    java.lang.String fileName, java.lang.String tempFolderName)
411                    throws com.liferay.portal.kernel.exception.PortalException,
412                            com.liferay.portal.kernel.exception.SystemException {
413                    getService().deleteTempPageAttachment(userId, fileName, tempFolderName);
414            }
415    
416            public static void deleteTrashPageAttachments(long nodeId,
417                    java.lang.String title)
418                    throws com.liferay.portal.kernel.exception.PortalException,
419                            com.liferay.portal.kernel.exception.SystemException {
420                    getService().deleteTrashPageAttachments(nodeId, title);
421            }
422    
423            public static com.liferay.portlet.wiki.model.WikiPage fetchPage(
424                    long nodeId, java.lang.String title, double version)
425                    throws com.liferay.portal.kernel.exception.SystemException {
426                    return getService().fetchPage(nodeId, title, version);
427            }
428    
429            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getChildren(
430                    long nodeId, boolean head, java.lang.String parentTitle)
431                    throws com.liferay.portal.kernel.exception.SystemException {
432                    return getService().getChildren(nodeId, head, parentTitle);
433            }
434    
435            public static com.liferay.portlet.wiki.model.WikiPage getDraftPage(
436                    long nodeId, java.lang.String title)
437                    throws com.liferay.portal.kernel.exception.PortalException,
438                            com.liferay.portal.kernel.exception.SystemException {
439                    return getService().getDraftPage(nodeId, title);
440            }
441    
442            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getIncomingLinks(
443                    long nodeId, java.lang.String title)
444                    throws com.liferay.portal.kernel.exception.PortalException,
445                            com.liferay.portal.kernel.exception.SystemException {
446                    return getService().getIncomingLinks(nodeId, title);
447            }
448    
449            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getNoAssetPages()
450                    throws com.liferay.portal.kernel.exception.SystemException {
451                    return getService().getNoAssetPages();
452            }
453    
454            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOrphans(
455                    long nodeId)
456                    throws com.liferay.portal.kernel.exception.PortalException,
457                            com.liferay.portal.kernel.exception.SystemException {
458                    return getService().getOrphans(nodeId);
459            }
460    
461            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOutgoingLinks(
462                    long nodeId, java.lang.String title)
463                    throws com.liferay.portal.kernel.exception.PortalException,
464                            com.liferay.portal.kernel.exception.SystemException {
465                    return getService().getOutgoingLinks(nodeId, title);
466            }
467    
468            public static com.liferay.portlet.wiki.model.WikiPage getPage(
469                    long resourcePrimKey)
470                    throws com.liferay.portal.kernel.exception.PortalException,
471                            com.liferay.portal.kernel.exception.SystemException {
472                    return getService().getPage(resourcePrimKey);
473            }
474    
475            public static com.liferay.portlet.wiki.model.WikiPage getPage(
476                    long resourcePrimKey, java.lang.Boolean head)
477                    throws com.liferay.portal.kernel.exception.PortalException,
478                            com.liferay.portal.kernel.exception.SystemException {
479                    return getService().getPage(resourcePrimKey, head);
480            }
481    
482            public static com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
483                    java.lang.String title)
484                    throws com.liferay.portal.kernel.exception.PortalException,
485                            com.liferay.portal.kernel.exception.SystemException {
486                    return getService().getPage(nodeId, title);
487            }
488    
489            public static com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
490                    java.lang.String title, java.lang.Boolean head)
491                    throws com.liferay.portal.kernel.exception.PortalException,
492                            com.liferay.portal.kernel.exception.SystemException {
493                    return getService().getPage(nodeId, title, head);
494            }
495    
496            public static com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
497                    java.lang.String title, double version)
498                    throws com.liferay.portal.kernel.exception.PortalException,
499                            com.liferay.portal.kernel.exception.SystemException {
500                    return getService().getPage(nodeId, title, version);
501            }
502    
503            public static com.liferay.portlet.wiki.model.WikiPage getPageByPageId(
504                    long pageId)
505                    throws com.liferay.portal.kernel.exception.PortalException,
506                            com.liferay.portal.kernel.exception.SystemException {
507                    return getService().getPageByPageId(pageId);
508            }
509    
510            public static com.liferay.portlet.wiki.model.WikiPageDisplay getPageDisplay(
511                    long nodeId, java.lang.String title,
512                    javax.portlet.PortletURL viewPageURL,
513                    javax.portlet.PortletURL editPageURL,
514                    java.lang.String attachmentURLPrefix)
515                    throws com.liferay.portal.kernel.exception.PortalException,
516                            com.liferay.portal.kernel.exception.SystemException {
517                    return getService()
518                                       .getPageDisplay(nodeId, title, viewPageURL, editPageURL,
519                            attachmentURLPrefix);
520            }
521    
522            public static com.liferay.portlet.wiki.model.WikiPageDisplay getPageDisplay(
523                    com.liferay.portlet.wiki.model.WikiPage page,
524                    javax.portlet.PortletURL viewPageURL,
525                    javax.portlet.PortletURL editPageURL,
526                    java.lang.String attachmentURLPrefix)
527                    throws com.liferay.portal.kernel.exception.PortalException,
528                            com.liferay.portal.kernel.exception.SystemException {
529                    return getService()
530                                       .getPageDisplay(page, viewPageURL, editPageURL,
531                            attachmentURLPrefix);
532            }
533    
534            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
535                    long nodeId, boolean head, int start, int end)
536                    throws com.liferay.portal.kernel.exception.SystemException {
537                    return getService().getPages(nodeId, head, start, end);
538            }
539    
540            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
541                    long nodeId, boolean head, int status, int start, int end,
542                    com.liferay.portal.kernel.util.OrderByComparator obc)
543                    throws com.liferay.portal.kernel.exception.SystemException {
544                    return getService().getPages(nodeId, head, status, start, end, obc);
545            }
546    
547            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
548                    long nodeId, boolean head, int start, int end,
549                    com.liferay.portal.kernel.util.OrderByComparator obc)
550                    throws com.liferay.portal.kernel.exception.SystemException {
551                    return getService().getPages(nodeId, head, start, end, obc);
552            }
553    
554            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
555                    long nodeId, int start, int end)
556                    throws com.liferay.portal.kernel.exception.SystemException {
557                    return getService().getPages(nodeId, start, end);
558            }
559    
560            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
561                    long nodeId, int start, int end,
562                    com.liferay.portal.kernel.util.OrderByComparator obc)
563                    throws com.liferay.portal.kernel.exception.SystemException {
564                    return getService().getPages(nodeId, start, end, obc);
565            }
566    
567            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
568                    long resourcePrimKey, long nodeId, int status)
569                    throws com.liferay.portal.kernel.exception.SystemException {
570                    return getService().getPages(resourcePrimKey, nodeId, status);
571            }
572    
573            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
574                    long userId, long nodeId, int status, int start, int end)
575                    throws com.liferay.portal.kernel.exception.SystemException {
576                    return getService().getPages(userId, nodeId, status, start, end);
577            }
578    
579            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
580                    long nodeId, java.lang.String title, boolean head, int start, int end)
581                    throws com.liferay.portal.kernel.exception.SystemException {
582                    return getService().getPages(nodeId, title, head, start, end);
583            }
584    
585            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
586                    long nodeId, java.lang.String title, int start, int end)
587                    throws com.liferay.portal.kernel.exception.SystemException {
588                    return getService().getPages(nodeId, title, start, end);
589            }
590    
591            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
592                    long nodeId, java.lang.String title, int start, int end,
593                    com.liferay.portal.kernel.util.OrderByComparator obc)
594                    throws com.liferay.portal.kernel.exception.SystemException {
595                    return getService().getPages(nodeId, title, start, end, obc);
596            }
597    
598            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
599                    java.lang.String format)
600                    throws com.liferay.portal.kernel.exception.SystemException {
601                    return getService().getPages(format);
602            }
603    
604            public static int getPagesCount(long nodeId)
605                    throws com.liferay.portal.kernel.exception.SystemException {
606                    return getService().getPagesCount(nodeId);
607            }
608    
609            public static int getPagesCount(long nodeId, boolean head)
610                    throws com.liferay.portal.kernel.exception.SystemException {
611                    return getService().getPagesCount(nodeId, head);
612            }
613    
614            public static int getPagesCount(long nodeId, boolean head, int status)
615                    throws com.liferay.portal.kernel.exception.SystemException {
616                    return getService().getPagesCount(nodeId, head, status);
617            }
618    
619            public static int getPagesCount(long nodeId, int status)
620                    throws com.liferay.portal.kernel.exception.SystemException {
621                    return getService().getPagesCount(nodeId, status);
622            }
623    
624            public static int getPagesCount(long userId, long nodeId, int status)
625                    throws com.liferay.portal.kernel.exception.SystemException {
626                    return getService().getPagesCount(userId, nodeId, status);
627            }
628    
629            public static int getPagesCount(long nodeId, java.lang.String title)
630                    throws com.liferay.portal.kernel.exception.SystemException {
631                    return getService().getPagesCount(nodeId, title);
632            }
633    
634            public static int getPagesCount(long nodeId, java.lang.String title,
635                    boolean head)
636                    throws com.liferay.portal.kernel.exception.SystemException {
637                    return getService().getPagesCount(nodeId, title, head);
638            }
639    
640            public static int getPagesCount(java.lang.String format)
641                    throws com.liferay.portal.kernel.exception.SystemException {
642                    return getService().getPagesCount(format);
643            }
644    
645            /**
646            * @deprecated {@link #getRecentChanges(long, long, int, int)}
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.PortalException,
651                            com.liferay.portal.kernel.exception.SystemException {
652                    return getService().getRecentChanges(nodeId, start, end);
653            }
654    
655            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getRecentChanges(
656                    long groupId, long nodeId, int start, int end)
657                    throws com.liferay.portal.kernel.exception.SystemException {
658                    return getService().getRecentChanges(groupId, nodeId, start, end);
659            }
660    
661            /**
662            * @deprecated {@link #getRecentChangesCount(long, long)}
663            */
664            public static int getRecentChangesCount(long nodeId)
665                    throws com.liferay.portal.kernel.exception.PortalException,
666                            com.liferay.portal.kernel.exception.SystemException {
667                    return getService().getRecentChangesCount(nodeId);
668            }
669    
670            public static int getRecentChangesCount(long groupId, long nodeId)
671                    throws com.liferay.portal.kernel.exception.SystemException {
672                    return getService().getRecentChangesCount(groupId, nodeId);
673            }
674    
675            public static java.lang.String[] getTempPageAttachmentNames(long userId,
676                    java.lang.String tempFolderName) {
677                    return getService().getTempPageAttachmentNames(userId, tempFolderName);
678            }
679    
680            public static boolean hasDraftPage(long nodeId, java.lang.String title)
681                    throws com.liferay.portal.kernel.exception.SystemException {
682                    return getService().hasDraftPage(nodeId, title);
683            }
684    
685            public static void movePage(long userId, long nodeId,
686                    java.lang.String title, java.lang.String newTitle, boolean strict,
687                    com.liferay.portal.service.ServiceContext serviceContext)
688                    throws com.liferay.portal.kernel.exception.PortalException,
689                            com.liferay.portal.kernel.exception.SystemException {
690                    getService()
691                            .movePage(userId, nodeId, title, newTitle, strict, serviceContext);
692            }
693    
694            public static void movePage(long userId, long nodeId,
695                    java.lang.String title, java.lang.String newTitle,
696                    com.liferay.portal.service.ServiceContext serviceContext)
697                    throws com.liferay.portal.kernel.exception.PortalException,
698                            com.liferay.portal.kernel.exception.SystemException {
699                    getService().movePage(userId, nodeId, title, newTitle, serviceContext);
700            }
701    
702            public static long movePageAttachmentToTrash(long userId, long nodeId,
703                    java.lang.String title, java.lang.String fileName)
704                    throws com.liferay.portal.kernel.exception.PortalException,
705                            com.liferay.portal.kernel.exception.SystemException {
706                    return getService()
707                                       .movePageAttachmentToTrash(userId, nodeId, title, fileName);
708            }
709    
710            public static com.liferay.portlet.wiki.model.WikiPage movePageToTrash(
711                    long userId, long nodeId, java.lang.String title)
712                    throws com.liferay.portal.kernel.exception.PortalException,
713                            com.liferay.portal.kernel.exception.SystemException {
714                    return getService().movePageToTrash(userId, nodeId, title);
715            }
716    
717            public static com.liferay.portlet.wiki.model.WikiPage movePageToTrash(
718                    long userId, long nodeId, java.lang.String title, double version)
719                    throws com.liferay.portal.kernel.exception.PortalException,
720                            com.liferay.portal.kernel.exception.SystemException {
721                    return getService().movePageToTrash(userId, nodeId, title, version);
722            }
723    
724            public static com.liferay.portlet.wiki.model.WikiPage movePageToTrash(
725                    long userId, com.liferay.portlet.wiki.model.WikiPage page)
726                    throws com.liferay.portal.kernel.exception.PortalException,
727                            com.liferay.portal.kernel.exception.SystemException {
728                    return getService().movePageToTrash(userId, page);
729            }
730    
731            public static void restorePageAttachmentFromTrash(long userId, long nodeId,
732                    java.lang.String title, java.lang.String fileName)
733                    throws com.liferay.portal.kernel.exception.PortalException,
734                            com.liferay.portal.kernel.exception.SystemException {
735                    getService()
736                            .restorePageAttachmentFromTrash(userId, nodeId, title, fileName);
737            }
738    
739            public static void restorePageFromTrash(long userId,
740                    com.liferay.portlet.wiki.model.WikiPage page)
741                    throws com.liferay.portal.kernel.exception.PortalException,
742                            com.liferay.portal.kernel.exception.SystemException {
743                    getService().restorePageFromTrash(userId, page);
744            }
745    
746            public static com.liferay.portlet.wiki.model.WikiPage revertPage(
747                    long userId, long nodeId, java.lang.String title, double version,
748                    com.liferay.portal.service.ServiceContext serviceContext)
749                    throws com.liferay.portal.kernel.exception.PortalException,
750                            com.liferay.portal.kernel.exception.SystemException {
751                    return getService()
752                                       .revertPage(userId, nodeId, title, version, serviceContext);
753            }
754    
755            public static void subscribePage(long userId, long nodeId,
756                    java.lang.String title)
757                    throws com.liferay.portal.kernel.exception.PortalException,
758                            com.liferay.portal.kernel.exception.SystemException {
759                    getService().subscribePage(userId, nodeId, title);
760            }
761    
762            public static void unsubscribePage(long userId, long nodeId,
763                    java.lang.String title)
764                    throws com.liferay.portal.kernel.exception.PortalException,
765                            com.liferay.portal.kernel.exception.SystemException {
766                    getService().unsubscribePage(userId, nodeId, title);
767            }
768    
769            public static void updateAsset(long userId,
770                    com.liferay.portlet.wiki.model.WikiPage page, long[] assetCategoryIds,
771                    java.lang.String[] assetTagNames, long[] assetLinkEntryIds)
772                    throws com.liferay.portal.kernel.exception.PortalException,
773                            com.liferay.portal.kernel.exception.SystemException {
774                    getService()
775                            .updateAsset(userId, page, assetCategoryIds, assetTagNames,
776                            assetLinkEntryIds);
777            }
778    
779            public static com.liferay.portlet.wiki.model.WikiPage updatePage(
780                    long userId, long nodeId, java.lang.String title, double version,
781                    java.lang.String content, java.lang.String summary, boolean minorEdit,
782                    java.lang.String format, java.lang.String parentTitle,
783                    java.lang.String redirectTitle,
784                    com.liferay.portal.service.ServiceContext serviceContext)
785                    throws com.liferay.portal.kernel.exception.PortalException,
786                            com.liferay.portal.kernel.exception.SystemException {
787                    return getService()
788                                       .updatePage(userId, nodeId, title, version, content,
789                            summary, minorEdit, format, parentTitle, redirectTitle,
790                            serviceContext);
791            }
792    
793            public static com.liferay.portlet.wiki.model.WikiPage updateStatus(
794                    long userId, long resourcePrimKey, int status,
795                    com.liferay.portal.service.ServiceContext serviceContext)
796                    throws com.liferay.portal.kernel.exception.PortalException,
797                            com.liferay.portal.kernel.exception.SystemException {
798                    return getService()
799                                       .updateStatus(userId, resourcePrimKey, status, serviceContext);
800            }
801    
802            public static com.liferay.portlet.wiki.model.WikiPage updateStatus(
803                    long userId, com.liferay.portlet.wiki.model.WikiPage page, int status,
804                    com.liferay.portal.service.ServiceContext serviceContext)
805                    throws com.liferay.portal.kernel.exception.PortalException,
806                            com.liferay.portal.kernel.exception.SystemException {
807                    return getService().updateStatus(userId, page, status, serviceContext);
808            }
809    
810            public static void validateTitle(java.lang.String title)
811                    throws com.liferay.portal.kernel.exception.PortalException {
812                    getService().validateTitle(title);
813            }
814    
815            public static WikiPageLocalService getService() {
816                    if (_service == null) {
817                            _service = (WikiPageLocalService)PortalBeanLocatorUtil.locate(WikiPageLocalService.class.getName());
818    
819                            ReferenceRegistry.registerReference(WikiPageLocalServiceUtil.class,
820                                    "_service");
821                    }
822    
823                    return _service;
824            }
825    
826            /**
827             * @deprecated
828             */
829            public void setService(WikiPageLocalService service) {
830            }
831    
832            private static WikiPageLocalService _service;
833    }