001    /**
002     * Copyright (c) 2000-2010 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.annotation.Isolation;
018    import com.liferay.portal.kernel.annotation.Propagation;
019    import com.liferay.portal.kernel.annotation.Transactional;
020    import com.liferay.portal.kernel.exception.PortalException;
021    import com.liferay.portal.kernel.exception.SystemException;
022    
023    /**
024     * The interface for the wiki page remote service.
025     *
026     * <p>
027     * 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.
028     * </p>
029     *
030     * <p>
031     * 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.
032     * </p>
033     *
034     * @author Brian Wing Shun Chan
035     * @see WikiPageServiceUtil
036     * @see com.liferay.portlet.wiki.service.base.WikiPageServiceBaseImpl
037     * @see com.liferay.portlet.wiki.service.impl.WikiPageServiceImpl
038     * @generated
039     */
040    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
041            PortalException.class, SystemException.class})
042    public interface WikiPageService {
043            public com.liferay.portlet.wiki.model.WikiPage addPage(long nodeId,
044                    java.lang.String title, java.lang.String content,
045                    java.lang.String summary, boolean minorEdit,
046                    com.liferay.portal.service.ServiceContext serviceContext)
047                    throws com.liferay.portal.kernel.exception.PortalException,
048                            com.liferay.portal.kernel.exception.SystemException;
049    
050            public com.liferay.portlet.wiki.model.WikiPage addPage(long nodeId,
051                    java.lang.String title, java.lang.String content,
052                    java.lang.String summary, boolean minorEdit, java.lang.String format,
053                    java.lang.String parentTitle, java.lang.String redirectTitle,
054                    com.liferay.portal.service.ServiceContext serviceContext)
055                    throws com.liferay.portal.kernel.exception.PortalException,
056                            com.liferay.portal.kernel.exception.SystemException;
057    
058            public void addPageAttachments(long nodeId, java.lang.String title,
059                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, byte[]>> files)
060                    throws com.liferay.portal.kernel.exception.PortalException,
061                            com.liferay.portal.kernel.exception.SystemException;
062    
063            public void changeParent(long nodeId, java.lang.String title,
064                    java.lang.String newParentTitle,
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 void deletePage(long nodeId, java.lang.String title)
070                    throws com.liferay.portal.kernel.exception.PortalException,
071                            com.liferay.portal.kernel.exception.SystemException;
072    
073            public void deletePage(long nodeId, java.lang.String title, double version)
074                    throws com.liferay.portal.kernel.exception.PortalException,
075                            com.liferay.portal.kernel.exception.SystemException;
076    
077            public void deletePageAttachment(long nodeId, java.lang.String title,
078                    java.lang.String fileName)
079                    throws com.liferay.portal.kernel.exception.PortalException,
080                            com.liferay.portal.kernel.exception.SystemException;
081    
082            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
083            public com.liferay.portlet.wiki.model.WikiPage getDraftPage(long nodeId,
084                    java.lang.String title)
085                    throws com.liferay.portal.kernel.exception.PortalException,
086                            com.liferay.portal.kernel.exception.SystemException;
087    
088            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
089            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getNodePages(
090                    long nodeId, int max)
091                    throws com.liferay.portal.kernel.exception.PortalException,
092                            com.liferay.portal.kernel.exception.SystemException;
093    
094            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
095            public java.lang.String getNodePagesRSS(long nodeId, int max,
096                    java.lang.String type, double version, java.lang.String displayStyle,
097                    java.lang.String feedURL, java.lang.String entryURL)
098                    throws com.liferay.portal.kernel.exception.PortalException,
099                            com.liferay.portal.kernel.exception.SystemException;
100    
101            public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
102                    java.lang.String title)
103                    throws com.liferay.portal.kernel.exception.PortalException,
104                            com.liferay.portal.kernel.exception.SystemException;
105    
106            public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
107                    java.lang.String title, java.lang.Boolean head)
108                    throws com.liferay.portal.kernel.exception.PortalException,
109                            com.liferay.portal.kernel.exception.SystemException;
110    
111            public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
112                    java.lang.String title, double version)
113                    throws com.liferay.portal.kernel.exception.PortalException,
114                            com.liferay.portal.kernel.exception.SystemException;
115    
116            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
117            public java.lang.String getPagesRSS(long companyId, long nodeId,
118                    java.lang.String title, int max, java.lang.String type, double version,
119                    java.lang.String displayStyle, java.lang.String feedURL,
120                    java.lang.String entryURL, java.util.Locale locale)
121                    throws com.liferay.portal.kernel.exception.PortalException,
122                            com.liferay.portal.kernel.exception.SystemException;
123    
124            public void movePage(long nodeId, java.lang.String title,
125                    java.lang.String newTitle,
126                    com.liferay.portal.service.ServiceContext serviceContext)
127                    throws com.liferay.portal.kernel.exception.PortalException,
128                            com.liferay.portal.kernel.exception.SystemException;
129    
130            public com.liferay.portlet.wiki.model.WikiPage revertPage(long nodeId,
131                    java.lang.String title, double version,
132                    com.liferay.portal.service.ServiceContext serviceContext)
133                    throws com.liferay.portal.kernel.exception.PortalException,
134                            com.liferay.portal.kernel.exception.SystemException;
135    
136            public void subscribePage(long nodeId, java.lang.String title)
137                    throws com.liferay.portal.kernel.exception.PortalException,
138                            com.liferay.portal.kernel.exception.SystemException;
139    
140            public void unsubscribePage(long nodeId, java.lang.String title)
141                    throws com.liferay.portal.kernel.exception.PortalException,
142                            com.liferay.portal.kernel.exception.SystemException;
143    
144            public com.liferay.portlet.wiki.model.WikiPage updatePage(long nodeId,
145                    java.lang.String title, double version, java.lang.String content,
146                    java.lang.String summary, boolean minorEdit, java.lang.String format,
147                    java.lang.String parentTitle, java.lang.String redirectTitle,
148                    com.liferay.portal.service.ServiceContext serviceContext)
149                    throws com.liferay.portal.kernel.exception.PortalException,
150                            com.liferay.portal.kernel.exception.SystemException;
151    }