1   /**
2    * Copyright (c) 2000-2010 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   *
12   * 
13   */
14  
15  package com.liferay.portlet.wiki.service;
16  
17  import com.liferay.portal.PortalException;
18  import com.liferay.portal.SystemException;
19  import com.liferay.portal.kernel.annotation.Isolation;
20  import com.liferay.portal.kernel.annotation.Propagation;
21  import com.liferay.portal.kernel.annotation.Transactional;
22  
23  /**
24   * <a href="WikiPageService.java.html"><b><i>View Source</i></b></a>
25   *
26   * <p>
27   * ServiceBuilder generated this class. Modifications in this class will be
28   * overwritten the next time is generated.
29   * </p>
30   *
31   * <p>
32   * This interface defines the service. The default implementation is
33   * {@link
34   * com.liferay.portlet.wiki.service.impl.WikiPageServiceImpl}}.
35   * Modify methods in that class and rerun ServiceBuilder to populate this class
36   * and all other generated classes.
37   * </p>
38   *
39   * <p>
40   * 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.
41   * </p>
42   *
43   * @author    Brian Wing Shun Chan
44   * @see       WikiPageServiceUtil
45   * @generated
46   */
47  @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
48      PortalException.class, SystemException.class})
49  public interface WikiPageService {
50      public com.liferay.portlet.wiki.model.WikiPage addPage(long nodeId,
51          java.lang.String title, java.lang.String content,
52          java.lang.String summary, boolean minorEdit,
53          javax.portlet.PortletPreferences prefs,
54          com.liferay.portal.theme.ThemeDisplay themeDisplay)
55          throws java.rmi.RemoteException, com.liferay.portal.PortalException,
56              com.liferay.portal.SystemException;
57  
58      public com.liferay.portlet.wiki.model.WikiPage addPage(long nodeId,
59          java.lang.String title, java.lang.String content,
60          java.lang.String summary, boolean minorEdit, java.lang.String format,
61          java.lang.String parentTitle, java.lang.String redirectTitle,
62          java.lang.String[] tagsEntries, javax.portlet.PortletPreferences prefs,
63          com.liferay.portal.theme.ThemeDisplay themeDisplay)
64          throws java.rmi.RemoteException, com.liferay.portal.PortalException,
65              com.liferay.portal.SystemException;
66  
67      public void addPageAttachments(long nodeId, java.lang.String title,
68          java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files)
69          throws java.rmi.RemoteException, com.liferay.portal.PortalException,
70              com.liferay.portal.SystemException;
71  
72      public void changeParent(long nodeId, java.lang.String title,
73          java.lang.String newParentTitle,
74          javax.portlet.PortletPreferences prefs,
75          com.liferay.portal.theme.ThemeDisplay themeDisplay)
76          throws java.rmi.RemoteException, com.liferay.portal.PortalException,
77              com.liferay.portal.SystemException;
78  
79      public void deletePage(long nodeId, java.lang.String title)
80          throws java.rmi.RemoteException, com.liferay.portal.PortalException,
81              com.liferay.portal.SystemException;
82  
83      public void deletePageAttachment(long nodeId, java.lang.String title,
84          java.lang.String fileName)
85          throws java.rmi.RemoteException, com.liferay.portal.PortalException,
86              com.liferay.portal.SystemException;
87  
88      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
89      public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getNodePages(
90          long nodeId, int max)
91          throws java.rmi.RemoteException, com.liferay.portal.PortalException,
92              com.liferay.portal.SystemException;
93  
94      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
95      public java.lang.String getNodePagesRSS(long nodeId, int max,
96          java.lang.String type, double version, java.lang.String displayStyle,
97          java.lang.String feedURL, java.lang.String entryURL)
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)
103         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
104             com.liferay.portal.SystemException;
105 
106     public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
107         java.lang.String title, double version)
108         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
109             com.liferay.portal.SystemException;
110 
111     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
112     public java.lang.String getPagesRSS(long companyId, long nodeId,
113         java.lang.String title, int max, java.lang.String type, double version,
114         java.lang.String displayStyle, java.lang.String feedURL,
115         java.lang.String entryURL, java.util.Locale locale)
116         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
117             com.liferay.portal.SystemException;
118 
119     public void movePage(long nodeId, java.lang.String title,
120         java.lang.String newTitle, javax.portlet.PortletPreferences prefs,
121         com.liferay.portal.theme.ThemeDisplay themeDisplay)
122         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
123             com.liferay.portal.SystemException;
124 
125     public com.liferay.portlet.wiki.model.WikiPage revertPage(long nodeId,
126         java.lang.String title, double version,
127         javax.portlet.PortletPreferences prefs,
128         com.liferay.portal.theme.ThemeDisplay themeDisplay)
129         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
130             com.liferay.portal.SystemException;
131 
132     public void subscribePage(long nodeId, java.lang.String title)
133         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
134             com.liferay.portal.SystemException;
135 
136     public void unsubscribePage(long nodeId, java.lang.String title)
137         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
138             com.liferay.portal.SystemException;
139 
140     public com.liferay.portlet.wiki.model.WikiPage updatePage(long nodeId,
141         java.lang.String title, double version, java.lang.String content,
142         java.lang.String summary, boolean minorEdit, java.lang.String format,
143         java.lang.String parentTitle, java.lang.String redirectTitle,
144         java.lang.String[] tagsEntries, javax.portlet.PortletPreferences prefs,
145         com.liferay.portal.theme.ThemeDisplay themeDisplay)
146         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
147             com.liferay.portal.SystemException;
148 }