001    /**
002     * Copyright (c) 2000-2011 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.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 addPageAttachments(long nodeId, java.lang.String title,
062                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, byte[]>> files)
063                    throws com.liferay.portal.kernel.exception.PortalException,
064                            com.liferay.portal.kernel.exception.SystemException;
065    
066            public void changeParent(long nodeId, java.lang.String title,
067                    java.lang.String newParentTitle,
068                    com.liferay.portal.service.ServiceContext serviceContext)
069                    throws com.liferay.portal.kernel.exception.PortalException,
070                            com.liferay.portal.kernel.exception.SystemException;
071    
072            public void deletePage(long nodeId, java.lang.String title)
073                    throws com.liferay.portal.kernel.exception.PortalException,
074                            com.liferay.portal.kernel.exception.SystemException;
075    
076            public void deletePage(long nodeId, java.lang.String title, double version)
077                    throws com.liferay.portal.kernel.exception.PortalException,
078                            com.liferay.portal.kernel.exception.SystemException;
079    
080            public void deletePageAttachment(long nodeId, java.lang.String title,
081                    java.lang.String fileName)
082                    throws com.liferay.portal.kernel.exception.PortalException,
083                            com.liferay.portal.kernel.exception.SystemException;
084    
085            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
086            public com.liferay.portlet.wiki.model.WikiPage getDraftPage(long nodeId,
087                    java.lang.String title)
088                    throws com.liferay.portal.kernel.exception.PortalException,
089                            com.liferay.portal.kernel.exception.SystemException;
090    
091            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
092            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getNodePages(
093                    long nodeId, int max)
094                    throws com.liferay.portal.kernel.exception.PortalException,
095                            com.liferay.portal.kernel.exception.SystemException;
096    
097            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
098            public java.lang.String getNodePagesRSS(long nodeId, int max,
099                    java.lang.String type, double version, java.lang.String displayStyle,
100                    java.lang.String feedURL, java.lang.String entryURL)
101                    throws com.liferay.portal.kernel.exception.PortalException,
102                            com.liferay.portal.kernel.exception.SystemException;
103    
104            public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
105                    java.lang.String title)
106                    throws com.liferay.portal.kernel.exception.PortalException,
107                            com.liferay.portal.kernel.exception.SystemException;
108    
109            public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
110                    java.lang.String title, java.lang.Boolean head)
111                    throws com.liferay.portal.kernel.exception.PortalException,
112                            com.liferay.portal.kernel.exception.SystemException;
113    
114            public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
115                    java.lang.String title, double version)
116                    throws com.liferay.portal.kernel.exception.PortalException,
117                            com.liferay.portal.kernel.exception.SystemException;
118    
119            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
120            public java.lang.String getPagesRSS(long companyId, long nodeId,
121                    java.lang.String title, int max, java.lang.String type, double version,
122                    java.lang.String displayStyle, java.lang.String feedURL,
123                    java.lang.String entryURL, java.util.Locale locale)
124                    throws com.liferay.portal.kernel.exception.PortalException,
125                            com.liferay.portal.kernel.exception.SystemException;
126    
127            public void movePage(long nodeId, java.lang.String title,
128                    java.lang.String newTitle,
129                    com.liferay.portal.service.ServiceContext serviceContext)
130                    throws com.liferay.portal.kernel.exception.PortalException,
131                            com.liferay.portal.kernel.exception.SystemException;
132    
133            public com.liferay.portlet.wiki.model.WikiPage revertPage(long nodeId,
134                    java.lang.String title, double version,
135                    com.liferay.portal.service.ServiceContext serviceContext)
136                    throws com.liferay.portal.kernel.exception.PortalException,
137                            com.liferay.portal.kernel.exception.SystemException;
138    
139            public void subscribePage(long nodeId, java.lang.String title)
140                    throws com.liferay.portal.kernel.exception.PortalException,
141                            com.liferay.portal.kernel.exception.SystemException;
142    
143            public void unsubscribePage(long nodeId, java.lang.String title)
144                    throws com.liferay.portal.kernel.exception.PortalException,
145                            com.liferay.portal.kernel.exception.SystemException;
146    
147            public com.liferay.portlet.wiki.model.WikiPage updatePage(long nodeId,
148                    java.lang.String title, double version, java.lang.String content,
149                    java.lang.String summary, boolean minorEdit, java.lang.String format,
150                    java.lang.String parentTitle, java.lang.String redirectTitle,
151                    com.liferay.portal.service.ServiceContext serviceContext)
152                    throws com.liferay.portal.kernel.exception.PortalException,
153                            com.liferay.portal.kernel.exception.SystemException;
154    }