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)
083                    throws com.liferay.portal.kernel.exception.PortalException,
084                            com.liferay.portal.kernel.exception.SystemException {
085                    getService().addPageAttachment(nodeId, title, fileName, file);
086            }
087    
088            public static void addPageAttachment(long nodeId, java.lang.String title,
089                    java.lang.String fileName, java.io.InputStream inputStream)
090                    throws com.liferay.portal.kernel.exception.PortalException,
091                            com.liferay.portal.kernel.exception.SystemException {
092                    getService().addPageAttachment(nodeId, title, fileName, inputStream);
093            }
094    
095            public static void addPageAttachments(long nodeId, java.lang.String title,
096                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStream)
097                    throws com.liferay.portal.kernel.exception.PortalException,
098                            com.liferay.portal.kernel.exception.SystemException {
099                    getService().addPageAttachments(nodeId, title, inputStream);
100            }
101    
102            public static java.lang.String addTempPageAttachment(long nodeId,
103                    java.lang.String fileName, java.lang.String tempFolderName,
104                    java.io.InputStream inputStream)
105                    throws com.liferay.portal.kernel.exception.PortalException,
106                            com.liferay.portal.kernel.exception.SystemException {
107                    return getService()
108                                       .addTempPageAttachment(nodeId, fileName, tempFolderName,
109                            inputStream);
110            }
111    
112            public static void changeParent(long nodeId, java.lang.String title,
113                    java.lang.String newParentTitle,
114                    com.liferay.portal.service.ServiceContext serviceContext)
115                    throws com.liferay.portal.kernel.exception.PortalException,
116                            com.liferay.portal.kernel.exception.SystemException {
117                    getService().changeParent(nodeId, title, newParentTitle, serviceContext);
118            }
119    
120            public static void deletePage(long nodeId, java.lang.String title)
121                    throws com.liferay.portal.kernel.exception.PortalException,
122                            com.liferay.portal.kernel.exception.SystemException {
123                    getService().deletePage(nodeId, title);
124            }
125    
126            public static void deletePage(long nodeId, java.lang.String title,
127                    double version)
128                    throws com.liferay.portal.kernel.exception.PortalException,
129                            com.liferay.portal.kernel.exception.SystemException {
130                    getService().deletePage(nodeId, title, version);
131            }
132    
133            public static void deletePageAttachment(long nodeId,
134                    java.lang.String title, java.lang.String fileName)
135                    throws com.liferay.portal.kernel.exception.PortalException,
136                            com.liferay.portal.kernel.exception.SystemException {
137                    getService().deletePageAttachment(nodeId, title, fileName);
138            }
139    
140            public static void deleteTempPageAttachment(long nodeId,
141                    java.lang.String fileName, java.lang.String tempFolderName)
142                    throws com.liferay.portal.kernel.exception.PortalException,
143                            com.liferay.portal.kernel.exception.SystemException {
144                    getService().deleteTempPageAttachment(nodeId, fileName, tempFolderName);
145            }
146    
147            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getChildren(
148                    long groupId, long nodeId, boolean head, java.lang.String parentTitle)
149                    throws com.liferay.portal.kernel.exception.PortalException,
150                            com.liferay.portal.kernel.exception.SystemException {
151                    return getService().getChildren(groupId, nodeId, head, parentTitle);
152            }
153    
154            public static com.liferay.portlet.wiki.model.WikiPage getDraftPage(
155                    long nodeId, java.lang.String title)
156                    throws com.liferay.portal.kernel.exception.PortalException,
157                            com.liferay.portal.kernel.exception.SystemException {
158                    return getService().getDraftPage(nodeId, title);
159            }
160    
161            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getNodePages(
162                    long nodeId, int max)
163                    throws com.liferay.portal.kernel.exception.PortalException,
164                            com.liferay.portal.kernel.exception.SystemException {
165                    return getService().getNodePages(nodeId, max);
166            }
167    
168            public static java.lang.String getNodePagesRSS(long nodeId, int max,
169                    java.lang.String type, double version, java.lang.String displayStyle,
170                    java.lang.String feedURL, java.lang.String entryURL)
171                    throws com.liferay.portal.kernel.exception.PortalException,
172                            com.liferay.portal.kernel.exception.SystemException {
173                    return getService()
174                                       .getNodePagesRSS(nodeId, max, type, version, displayStyle,
175                            feedURL, entryURL);
176            }
177    
178            public static java.lang.String getNodePagesRSS(long nodeId, int max,
179                    java.lang.String type, double version, java.lang.String displayStyle,
180                    java.lang.String feedURL, java.lang.String entryURL,
181                    java.lang.String attachmentURLPrefix)
182                    throws com.liferay.portal.kernel.exception.PortalException,
183                            com.liferay.portal.kernel.exception.SystemException {
184                    return getService()
185                                       .getNodePagesRSS(nodeId, max, type, version, displayStyle,
186                            feedURL, entryURL, attachmentURLPrefix);
187            }
188    
189            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOrphans(
190                    long groupId, long nodeId)
191                    throws com.liferay.portal.kernel.exception.PortalException,
192                            com.liferay.portal.kernel.exception.SystemException {
193                    return getService().getOrphans(groupId, nodeId);
194            }
195    
196            public static com.liferay.portlet.wiki.model.WikiPage getPage(
197                    long groupId, long nodeId, java.lang.String title)
198                    throws com.liferay.portal.kernel.exception.PortalException,
199                            com.liferay.portal.kernel.exception.SystemException {
200                    return getService().getPage(groupId, nodeId, title);
201            }
202    
203            public static com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
204                    java.lang.String title)
205                    throws com.liferay.portal.kernel.exception.PortalException,
206                            com.liferay.portal.kernel.exception.SystemException {
207                    return getService().getPage(nodeId, title);
208            }
209    
210            public static com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
211                    java.lang.String title, java.lang.Boolean head)
212                    throws com.liferay.portal.kernel.exception.PortalException,
213                            com.liferay.portal.kernel.exception.SystemException {
214                    return getService().getPage(nodeId, title, head);
215            }
216    
217            public static com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
218                    java.lang.String title, double version)
219                    throws com.liferay.portal.kernel.exception.PortalException,
220                            com.liferay.portal.kernel.exception.SystemException {
221                    return getService().getPage(nodeId, title, version);
222            }
223    
224            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
225                    long groupId, long nodeId, boolean head, int status, int start,
226                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
227                    throws com.liferay.portal.kernel.exception.PortalException,
228                            com.liferay.portal.kernel.exception.SystemException {
229                    return getService()
230                                       .getPages(groupId, nodeId, head, status, start, end, obc);
231            }
232    
233            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
234                    long groupId, long userId, long nodeId, int status, int start, int end)
235                    throws com.liferay.portal.kernel.exception.PortalException,
236                            com.liferay.portal.kernel.exception.SystemException {
237                    return getService().getPages(groupId, userId, nodeId, status, start, end);
238            }
239    
240            public static int getPagesCount(long groupId, long nodeId, boolean head)
241                    throws com.liferay.portal.kernel.exception.PortalException,
242                            com.liferay.portal.kernel.exception.SystemException {
243                    return getService().getPagesCount(groupId, nodeId, head);
244            }
245    
246            public static int getPagesCount(long groupId, long userId, long nodeId,
247                    int status)
248                    throws com.liferay.portal.kernel.exception.PortalException,
249                            com.liferay.portal.kernel.exception.SystemException {
250                    return getService().getPagesCount(groupId, userId, nodeId, status);
251            }
252    
253            public static java.lang.String getPagesRSS(long companyId, long nodeId,
254                    java.lang.String title, int max, java.lang.String type, double version,
255                    java.lang.String displayStyle, java.lang.String feedURL,
256                    java.lang.String entryURL, java.util.Locale locale)
257                    throws com.liferay.portal.kernel.exception.PortalException,
258                            com.liferay.portal.kernel.exception.SystemException {
259                    return getService()
260                                       .getPagesRSS(companyId, nodeId, title, max, type, version,
261                            displayStyle, feedURL, entryURL, locale);
262            }
263    
264            public static java.lang.String getPagesRSS(long companyId, long nodeId,
265                    java.lang.String title, int max, java.lang.String type, double version,
266                    java.lang.String displayStyle, java.lang.String feedURL,
267                    java.lang.String entryURL, java.lang.String attachmentURLPrefix,
268                    java.util.Locale locale)
269                    throws com.liferay.portal.kernel.exception.PortalException,
270                            com.liferay.portal.kernel.exception.SystemException {
271                    return getService()
272                                       .getPagesRSS(companyId, nodeId, title, max, type, version,
273                            displayStyle, feedURL, entryURL, attachmentURLPrefix, locale);
274            }
275    
276            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getRecentChanges(
277                    long groupId, long nodeId, int start, int end)
278                    throws com.liferay.portal.kernel.exception.PortalException,
279                            com.liferay.portal.kernel.exception.SystemException {
280                    return getService().getRecentChanges(groupId, nodeId, start, end);
281            }
282    
283            public static int getRecentChangesCount(long groupId, long nodeId)
284                    throws com.liferay.portal.kernel.exception.PortalException,
285                            com.liferay.portal.kernel.exception.SystemException {
286                    return getService().getRecentChangesCount(groupId, nodeId);
287            }
288    
289            public static java.lang.String[] getTempPageAttachmentNames(long nodeId,
290                    java.lang.String tempFolderName)
291                    throws com.liferay.portal.kernel.exception.PortalException,
292                            com.liferay.portal.kernel.exception.SystemException {
293                    return getService().getTempPageAttachmentNames(nodeId, tempFolderName);
294            }
295    
296            public static void movePage(long nodeId, java.lang.String title,
297                    java.lang.String newTitle,
298                    com.liferay.portal.service.ServiceContext serviceContext)
299                    throws com.liferay.portal.kernel.exception.PortalException,
300                            com.liferay.portal.kernel.exception.SystemException {
301                    getService().movePage(nodeId, title, newTitle, serviceContext);
302            }
303    
304            public static com.liferay.portlet.wiki.model.WikiPage revertPage(
305                    long nodeId, java.lang.String title, double version,
306                    com.liferay.portal.service.ServiceContext serviceContext)
307                    throws com.liferay.portal.kernel.exception.PortalException,
308                            com.liferay.portal.kernel.exception.SystemException {
309                    return getService().revertPage(nodeId, title, version, serviceContext);
310            }
311    
312            public static void subscribePage(long nodeId, java.lang.String title)
313                    throws com.liferay.portal.kernel.exception.PortalException,
314                            com.liferay.portal.kernel.exception.SystemException {
315                    getService().subscribePage(nodeId, title);
316            }
317    
318            public static void unsubscribePage(long nodeId, java.lang.String title)
319                    throws com.liferay.portal.kernel.exception.PortalException,
320                            com.liferay.portal.kernel.exception.SystemException {
321                    getService().unsubscribePage(nodeId, title);
322            }
323    
324            public static com.liferay.portlet.wiki.model.WikiPage updatePage(
325                    long nodeId, java.lang.String title, double version,
326                    java.lang.String content, java.lang.String summary, boolean minorEdit,
327                    java.lang.String format, java.lang.String parentTitle,
328                    java.lang.String redirectTitle,
329                    com.liferay.portal.service.ServiceContext serviceContext)
330                    throws com.liferay.portal.kernel.exception.PortalException,
331                            com.liferay.portal.kernel.exception.SystemException {
332                    return getService()
333                                       .updatePage(nodeId, title, version, content, summary,
334                            minorEdit, format, parentTitle, redirectTitle, serviceContext);
335            }
336    
337            public static WikiPageService getService() {
338                    if (_service == null) {
339                            _service = (WikiPageService)PortalBeanLocatorUtil.locate(WikiPageService.class.getName());
340    
341                            ReferenceRegistry.registerReference(WikiPageServiceUtil.class,
342                                    "_service");
343                    }
344    
345                    return _service;
346            }
347    
348            /**
349             * @deprecated
350             */
351            public void setService(WikiPageService service) {
352            }
353    
354            private static WikiPageService _service;
355    }