001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.wiki.service;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.util.ReferenceRegistry;
019    
020    /**
021     * The utility for the wiki page remote service. This utility wraps {@link com.liferay.portlet.wiki.service.impl.WikiPageServiceImpl} and is the primary access point for service operations in application layer code running on a remote server.
022     *
023     * <p>
024     * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.
025     * </p>
026     *
027     * @author Brian Wing Shun Chan
028     * @see WikiPageService
029     * @see com.liferay.portlet.wiki.service.base.WikiPageServiceBaseImpl
030     * @see com.liferay.portlet.wiki.service.impl.WikiPageServiceImpl
031     * @generated
032     */
033    public class WikiPageServiceUtil {
034            /*
035             * NOTE FOR DEVELOPERS:
036             *
037             * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.wiki.service.impl.WikiPageServiceImpl} and rerun ServiceBuilder to regenerate this class.
038             */
039    
040            /**
041            * Returns the Spring bean ID for this bean.
042            *
043            * @return the Spring bean ID for this bean
044            */
045            public static java.lang.String getBeanIdentifier() {
046                    return getService().getBeanIdentifier();
047            }
048    
049            /**
050            * Sets the Spring bean ID for this bean.
051            *
052            * @param beanIdentifier the Spring bean ID for this bean
053            */
054            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
055                    getService().setBeanIdentifier(beanIdentifier);
056            }
057    
058            public static com.liferay.portlet.wiki.model.WikiPage addPage(long nodeId,
059                    java.lang.String title, java.lang.String content,
060                    java.lang.String summary, boolean minorEdit,
061                    com.liferay.portal.service.ServiceContext serviceContext)
062                    throws com.liferay.portal.kernel.exception.PortalException,
063                            com.liferay.portal.kernel.exception.SystemException {
064                    return getService()
065                                       .addPage(nodeId, title, content, summary, minorEdit,
066                            serviceContext);
067            }
068    
069            public static com.liferay.portlet.wiki.model.WikiPage addPage(long nodeId,
070                    java.lang.String title, java.lang.String content,
071                    java.lang.String summary, boolean minorEdit, java.lang.String format,
072                    java.lang.String parentTitle, java.lang.String redirectTitle,
073                    com.liferay.portal.service.ServiceContext serviceContext)
074                    throws com.liferay.portal.kernel.exception.PortalException,
075                            com.liferay.portal.kernel.exception.SystemException {
076                    return getService()
077                                       .addPage(nodeId, title, content, summary, minorEdit, format,
078                            parentTitle, redirectTitle, serviceContext);
079            }
080    
081            public static void addPageAttachment(long nodeId, java.lang.String title,
082                    java.lang.String fileName, java.io.File file, java.lang.String mimeType)
083                    throws com.liferay.portal.kernel.exception.PortalException,
084                            com.liferay.portal.kernel.exception.SystemException {
085                    getService().addPageAttachment(nodeId, title, fileName, file, mimeType);
086            }
087    
088            public static void addPageAttachment(long nodeId, java.lang.String title,
089                    java.lang.String fileName, java.io.InputStream inputStream,
090                    java.lang.String mimeType)
091                    throws com.liferay.portal.kernel.exception.PortalException,
092                            com.liferay.portal.kernel.exception.SystemException {
093                    getService()
094                            .addPageAttachment(nodeId, title, fileName, inputStream, mimeType);
095            }
096    
097            public static void addPageAttachments(long nodeId, java.lang.String title,
098                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs)
099                    throws com.liferay.portal.kernel.exception.PortalException,
100                            com.liferay.portal.kernel.exception.SystemException {
101                    getService().addPageAttachments(nodeId, title, inputStreamOVPs);
102            }
103    
104            public static void addTempPageAttachment(long nodeId,
105                    java.lang.String fileName, java.lang.String tempFolderName,
106                    java.io.InputStream inputStream, java.lang.String mimeType)
107                    throws com.liferay.portal.kernel.exception.PortalException,
108                            com.liferay.portal.kernel.exception.SystemException {
109                    getService()
110                            .addTempPageAttachment(nodeId, fileName, tempFolderName,
111                            inputStream, mimeType);
112            }
113    
114            public static void changeParent(long nodeId, java.lang.String title,
115                    java.lang.String newParentTitle,
116                    com.liferay.portal.service.ServiceContext serviceContext)
117                    throws com.liferay.portal.kernel.exception.PortalException,
118                            com.liferay.portal.kernel.exception.SystemException {
119                    getService().changeParent(nodeId, title, newParentTitle, serviceContext);
120            }
121    
122            public static void deletePage(long nodeId, java.lang.String title)
123                    throws com.liferay.portal.kernel.exception.PortalException,
124                            com.liferay.portal.kernel.exception.SystemException {
125                    getService().deletePage(nodeId, title);
126            }
127    
128            /**
129            * @deprecated As of 6.2.0 replaced by {@link #discardDraft(long, String,
130            double)}
131            */
132            public static void deletePage(long nodeId, java.lang.String title,
133                    double version)
134                    throws com.liferay.portal.kernel.exception.PortalException,
135                            com.liferay.portal.kernel.exception.SystemException {
136                    getService().deletePage(nodeId, title, version);
137            }
138    
139            public static void deletePageAttachment(long nodeId,
140                    java.lang.String title, java.lang.String fileName)
141                    throws com.liferay.portal.kernel.exception.PortalException,
142                            com.liferay.portal.kernel.exception.SystemException {
143                    getService().deletePageAttachment(nodeId, title, fileName);
144            }
145    
146            public static void deletePageAttachments(long nodeId, java.lang.String title)
147                    throws com.liferay.portal.kernel.exception.PortalException,
148                            com.liferay.portal.kernel.exception.SystemException {
149                    getService().deletePageAttachments(nodeId, title);
150            }
151    
152            public static void deleteTempPageAttachment(long nodeId,
153                    java.lang.String fileName, java.lang.String tempFolderName)
154                    throws com.liferay.portal.kernel.exception.PortalException,
155                            com.liferay.portal.kernel.exception.SystemException {
156                    getService().deleteTempPageAttachment(nodeId, fileName, tempFolderName);
157            }
158    
159            public static void deleteTrashPageAttachments(long nodeId,
160                    java.lang.String title)
161                    throws com.liferay.portal.kernel.exception.PortalException,
162                            com.liferay.portal.kernel.exception.SystemException {
163                    getService().deleteTrashPageAttachments(nodeId, title);
164            }
165    
166            public static void discardDraft(long nodeId, java.lang.String title,
167                    double version)
168                    throws com.liferay.portal.kernel.exception.PortalException,
169                            com.liferay.portal.kernel.exception.SystemException {
170                    getService().discardDraft(nodeId, title, version);
171            }
172    
173            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getChildren(
174                    long groupId, long nodeId, boolean head, java.lang.String parentTitle)
175                    throws com.liferay.portal.kernel.exception.PortalException,
176                            com.liferay.portal.kernel.exception.SystemException {
177                    return getService().getChildren(groupId, nodeId, head, parentTitle);
178            }
179    
180            public static com.liferay.portlet.wiki.model.WikiPage getDraftPage(
181                    long nodeId, java.lang.String title)
182                    throws com.liferay.portal.kernel.exception.PortalException,
183                            com.liferay.portal.kernel.exception.SystemException {
184                    return getService().getDraftPage(nodeId, title);
185            }
186    
187            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getNodePages(
188                    long nodeId, int max)
189                    throws com.liferay.portal.kernel.exception.PortalException,
190                            com.liferay.portal.kernel.exception.SystemException {
191                    return getService().getNodePages(nodeId, max);
192            }
193    
194            /**
195            * @deprecated As of 6.2.0, replaced by {@link #getNodePagesRSS(long, int,
196            String, double, String, String, String, String)}
197            */
198            public static java.lang.String getNodePagesRSS(long nodeId, int max,
199                    java.lang.String type, double version, java.lang.String displayStyle,
200                    java.lang.String feedURL, java.lang.String entryURL)
201                    throws com.liferay.portal.kernel.exception.PortalException,
202                            com.liferay.portal.kernel.exception.SystemException {
203                    return getService()
204                                       .getNodePagesRSS(nodeId, max, type, version, displayStyle,
205                            feedURL, entryURL);
206            }
207    
208            public static java.lang.String getNodePagesRSS(long nodeId, int max,
209                    java.lang.String type, double version, java.lang.String displayStyle,
210                    java.lang.String feedURL, java.lang.String entryURL,
211                    java.lang.String attachmentURLPrefix)
212                    throws com.liferay.portal.kernel.exception.PortalException,
213                            com.liferay.portal.kernel.exception.SystemException {
214                    return getService()
215                                       .getNodePagesRSS(nodeId, max, type, version, displayStyle,
216                            feedURL, entryURL, attachmentURLPrefix);
217            }
218    
219            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOrphans(
220                    long groupId, long nodeId)
221                    throws com.liferay.portal.kernel.exception.PortalException,
222                            com.liferay.portal.kernel.exception.SystemException {
223                    return getService().getOrphans(groupId, nodeId);
224            }
225    
226            public static com.liferay.portlet.wiki.model.WikiPage getPage(
227                    long groupId, long nodeId, java.lang.String title)
228                    throws com.liferay.portal.kernel.exception.PortalException,
229                            com.liferay.portal.kernel.exception.SystemException {
230                    return getService().getPage(groupId, nodeId, title);
231            }
232    
233            public static com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
234                    java.lang.String title)
235                    throws com.liferay.portal.kernel.exception.PortalException,
236                            com.liferay.portal.kernel.exception.SystemException {
237                    return getService().getPage(nodeId, title);
238            }
239    
240            public static com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
241                    java.lang.String title, java.lang.Boolean head)
242                    throws com.liferay.portal.kernel.exception.PortalException,
243                            com.liferay.portal.kernel.exception.SystemException {
244                    return getService().getPage(nodeId, title, head);
245            }
246    
247            public static com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
248                    java.lang.String title, double version)
249                    throws com.liferay.portal.kernel.exception.PortalException,
250                            com.liferay.portal.kernel.exception.SystemException {
251                    return getService().getPage(nodeId, title, version);
252            }
253    
254            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
255                    long groupId, long nodeId, boolean head, int status, int start,
256                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
257                    throws com.liferay.portal.kernel.exception.PortalException,
258                            com.liferay.portal.kernel.exception.SystemException {
259                    return getService()
260                                       .getPages(groupId, nodeId, head, status, start, end, obc);
261            }
262    
263            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
264                    long groupId, long userId, long nodeId, int status, int start, int end)
265                    throws com.liferay.portal.kernel.exception.PortalException,
266                            com.liferay.portal.kernel.exception.SystemException {
267                    return getService().getPages(groupId, userId, nodeId, status, start, end);
268            }
269    
270            public static int getPagesCount(long groupId, long nodeId, boolean head)
271                    throws com.liferay.portal.kernel.exception.PortalException,
272                            com.liferay.portal.kernel.exception.SystemException {
273                    return getService().getPagesCount(groupId, nodeId, head);
274            }
275    
276            public static int getPagesCount(long groupId, long userId, long nodeId,
277                    int status)
278                    throws com.liferay.portal.kernel.exception.PortalException,
279                            com.liferay.portal.kernel.exception.SystemException {
280                    return getService().getPagesCount(groupId, userId, nodeId, status);
281            }
282    
283            /**
284            * @deprecated As of 6.2.0, replaced by {@link #getPagesRSS(long, long,
285            String, int, String, double, String, String, String, String,
286            java.util.Locale)}
287            */
288            public static java.lang.String getPagesRSS(long companyId, long nodeId,
289                    java.lang.String title, int max, java.lang.String type, double version,
290                    java.lang.String displayStyle, java.lang.String feedURL,
291                    java.lang.String entryURL, java.util.Locale locale)
292                    throws com.liferay.portal.kernel.exception.PortalException,
293                            com.liferay.portal.kernel.exception.SystemException {
294                    return getService()
295                                       .getPagesRSS(companyId, nodeId, title, max, type, version,
296                            displayStyle, feedURL, entryURL, locale);
297            }
298    
299            public static java.lang.String getPagesRSS(long companyId, long nodeId,
300                    java.lang.String title, int max, java.lang.String type, double version,
301                    java.lang.String displayStyle, java.lang.String feedURL,
302                    java.lang.String entryURL, java.lang.String attachmentURLPrefix,
303                    java.util.Locale locale)
304                    throws com.liferay.portal.kernel.exception.PortalException,
305                            com.liferay.portal.kernel.exception.SystemException {
306                    return getService()
307                                       .getPagesRSS(companyId, nodeId, title, max, type, version,
308                            displayStyle, feedURL, entryURL, attachmentURLPrefix, locale);
309            }
310    
311            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getRecentChanges(
312                    long groupId, long nodeId, int start, int end)
313                    throws com.liferay.portal.kernel.exception.PortalException,
314                            com.liferay.portal.kernel.exception.SystemException {
315                    return getService().getRecentChanges(groupId, nodeId, start, end);
316            }
317    
318            public static int getRecentChangesCount(long groupId, long nodeId)
319                    throws com.liferay.portal.kernel.exception.PortalException,
320                            com.liferay.portal.kernel.exception.SystemException {
321                    return getService().getRecentChangesCount(groupId, nodeId);
322            }
323    
324            public static java.lang.String[] getTempPageAttachmentNames(long nodeId,
325                    java.lang.String tempFolderName)
326                    throws com.liferay.portal.kernel.exception.PortalException,
327                            com.liferay.portal.kernel.exception.SystemException {
328                    return getService().getTempPageAttachmentNames(nodeId, tempFolderName);
329            }
330    
331            public static void movePage(long nodeId, java.lang.String title,
332                    java.lang.String newTitle,
333                    com.liferay.portal.service.ServiceContext serviceContext)
334                    throws com.liferay.portal.kernel.exception.PortalException,
335                            com.liferay.portal.kernel.exception.SystemException {
336                    getService().movePage(nodeId, title, newTitle, serviceContext);
337            }
338    
339            public static long movePageAttachmentToTrash(long nodeId,
340                    java.lang.String title, java.lang.String fileName)
341                    throws com.liferay.portal.kernel.exception.PortalException,
342                            com.liferay.portal.kernel.exception.SystemException {
343                    return getService().movePageAttachmentToTrash(nodeId, title, fileName);
344            }
345    
346            public static void movePageToTrash(long nodeId, java.lang.String title)
347                    throws com.liferay.portal.kernel.exception.PortalException,
348                            com.liferay.portal.kernel.exception.SystemException {
349                    getService().movePageToTrash(nodeId, title);
350            }
351    
352            public static void movePageToTrash(long nodeId, java.lang.String title,
353                    double version)
354                    throws com.liferay.portal.kernel.exception.PortalException,
355                            com.liferay.portal.kernel.exception.SystemException {
356                    getService().movePageToTrash(nodeId, title, version);
357            }
358    
359            public static void restorePageAttachmentFromTrash(long nodeId,
360                    java.lang.String title, java.lang.String fileName)
361                    throws com.liferay.portal.kernel.exception.PortalException,
362                            com.liferay.portal.kernel.exception.SystemException {
363                    getService().restorePageAttachmentFromTrash(nodeId, title, fileName);
364            }
365    
366            public static void restorePageFromTrash(long resourcePrimKey)
367                    throws com.liferay.portal.kernel.exception.PortalException,
368                            com.liferay.portal.kernel.exception.SystemException {
369                    getService().restorePageFromTrash(resourcePrimKey);
370            }
371    
372            public static com.liferay.portlet.wiki.model.WikiPage revertPage(
373                    long nodeId, java.lang.String title, double version,
374                    com.liferay.portal.service.ServiceContext serviceContext)
375                    throws com.liferay.portal.kernel.exception.PortalException,
376                            com.liferay.portal.kernel.exception.SystemException {
377                    return getService().revertPage(nodeId, title, version, serviceContext);
378            }
379    
380            public static void subscribePage(long nodeId, java.lang.String title)
381                    throws com.liferay.portal.kernel.exception.PortalException,
382                            com.liferay.portal.kernel.exception.SystemException {
383                    getService().subscribePage(nodeId, title);
384            }
385    
386            public static void unsubscribePage(long nodeId, java.lang.String title)
387                    throws com.liferay.portal.kernel.exception.PortalException,
388                            com.liferay.portal.kernel.exception.SystemException {
389                    getService().unsubscribePage(nodeId, title);
390            }
391    
392            public static com.liferay.portlet.wiki.model.WikiPage updatePage(
393                    long nodeId, java.lang.String title, double version,
394                    java.lang.String content, java.lang.String summary, boolean minorEdit,
395                    java.lang.String format, java.lang.String parentTitle,
396                    java.lang.String redirectTitle,
397                    com.liferay.portal.service.ServiceContext serviceContext)
398                    throws com.liferay.portal.kernel.exception.PortalException,
399                            com.liferay.portal.kernel.exception.SystemException {
400                    return getService()
401                                       .updatePage(nodeId, title, version, content, summary,
402                            minorEdit, format, parentTitle, redirectTitle, serviceContext);
403            }
404    
405            public static WikiPageService getService() {
406                    if (_service == null) {
407                            _service = (WikiPageService)PortalBeanLocatorUtil.locate(WikiPageService.class.getName());
408    
409                            ReferenceRegistry.registerReference(WikiPageServiceUtil.class,
410                                    "_service");
411                    }
412    
413                    return _service;
414            }
415    
416            /**
417             * @deprecated As of 6.2.0
418             */
419            public void setService(WikiPageService service) {
420            }
421    
422            private static WikiPageService _service;
423    }