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 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            public static void deletePage(long nodeId, java.lang.String title,
129                    double version)
130                    throws com.liferay.portal.kernel.exception.PortalException,
131                            com.liferay.portal.kernel.exception.SystemException {
132                    getService().deletePage(nodeId, title, version);
133            }
134    
135            public static void deletePageAttachment(long nodeId,
136                    java.lang.String title, java.lang.String fileName)
137                    throws com.liferay.portal.kernel.exception.PortalException,
138                            com.liferay.portal.kernel.exception.SystemException {
139                    getService().deletePageAttachment(nodeId, title, fileName);
140            }
141    
142            public static void deletePageAttachments(long nodeId, java.lang.String title)
143                    throws com.liferay.portal.kernel.exception.PortalException,
144                            com.liferay.portal.kernel.exception.SystemException {
145                    getService().deletePageAttachments(nodeId, title);
146            }
147    
148            public static void deleteTempPageAttachment(long nodeId,
149                    java.lang.String fileName, java.lang.String tempFolderName)
150                    throws com.liferay.portal.kernel.exception.PortalException,
151                            com.liferay.portal.kernel.exception.SystemException {
152                    getService().deleteTempPageAttachment(nodeId, fileName, tempFolderName);
153            }
154    
155            public static void deleteTrashPageAttachments(long nodeId,
156                    java.lang.String title)
157                    throws com.liferay.portal.kernel.exception.PortalException,
158                            com.liferay.portal.kernel.exception.SystemException {
159                    getService().deleteTrashPageAttachments(nodeId, title);
160            }
161    
162            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getChildren(
163                    long groupId, long nodeId, boolean head, java.lang.String parentTitle)
164                    throws com.liferay.portal.kernel.exception.PortalException,
165                            com.liferay.portal.kernel.exception.SystemException {
166                    return getService().getChildren(groupId, nodeId, head, parentTitle);
167            }
168    
169            public static com.liferay.portlet.wiki.model.WikiPage getDraftPage(
170                    long nodeId, java.lang.String title)
171                    throws com.liferay.portal.kernel.exception.PortalException,
172                            com.liferay.portal.kernel.exception.SystemException {
173                    return getService().getDraftPage(nodeId, title);
174            }
175    
176            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getNodePages(
177                    long nodeId, int max)
178                    throws com.liferay.portal.kernel.exception.PortalException,
179                            com.liferay.portal.kernel.exception.SystemException {
180                    return getService().getNodePages(nodeId, max);
181            }
182    
183            public static java.lang.String getNodePagesRSS(long nodeId, int max,
184                    java.lang.String type, double version, java.lang.String displayStyle,
185                    java.lang.String feedURL, java.lang.String entryURL)
186                    throws com.liferay.portal.kernel.exception.PortalException,
187                            com.liferay.portal.kernel.exception.SystemException {
188                    return getService()
189                                       .getNodePagesRSS(nodeId, max, type, version, displayStyle,
190                            feedURL, entryURL);
191            }
192    
193            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOrphans(
194                    long groupId, long nodeId)
195                    throws com.liferay.portal.kernel.exception.PortalException,
196                            com.liferay.portal.kernel.exception.SystemException {
197                    return getService().getOrphans(groupId, nodeId);
198            }
199    
200            public static com.liferay.portlet.wiki.model.WikiPage getPage(
201                    long groupId, long nodeId, java.lang.String title)
202                    throws com.liferay.portal.kernel.exception.PortalException,
203                            com.liferay.portal.kernel.exception.SystemException {
204                    return getService().getPage(groupId, nodeId, title);
205            }
206    
207            public static com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
208                    java.lang.String title)
209                    throws com.liferay.portal.kernel.exception.PortalException,
210                            com.liferay.portal.kernel.exception.SystemException {
211                    return getService().getPage(nodeId, title);
212            }
213    
214            public static com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
215                    java.lang.String title, java.lang.Boolean head)
216                    throws com.liferay.portal.kernel.exception.PortalException,
217                            com.liferay.portal.kernel.exception.SystemException {
218                    return getService().getPage(nodeId, title, head);
219            }
220    
221            public static com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
222                    java.lang.String title, double version)
223                    throws com.liferay.portal.kernel.exception.PortalException,
224                            com.liferay.portal.kernel.exception.SystemException {
225                    return getService().getPage(nodeId, title, version);
226            }
227    
228            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
229                    long groupId, long nodeId, boolean head, int status, int start,
230                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
231                    throws com.liferay.portal.kernel.exception.PortalException,
232                            com.liferay.portal.kernel.exception.SystemException {
233                    return getService()
234                                       .getPages(groupId, nodeId, head, status, start, end, obc);
235            }
236    
237            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
238                    long groupId, long userId, long nodeId, int status, int start, int end)
239                    throws com.liferay.portal.kernel.exception.PortalException,
240                            com.liferay.portal.kernel.exception.SystemException {
241                    return getService().getPages(groupId, userId, nodeId, status, start, end);
242            }
243    
244            public static int getPagesCount(long groupId, long nodeId, boolean head)
245                    throws com.liferay.portal.kernel.exception.PortalException,
246                            com.liferay.portal.kernel.exception.SystemException {
247                    return getService().getPagesCount(groupId, nodeId, head);
248            }
249    
250            public static int getPagesCount(long groupId, long userId, long nodeId,
251                    int status)
252                    throws com.liferay.portal.kernel.exception.PortalException,
253                            com.liferay.portal.kernel.exception.SystemException {
254                    return getService().getPagesCount(groupId, userId, nodeId, status);
255            }
256    
257            public static java.lang.String getPagesRSS(long companyId, long nodeId,
258                    java.lang.String title, int max, java.lang.String type, double version,
259                    java.lang.String displayStyle, java.lang.String feedURL,
260                    java.lang.String entryURL, java.util.Locale locale)
261                    throws com.liferay.portal.kernel.exception.PortalException,
262                            com.liferay.portal.kernel.exception.SystemException {
263                    return getService()
264                                       .getPagesRSS(companyId, nodeId, title, max, type, version,
265                            displayStyle, feedURL, entryURL, locale);
266            }
267    
268            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getRecentChanges(
269                    long groupId, long nodeId, int start, int end)
270                    throws com.liferay.portal.kernel.exception.PortalException,
271                            com.liferay.portal.kernel.exception.SystemException {
272                    return getService().getRecentChanges(groupId, nodeId, start, end);
273            }
274    
275            public static int getRecentChangesCount(long groupId, long nodeId)
276                    throws com.liferay.portal.kernel.exception.PortalException,
277                            com.liferay.portal.kernel.exception.SystemException {
278                    return getService().getRecentChangesCount(groupId, nodeId);
279            }
280    
281            public static java.lang.String[] getTempPageAttachmentNames(long nodeId,
282                    java.lang.String tempFolderName)
283                    throws com.liferay.portal.kernel.exception.PortalException,
284                            com.liferay.portal.kernel.exception.SystemException {
285                    return getService().getTempPageAttachmentNames(nodeId, tempFolderName);
286            }
287    
288            public static void movePage(long nodeId, java.lang.String title,
289                    java.lang.String newTitle,
290                    com.liferay.portal.service.ServiceContext serviceContext)
291                    throws com.liferay.portal.kernel.exception.PortalException,
292                            com.liferay.portal.kernel.exception.SystemException {
293                    getService().movePage(nodeId, title, newTitle, serviceContext);
294            }
295    
296            public static long movePageAttachmentToTrash(long nodeId,
297                    java.lang.String title, java.lang.String fileName)
298                    throws com.liferay.portal.kernel.exception.PortalException,
299                            com.liferay.portal.kernel.exception.SystemException {
300                    return getService().movePageAttachmentToTrash(nodeId, title, fileName);
301            }
302    
303            public static void movePageToTrash(long nodeId, java.lang.String title)
304                    throws com.liferay.portal.kernel.exception.PortalException,
305                            com.liferay.portal.kernel.exception.SystemException {
306                    getService().movePageToTrash(nodeId, title);
307            }
308    
309            public static void movePageToTrash(long nodeId, java.lang.String title,
310                    double version)
311                    throws com.liferay.portal.kernel.exception.PortalException,
312                            com.liferay.portal.kernel.exception.SystemException {
313                    getService().movePageToTrash(nodeId, title, version);
314            }
315    
316            public static void restorePageAttachmentFromTrash(long nodeId,
317                    java.lang.String title, java.lang.String fileName)
318                    throws com.liferay.portal.kernel.exception.PortalException,
319                            com.liferay.portal.kernel.exception.SystemException {
320                    getService().restorePageAttachmentFromTrash(nodeId, title, fileName);
321            }
322    
323            public static void restorePageFromTrash(long resourcePrimKey)
324                    throws com.liferay.portal.kernel.exception.PortalException,
325                            com.liferay.portal.kernel.exception.SystemException {
326                    getService().restorePageFromTrash(resourcePrimKey);
327            }
328    
329            public static com.liferay.portlet.wiki.model.WikiPage revertPage(
330                    long nodeId, java.lang.String title, double version,
331                    com.liferay.portal.service.ServiceContext serviceContext)
332                    throws com.liferay.portal.kernel.exception.PortalException,
333                            com.liferay.portal.kernel.exception.SystemException {
334                    return getService().revertPage(nodeId, title, version, serviceContext);
335            }
336    
337            public static void subscribePage(long nodeId, java.lang.String title)
338                    throws com.liferay.portal.kernel.exception.PortalException,
339                            com.liferay.portal.kernel.exception.SystemException {
340                    getService().subscribePage(nodeId, title);
341            }
342    
343            public static void unsubscribePage(long nodeId, java.lang.String title)
344                    throws com.liferay.portal.kernel.exception.PortalException,
345                            com.liferay.portal.kernel.exception.SystemException {
346                    getService().unsubscribePage(nodeId, title);
347            }
348    
349            public static com.liferay.portlet.wiki.model.WikiPage updatePage(
350                    long nodeId, java.lang.String title, double version,
351                    java.lang.String content, java.lang.String summary, boolean minorEdit,
352                    java.lang.String format, java.lang.String parentTitle,
353                    java.lang.String redirectTitle,
354                    com.liferay.portal.service.ServiceContext serviceContext)
355                    throws com.liferay.portal.kernel.exception.PortalException,
356                            com.liferay.portal.kernel.exception.SystemException {
357                    return getService()
358                                       .updatePage(nodeId, title, version, content, summary,
359                            minorEdit, format, parentTitle, redirectTitle, serviceContext);
360            }
361    
362            public static WikiPageService getService() {
363                    if (_service == null) {
364                            _service = (WikiPageService)PortalBeanLocatorUtil.locate(WikiPageService.class.getName());
365    
366                            ReferenceRegistry.registerReference(WikiPageServiceUtil.class,
367                                    "_service");
368                    }
369    
370                    return _service;
371            }
372    
373            /**
374             * @deprecated
375             */
376            public void setService(WikiPageService service) {
377            }
378    
379            private static WikiPageService _service;
380    }