001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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 com.liferay.portlet.wiki.model.WikiPage getDraftPage(
148                    long nodeId, java.lang.String title)
149                    throws com.liferay.portal.kernel.exception.PortalException,
150                            com.liferay.portal.kernel.exception.SystemException {
151                    return getService().getDraftPage(nodeId, title);
152            }
153    
154            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getNodePages(
155                    long nodeId, int max)
156                    throws com.liferay.portal.kernel.exception.PortalException,
157                            com.liferay.portal.kernel.exception.SystemException {
158                    return getService().getNodePages(nodeId, max);
159            }
160    
161            public static java.lang.String getNodePagesRSS(long nodeId, int max,
162                    java.lang.String type, double version, java.lang.String displayStyle,
163                    java.lang.String feedURL, java.lang.String entryURL)
164                    throws com.liferay.portal.kernel.exception.PortalException,
165                            com.liferay.portal.kernel.exception.SystemException {
166                    return getService()
167                                       .getNodePagesRSS(nodeId, max, type, version, displayStyle,
168                            feedURL, entryURL);
169            }
170    
171            public static com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
172                    java.lang.String title)
173                    throws com.liferay.portal.kernel.exception.PortalException,
174                            com.liferay.portal.kernel.exception.SystemException {
175                    return getService().getPage(nodeId, title);
176            }
177    
178            public static com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
179                    java.lang.String title, java.lang.Boolean head)
180                    throws com.liferay.portal.kernel.exception.PortalException,
181                            com.liferay.portal.kernel.exception.SystemException {
182                    return getService().getPage(nodeId, title, head);
183            }
184    
185            public static com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
186                    java.lang.String title, double version)
187                    throws com.liferay.portal.kernel.exception.PortalException,
188                            com.liferay.portal.kernel.exception.SystemException {
189                    return getService().getPage(nodeId, title, version);
190            }
191    
192            public static java.lang.String getPagesRSS(long companyId, long nodeId,
193                    java.lang.String title, int max, java.lang.String type, double version,
194                    java.lang.String displayStyle, java.lang.String feedURL,
195                    java.lang.String entryURL, java.util.Locale locale)
196                    throws com.liferay.portal.kernel.exception.PortalException,
197                            com.liferay.portal.kernel.exception.SystemException {
198                    return getService()
199                                       .getPagesRSS(companyId, nodeId, title, max, type, version,
200                            displayStyle, feedURL, entryURL, locale);
201            }
202    
203            public static java.lang.String[] getTempPageAttachmentNames(long nodeId,
204                    java.lang.String tempFolderName)
205                    throws com.liferay.portal.kernel.exception.PortalException,
206                            com.liferay.portal.kernel.exception.SystemException {
207                    return getService().getTempPageAttachmentNames(nodeId, tempFolderName);
208            }
209    
210            public static void movePage(long nodeId, java.lang.String title,
211                    java.lang.String newTitle,
212                    com.liferay.portal.service.ServiceContext serviceContext)
213                    throws com.liferay.portal.kernel.exception.PortalException,
214                            com.liferay.portal.kernel.exception.SystemException {
215                    getService().movePage(nodeId, title, newTitle, serviceContext);
216            }
217    
218            public static com.liferay.portlet.wiki.model.WikiPage revertPage(
219                    long nodeId, java.lang.String title, double version,
220                    com.liferay.portal.service.ServiceContext serviceContext)
221                    throws com.liferay.portal.kernel.exception.PortalException,
222                            com.liferay.portal.kernel.exception.SystemException {
223                    return getService().revertPage(nodeId, title, version, serviceContext);
224            }
225    
226            public static void subscribePage(long nodeId, java.lang.String title)
227                    throws com.liferay.portal.kernel.exception.PortalException,
228                            com.liferay.portal.kernel.exception.SystemException {
229                    getService().subscribePage(nodeId, title);
230            }
231    
232            public static void unsubscribePage(long nodeId, java.lang.String title)
233                    throws com.liferay.portal.kernel.exception.PortalException,
234                            com.liferay.portal.kernel.exception.SystemException {
235                    getService().unsubscribePage(nodeId, title);
236            }
237    
238            public static com.liferay.portlet.wiki.model.WikiPage updatePage(
239                    long nodeId, java.lang.String title, double version,
240                    java.lang.String content, java.lang.String summary, boolean minorEdit,
241                    java.lang.String format, java.lang.String parentTitle,
242                    java.lang.String redirectTitle,
243                    com.liferay.portal.service.ServiceContext serviceContext)
244                    throws com.liferay.portal.kernel.exception.PortalException,
245                            com.liferay.portal.kernel.exception.SystemException {
246                    return getService()
247                                       .updatePage(nodeId, title, version, content, summary,
248                            minorEdit, format, parentTitle, redirectTitle, serviceContext);
249            }
250    
251            public static WikiPageService getService() {
252                    if (_service == null) {
253                            _service = (WikiPageService)PortalBeanLocatorUtil.locate(WikiPageService.class.getName());
254    
255                            ReferenceRegistry.registerReference(WikiPageServiceUtil.class,
256                                    "_service");
257                    }
258    
259                    return _service;
260            }
261    
262            /**
263             * @deprecated
264             */
265            public void setService(WikiPageService service) {
266            }
267    
268            private static WikiPageService _service;
269    }