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.exception.PortalException;
018    import com.liferay.portal.kernel.exception.SystemException;
019    import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
020    import com.liferay.portal.kernel.transaction.Isolation;
021    import com.liferay.portal.kernel.transaction.Propagation;
022    import com.liferay.portal.kernel.transaction.Transactional;
023    import com.liferay.portal.service.BaseService;
024    
025    /**
026     * The interface for the wiki page remote service.
027     *
028     * <p>
029     * 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.
030     * </p>
031     *
032     * @author Brian Wing Shun Chan
033     * @see WikiPageServiceUtil
034     * @see com.liferay.portlet.wiki.service.base.WikiPageServiceBaseImpl
035     * @see com.liferay.portlet.wiki.service.impl.WikiPageServiceImpl
036     * @generated
037     */
038    @JSONWebService
039    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
040            PortalException.class, SystemException.class})
041    public interface WikiPageService extends BaseService {
042            /*
043             * NOTE FOR DEVELOPERS:
044             *
045             * Never modify or reference this interface directly. Always use {@link WikiPageServiceUtil} to access the wiki page remote service. Add custom service methods to {@link com.liferay.portlet.wiki.service.impl.WikiPageServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
046             */
047    
048            /**
049            * Returns the Spring bean ID for this bean.
050            *
051            * @return the Spring bean ID for this bean
052            */
053            public java.lang.String getBeanIdentifier();
054    
055            /**
056            * Sets the Spring bean ID for this bean.
057            *
058            * @param beanIdentifier the Spring bean ID for this bean
059            */
060            public void setBeanIdentifier(java.lang.String beanIdentifier);
061    
062            public com.liferay.portlet.wiki.model.WikiPage addPage(long nodeId,
063                    java.lang.String title, java.lang.String content,
064                    java.lang.String summary, boolean minorEdit,
065                    com.liferay.portal.service.ServiceContext serviceContext)
066                    throws com.liferay.portal.kernel.exception.PortalException,
067                            com.liferay.portal.kernel.exception.SystemException;
068    
069            public 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    
077            public void addPageAttachment(long nodeId, java.lang.String title,
078                    java.lang.String fileName, java.io.File file)
079                    throws com.liferay.portal.kernel.exception.PortalException,
080                            com.liferay.portal.kernel.exception.SystemException;
081    
082            public void addPageAttachment(long nodeId, java.lang.String title,
083                    java.lang.String fileName, java.io.InputStream inputStream)
084                    throws com.liferay.portal.kernel.exception.PortalException,
085                            com.liferay.portal.kernel.exception.SystemException;
086    
087            public void addPageAttachments(long nodeId, java.lang.String title,
088                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStream)
089                    throws com.liferay.portal.kernel.exception.PortalException,
090                            com.liferay.portal.kernel.exception.SystemException;
091    
092            public java.lang.String addTempPageAttachment(long nodeId,
093                    java.lang.String fileName, java.lang.String tempFolderName,
094                    java.io.InputStream inputStream)
095                    throws com.liferay.portal.kernel.exception.PortalException,
096                            com.liferay.portal.kernel.exception.SystemException;
097    
098            public void changeParent(long nodeId, java.lang.String title,
099                    java.lang.String newParentTitle,
100                    com.liferay.portal.service.ServiceContext serviceContext)
101                    throws com.liferay.portal.kernel.exception.PortalException,
102                            com.liferay.portal.kernel.exception.SystemException;
103    
104            public void deletePage(long nodeId, java.lang.String title)
105                    throws com.liferay.portal.kernel.exception.PortalException,
106                            com.liferay.portal.kernel.exception.SystemException;
107    
108            public void deletePage(long nodeId, java.lang.String title, double version)
109                    throws com.liferay.portal.kernel.exception.PortalException,
110                            com.liferay.portal.kernel.exception.SystemException;
111    
112            public void deletePageAttachment(long nodeId, java.lang.String title,
113                    java.lang.String fileName)
114                    throws com.liferay.portal.kernel.exception.PortalException,
115                            com.liferay.portal.kernel.exception.SystemException;
116    
117            public void deleteTempPageAttachment(long nodeId,
118                    java.lang.String fileName, java.lang.String tempFolderName)
119                    throws com.liferay.portal.kernel.exception.PortalException,
120                            com.liferay.portal.kernel.exception.SystemException;
121    
122            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
123            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getChildren(
124                    long groupId, long nodeId, boolean head, java.lang.String parentTitle)
125                    throws com.liferay.portal.kernel.exception.PortalException,
126                            com.liferay.portal.kernel.exception.SystemException;
127    
128            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
129            public com.liferay.portlet.wiki.model.WikiPage getDraftPage(long nodeId,
130                    java.lang.String title)
131                    throws com.liferay.portal.kernel.exception.PortalException,
132                            com.liferay.portal.kernel.exception.SystemException;
133    
134            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
135            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getNodePages(
136                    long nodeId, int max)
137                    throws com.liferay.portal.kernel.exception.PortalException,
138                            com.liferay.portal.kernel.exception.SystemException;
139    
140            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
141            public java.lang.String getNodePagesRSS(long nodeId, int max,
142                    java.lang.String type, double version, java.lang.String displayStyle,
143                    java.lang.String feedURL, java.lang.String entryURL)
144                    throws com.liferay.portal.kernel.exception.PortalException,
145                            com.liferay.portal.kernel.exception.SystemException;
146    
147            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
148            public java.lang.String getNodePagesRSS(long nodeId, int max,
149                    java.lang.String type, double version, java.lang.String displayStyle,
150                    java.lang.String feedURL, java.lang.String entryURL,
151                    java.lang.String attachmentURLPrefix)
152                    throws com.liferay.portal.kernel.exception.PortalException,
153                            com.liferay.portal.kernel.exception.SystemException;
154    
155            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
156            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOrphans(
157                    long groupId, long nodeId)
158                    throws com.liferay.portal.kernel.exception.PortalException,
159                            com.liferay.portal.kernel.exception.SystemException;
160    
161            public com.liferay.portlet.wiki.model.WikiPage getPage(long groupId,
162                    long nodeId, java.lang.String title)
163                    throws com.liferay.portal.kernel.exception.PortalException,
164                            com.liferay.portal.kernel.exception.SystemException;
165    
166            public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
167                    java.lang.String title)
168                    throws com.liferay.portal.kernel.exception.PortalException,
169                            com.liferay.portal.kernel.exception.SystemException;
170    
171            public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
172                    java.lang.String title, java.lang.Boolean head)
173                    throws com.liferay.portal.kernel.exception.PortalException,
174                            com.liferay.portal.kernel.exception.SystemException;
175    
176            public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
177                    java.lang.String title, double version)
178                    throws com.liferay.portal.kernel.exception.PortalException,
179                            com.liferay.portal.kernel.exception.SystemException;
180    
181            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
182            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
183                    long groupId, long nodeId, boolean head, int status, int start,
184                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
185                    throws com.liferay.portal.kernel.exception.PortalException,
186                            com.liferay.portal.kernel.exception.SystemException;
187    
188            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
189            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
190                    long groupId, long userId, long nodeId, int status, int start, int end)
191                    throws com.liferay.portal.kernel.exception.PortalException,
192                            com.liferay.portal.kernel.exception.SystemException;
193    
194            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
195            public int getPagesCount(long groupId, long nodeId, boolean head)
196                    throws com.liferay.portal.kernel.exception.PortalException,
197                            com.liferay.portal.kernel.exception.SystemException;
198    
199            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
200            public int getPagesCount(long groupId, long userId, long nodeId, int status)
201                    throws com.liferay.portal.kernel.exception.PortalException,
202                            com.liferay.portal.kernel.exception.SystemException;
203    
204            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
205            public java.lang.String getPagesRSS(long companyId, long nodeId,
206                    java.lang.String title, int max, java.lang.String type, double version,
207                    java.lang.String displayStyle, java.lang.String feedURL,
208                    java.lang.String entryURL, java.util.Locale locale)
209                    throws com.liferay.portal.kernel.exception.PortalException,
210                            com.liferay.portal.kernel.exception.SystemException;
211    
212            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
213            public java.lang.String getPagesRSS(long companyId, long nodeId,
214                    java.lang.String title, int max, java.lang.String type, double version,
215                    java.lang.String displayStyle, java.lang.String feedURL,
216                    java.lang.String entryURL, java.lang.String attachmentURLPrefix,
217                    java.util.Locale locale)
218                    throws com.liferay.portal.kernel.exception.PortalException,
219                            com.liferay.portal.kernel.exception.SystemException;
220    
221            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
222            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getRecentChanges(
223                    long groupId, long nodeId, int start, int end)
224                    throws com.liferay.portal.kernel.exception.PortalException,
225                            com.liferay.portal.kernel.exception.SystemException;
226    
227            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
228            public int getRecentChangesCount(long groupId, long nodeId)
229                    throws com.liferay.portal.kernel.exception.PortalException,
230                            com.liferay.portal.kernel.exception.SystemException;
231    
232            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
233            public java.lang.String[] getTempPageAttachmentNames(long nodeId,
234                    java.lang.String tempFolderName)
235                    throws com.liferay.portal.kernel.exception.PortalException,
236                            com.liferay.portal.kernel.exception.SystemException;
237    
238            public void movePage(long nodeId, java.lang.String title,
239                    java.lang.String newTitle,
240                    com.liferay.portal.service.ServiceContext serviceContext)
241                    throws com.liferay.portal.kernel.exception.PortalException,
242                            com.liferay.portal.kernel.exception.SystemException;
243    
244            public com.liferay.portlet.wiki.model.WikiPage revertPage(long nodeId,
245                    java.lang.String title, double version,
246                    com.liferay.portal.service.ServiceContext serviceContext)
247                    throws com.liferay.portal.kernel.exception.PortalException,
248                            com.liferay.portal.kernel.exception.SystemException;
249    
250            public void subscribePage(long nodeId, java.lang.String title)
251                    throws com.liferay.portal.kernel.exception.PortalException,
252                            com.liferay.portal.kernel.exception.SystemException;
253    
254            public void unsubscribePage(long nodeId, java.lang.String title)
255                    throws com.liferay.portal.kernel.exception.PortalException,
256                            com.liferay.portal.kernel.exception.SystemException;
257    
258            public com.liferay.portlet.wiki.model.WikiPage updatePage(long nodeId,
259                    java.lang.String title, double version, java.lang.String content,
260                    java.lang.String summary, boolean minorEdit, java.lang.String format,
261                    java.lang.String parentTitle, java.lang.String redirectTitle,
262                    com.liferay.portal.service.ServiceContext serviceContext)
263                    throws com.liferay.portal.kernel.exception.PortalException,
264                            com.liferay.portal.kernel.exception.SystemException;
265    }