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