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    
024    /**
025     * The interface for the wiki page remote service.
026     *
027     * <p>
028     * 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.
029     * </p>
030     *
031     * @author Brian Wing Shun Chan
032     * @see WikiPageServiceUtil
033     * @see com.liferay.portlet.wiki.service.base.WikiPageServiceBaseImpl
034     * @see com.liferay.portlet.wiki.service.impl.WikiPageServiceImpl
035     * @generated
036     */
037    @JSONWebService
038    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
039            PortalException.class, SystemException.class})
040    public interface WikiPageService {
041            /*
042             * NOTE FOR DEVELOPERS:
043             *
044             * 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.
045             */
046            public com.liferay.portlet.wiki.model.WikiPage addPage(long nodeId,
047                    java.lang.String title, java.lang.String content,
048                    java.lang.String summary, boolean minorEdit,
049                    com.liferay.portal.service.ServiceContext serviceContext)
050                    throws com.liferay.portal.kernel.exception.PortalException,
051                            com.liferay.portal.kernel.exception.SystemException;
052    
053            public com.liferay.portlet.wiki.model.WikiPage addPage(long nodeId,
054                    java.lang.String title, java.lang.String content,
055                    java.lang.String summary, boolean minorEdit, java.lang.String format,
056                    java.lang.String parentTitle, java.lang.String redirectTitle,
057                    com.liferay.portal.service.ServiceContext serviceContext)
058                    throws com.liferay.portal.kernel.exception.PortalException,
059                            com.liferay.portal.kernel.exception.SystemException;
060    
061            public void addPageAttachment(long nodeId, java.lang.String title,
062                    java.lang.String fileName, java.io.File file)
063                    throws com.liferay.portal.kernel.exception.PortalException,
064                            com.liferay.portal.kernel.exception.SystemException;
065    
066            public void addPageAttachments(long nodeId, java.lang.String title,
067                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStream)
068                    throws com.liferay.portal.kernel.exception.PortalException,
069                            com.liferay.portal.kernel.exception.SystemException;
070    
071            public java.lang.String addTempPageAttachment(long nodeId,
072                    java.lang.String fileName, java.lang.String tempFolderName,
073                    java.io.InputStream inputStream)
074                    throws com.liferay.portal.kernel.exception.PortalException,
075                            com.liferay.portal.kernel.exception.SystemException,
076                            java.io.IOException;
077    
078            public void changeParent(long nodeId, java.lang.String title,
079                    java.lang.String newParentTitle,
080                    com.liferay.portal.service.ServiceContext serviceContext)
081                    throws com.liferay.portal.kernel.exception.PortalException,
082                            com.liferay.portal.kernel.exception.SystemException;
083    
084            public void deletePage(long nodeId, java.lang.String title)
085                    throws com.liferay.portal.kernel.exception.PortalException,
086                            com.liferay.portal.kernel.exception.SystemException;
087    
088            public void deletePage(long nodeId, java.lang.String title, double version)
089                    throws com.liferay.portal.kernel.exception.PortalException,
090                            com.liferay.portal.kernel.exception.SystemException;
091    
092            public void deletePageAttachment(long nodeId, java.lang.String title,
093                    java.lang.String fileName)
094                    throws com.liferay.portal.kernel.exception.PortalException,
095                            com.liferay.portal.kernel.exception.SystemException;
096    
097            public void deleteTempPageAttachment(long nodeId,
098                    java.lang.String fileName, java.lang.String tempFolderName)
099                    throws com.liferay.portal.kernel.exception.PortalException,
100                            com.liferay.portal.kernel.exception.SystemException;
101    
102            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
103            public com.liferay.portlet.wiki.model.WikiPage getDraftPage(long nodeId,
104                    java.lang.String title)
105                    throws com.liferay.portal.kernel.exception.PortalException,
106                            com.liferay.portal.kernel.exception.SystemException;
107    
108            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
109            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getNodePages(
110                    long nodeId, int max)
111                    throws com.liferay.portal.kernel.exception.PortalException,
112                            com.liferay.portal.kernel.exception.SystemException;
113    
114            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
115            public java.lang.String getNodePagesRSS(long nodeId, int max,
116                    java.lang.String type, double version, java.lang.String displayStyle,
117                    java.lang.String feedURL, java.lang.String entryURL)
118                    throws com.liferay.portal.kernel.exception.PortalException,
119                            com.liferay.portal.kernel.exception.SystemException;
120    
121            public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
122                    java.lang.String title)
123                    throws com.liferay.portal.kernel.exception.PortalException,
124                            com.liferay.portal.kernel.exception.SystemException;
125    
126            public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
127                    java.lang.String title, java.lang.Boolean head)
128                    throws com.liferay.portal.kernel.exception.PortalException,
129                            com.liferay.portal.kernel.exception.SystemException;
130    
131            public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
132                    java.lang.String title, double version)
133                    throws com.liferay.portal.kernel.exception.PortalException,
134                            com.liferay.portal.kernel.exception.SystemException;
135    
136            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
137            public java.lang.String getPagesRSS(long companyId, long nodeId,
138                    java.lang.String title, int max, java.lang.String type, double version,
139                    java.lang.String displayStyle, java.lang.String feedURL,
140                    java.lang.String entryURL, java.util.Locale locale)
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.lang.String[] getTempPageAttachmentNames(long nodeId,
146                    java.lang.String tempFolderName)
147                    throws com.liferay.portal.kernel.exception.PortalException,
148                            com.liferay.portal.kernel.exception.SystemException;
149    
150            public void movePage(long nodeId, java.lang.String title,
151                    java.lang.String newTitle,
152                    com.liferay.portal.service.ServiceContext serviceContext)
153                    throws com.liferay.portal.kernel.exception.PortalException,
154                            com.liferay.portal.kernel.exception.SystemException;
155    
156            public com.liferay.portlet.wiki.model.WikiPage revertPage(long nodeId,
157                    java.lang.String title, double version,
158                    com.liferay.portal.service.ServiceContext serviceContext)
159                    throws com.liferay.portal.kernel.exception.PortalException,
160                            com.liferay.portal.kernel.exception.SystemException;
161    
162            public void subscribePage(long nodeId, java.lang.String title)
163                    throws com.liferay.portal.kernel.exception.PortalException,
164                            com.liferay.portal.kernel.exception.SystemException;
165    
166            public void unsubscribePage(long nodeId, java.lang.String title)
167                    throws com.liferay.portal.kernel.exception.PortalException,
168                            com.liferay.portal.kernel.exception.SystemException;
169    
170            public com.liferay.portlet.wiki.model.WikiPage updatePage(long nodeId,
171                    java.lang.String title, double version, java.lang.String content,
172                    java.lang.String summary, boolean minorEdit, java.lang.String format,
173                    java.lang.String parentTitle, java.lang.String redirectTitle,
174                    com.liferay.portal.service.ServiceContext serviceContext)
175                    throws com.liferay.portal.kernel.exception.PortalException,
176                            com.liferay.portal.kernel.exception.SystemException;
177    }