1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
17   * SOFTWARE.
18   */
19  
20  package com.liferay.portlet.wiki.service;
21  
22  import com.liferay.portal.PortalException;
23  import com.liferay.portal.SystemException;
24  import com.liferay.portal.kernel.annotation.Propagation;
25  import com.liferay.portal.kernel.annotation.Transactional;
26  
27  /**
28   * <a href="WikiPageService.java.html"><b><i>View Source</i></b></a>
29   *
30   * <p>
31   * ServiceBuilder generated this class. Modifications in this class will be
32   * overwritten the next time is generated.
33   * </p>
34   *
35   * <p>
36   * This interface defines the service. The default implementation is
37   * <code>com.liferay.portlet.wiki.service.impl.WikiPageServiceImpl</code>.
38   * Modify methods in that class and rerun ServiceBuilder to populate this class
39   * and all other generated classes.
40   * </p>
41   *
42   * <p>
43   * 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.
44   * </p>
45   *
46   * @author Brian Wing Shun Chan
47   *
48   * @see com.liferay.portlet.wiki.service.WikiPageServiceUtil
49   *
50   */
51  @Transactional(rollbackFor =  {
52      PortalException.class, SystemException.class})
53  public interface WikiPageService {
54      public com.liferay.portlet.wiki.model.WikiPage addPage(long nodeId,
55          java.lang.String title, java.lang.String content,
56          java.lang.String summary, boolean minorEdit,
57          javax.portlet.PortletPreferences prefs,
58          com.liferay.portal.theme.ThemeDisplay themeDisplay)
59          throws java.rmi.RemoteException, com.liferay.portal.PortalException,
60              com.liferay.portal.SystemException;
61  
62      public void addPageAttachments(long nodeId, java.lang.String title,
63          java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files)
64          throws java.rmi.RemoteException, com.liferay.portal.PortalException,
65              com.liferay.portal.SystemException;
66  
67      public void changeParent(long nodeId, java.lang.String title,
68          java.lang.String newParentTitle,
69          javax.portlet.PortletPreferences prefs,
70          com.liferay.portal.theme.ThemeDisplay themeDisplay)
71          throws java.rmi.RemoteException, com.liferay.portal.PortalException,
72              com.liferay.portal.SystemException;
73  
74      public void deletePage(long nodeId, java.lang.String title)
75          throws java.rmi.RemoteException, com.liferay.portal.PortalException,
76              com.liferay.portal.SystemException;
77  
78      public void deletePageAttachment(long nodeId, java.lang.String title,
79          java.lang.String fileName)
80          throws java.rmi.RemoteException, com.liferay.portal.PortalException,
81              com.liferay.portal.SystemException;
82  
83      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
84      public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getNodePages(
85          long nodeId, int max)
86          throws java.rmi.RemoteException, com.liferay.portal.PortalException,
87              com.liferay.portal.SystemException;
88  
89      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
90      public java.lang.String getNodePagesRSS(long nodeId, int max,
91          java.lang.String type, double version, java.lang.String displayStyle,
92          java.lang.String feedURL, java.lang.String entryURL)
93          throws java.rmi.RemoteException, com.liferay.portal.PortalException,
94              com.liferay.portal.SystemException;
95  
96      public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
97          java.lang.String title)
98          throws java.rmi.RemoteException, com.liferay.portal.PortalException,
99              com.liferay.portal.SystemException;
100 
101     public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
102         java.lang.String title, double version)
103         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
104             com.liferay.portal.SystemException;
105 
106     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
107     public java.lang.String getPagesRSS(long companyId, long nodeId,
108         java.lang.String title, int max, java.lang.String type, double version,
109         java.lang.String displayStyle, java.lang.String feedURL,
110         java.lang.String entryURL, java.util.Locale locale)
111         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
112             com.liferay.portal.SystemException;
113 
114     public void movePage(long nodeId, java.lang.String title,
115         java.lang.String newTitle, javax.portlet.PortletPreferences prefs,
116         com.liferay.portal.theme.ThemeDisplay themeDisplay)
117         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
118             com.liferay.portal.SystemException;
119 
120     public com.liferay.portlet.wiki.model.WikiPage revertPage(long nodeId,
121         java.lang.String title, double version,
122         javax.portlet.PortletPreferences prefs,
123         com.liferay.portal.theme.ThemeDisplay themeDisplay)
124         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
125             com.liferay.portal.SystemException;
126 
127     public void subscribePage(long nodeId, java.lang.String title)
128         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
129             com.liferay.portal.SystemException;
130 
131     public void unsubscribePage(long nodeId, java.lang.String title)
132         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
133             com.liferay.portal.SystemException;
134 
135     public com.liferay.portlet.wiki.model.WikiPage updatePage(long nodeId,
136         java.lang.String title, double version, java.lang.String content,
137         java.lang.String summary, boolean minorEdit, java.lang.String format,
138         java.lang.String parentTitle, java.lang.String redirectTitle,
139         java.lang.String[] tagsEntries, javax.portlet.PortletPreferences prefs,
140         com.liferay.portal.theme.ThemeDisplay themeDisplay)
141         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
142             com.liferay.portal.SystemException;
143 }