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="WikiPageLocalService.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.WikiPageLocalServiceImpl}}.
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 local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
41   * </p>
42   *
43   * @author    Brian Wing Shun Chan
44   * @see       WikiPageLocalServiceUtil
45   * @generated
46   */
47  @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
48      PortalException.class, SystemException.class})
49  public interface WikiPageLocalService {
50      public com.liferay.portlet.wiki.model.WikiPage addWikiPage(
51          com.liferay.portlet.wiki.model.WikiPage wikiPage)
52          throws com.liferay.portal.SystemException;
53  
54      public com.liferay.portlet.wiki.model.WikiPage createWikiPage(long pageId);
55  
56      public void deleteWikiPage(long pageId)
57          throws com.liferay.portal.PortalException,
58              com.liferay.portal.SystemException;
59  
60      public void deleteWikiPage(com.liferay.portlet.wiki.model.WikiPage wikiPage)
61          throws com.liferay.portal.SystemException;
62  
63      public java.util.List<Object> dynamicQuery(
64          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65          throws com.liferay.portal.SystemException;
66  
67      public java.util.List<Object> dynamicQuery(
68          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
69          int end) throws com.liferay.portal.SystemException;
70  
71      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
72      public com.liferay.portlet.wiki.model.WikiPage getWikiPage(long pageId)
73          throws com.liferay.portal.PortalException,
74              com.liferay.portal.SystemException;
75  
76      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
77      public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getWikiPages(
78          int start, int end) throws com.liferay.portal.SystemException;
79  
80      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
81      public int getWikiPagesCount() throws com.liferay.portal.SystemException;
82  
83      public com.liferay.portlet.wiki.model.WikiPage updateWikiPage(
84          com.liferay.portlet.wiki.model.WikiPage wikiPage)
85          throws com.liferay.portal.SystemException;
86  
87      public com.liferay.portlet.wiki.model.WikiPage updateWikiPage(
88          com.liferay.portlet.wiki.model.WikiPage wikiPage, boolean merge)
89          throws com.liferay.portal.SystemException;
90  
91      public com.liferay.portlet.wiki.model.WikiPage addPage(long userId,
92          long nodeId, java.lang.String title, java.lang.String content,
93          java.lang.String summary, boolean minorEdit,
94          javax.portlet.PortletPreferences prefs,
95          com.liferay.portal.theme.ThemeDisplay themeDisplay)
96          throws com.liferay.portal.PortalException,
97              com.liferay.portal.SystemException;
98  
99      public com.liferay.portlet.wiki.model.WikiPage addPage(
100         java.lang.String uuid, long userId, long nodeId,
101         java.lang.String title, double version, java.lang.String content,
102         java.lang.String summary, boolean minorEdit, java.lang.String format,
103         boolean head, java.lang.String parentTitle,
104         java.lang.String redirectTitle, java.lang.String[] tagsEntries,
105         javax.portlet.PortletPreferences prefs,
106         com.liferay.portal.theme.ThemeDisplay themeDisplay)
107         throws com.liferay.portal.PortalException,
108             com.liferay.portal.SystemException;
109 
110     public void addPageAttachments(long nodeId, java.lang.String title,
111         java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files)
112         throws com.liferay.portal.PortalException,
113             com.liferay.portal.SystemException;
114 
115     public void addPageResources(long nodeId, java.lang.String title,
116         boolean addCommunityPermissions, boolean addGuestPermissions)
117         throws com.liferay.portal.PortalException,
118             com.liferay.portal.SystemException;
119 
120     public void addPageResources(com.liferay.portlet.wiki.model.WikiPage page,
121         boolean addCommunityPermissions, boolean addGuestPermissions)
122         throws com.liferay.portal.PortalException,
123             com.liferay.portal.SystemException;
124 
125     public void addPageResources(long nodeId, java.lang.String title,
126         java.lang.String[] communityPermissions,
127         java.lang.String[] guestPermissions)
128         throws com.liferay.portal.PortalException,
129             com.liferay.portal.SystemException;
130 
131     public void addPageResources(com.liferay.portlet.wiki.model.WikiPage page,
132         java.lang.String[] communityPermissions,
133         java.lang.String[] guestPermissions)
134         throws com.liferay.portal.PortalException,
135             com.liferay.portal.SystemException;
136 
137     public void changeParent(long userId, long nodeId, java.lang.String title,
138         java.lang.String newParentTitle,
139         javax.portlet.PortletPreferences prefs,
140         com.liferay.portal.theme.ThemeDisplay themeDisplay)
141         throws com.liferay.portal.PortalException,
142             com.liferay.portal.SystemException;
143 
144     public void deletePage(long nodeId, java.lang.String title)
145         throws com.liferay.portal.PortalException,
146             com.liferay.portal.SystemException;
147 
148     public void deletePage(com.liferay.portlet.wiki.model.WikiPage page)
149         throws com.liferay.portal.PortalException,
150             com.liferay.portal.SystemException;
151 
152     public void deletePageAttachment(long nodeId, java.lang.String title,
153         java.lang.String fileName)
154         throws com.liferay.portal.PortalException,
155             com.liferay.portal.SystemException;
156 
157     public void deletePages(long nodeId)
158         throws com.liferay.portal.PortalException,
159             com.liferay.portal.SystemException;
160 
161     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
162     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getChildren(
163         long nodeId, boolean head, java.lang.String parentTitle)
164         throws com.liferay.portal.SystemException;
165 
166     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
167     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getIncomingLinks(
168         long nodeId, java.lang.String title)
169         throws com.liferay.portal.PortalException,
170             com.liferay.portal.SystemException;
171 
172     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
173     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getNoAssetPages()
174         throws com.liferay.portal.SystemException;
175 
176     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
177     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOrphans(
178         long nodeId)
179         throws com.liferay.portal.PortalException,
180             com.liferay.portal.SystemException;
181 
182     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
183     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOutgoingLinks(
184         long nodeId, java.lang.String title)
185         throws com.liferay.portal.PortalException,
186             com.liferay.portal.SystemException;
187 
188     public com.liferay.portlet.wiki.model.WikiPage getPage(long resourcePrimKey)
189         throws com.liferay.portal.PortalException,
190             com.liferay.portal.SystemException;
191 
192     public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
193         java.lang.String title)
194         throws com.liferay.portal.PortalException,
195             com.liferay.portal.SystemException;
196 
197     public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
198         java.lang.String title, double version)
199         throws com.liferay.portal.PortalException,
200             com.liferay.portal.SystemException;
201 
202     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
203     public com.liferay.portlet.wiki.model.WikiPageDisplay getPageDisplay(
204         long nodeId, java.lang.String title,
205         javax.portlet.PortletURL viewPageURL,
206         javax.portlet.PortletURL editPageURL,
207         java.lang.String attachmentURLPrefix)
208         throws com.liferay.portal.PortalException,
209             com.liferay.portal.SystemException;
210 
211     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
212     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
213         long nodeId, int start, int end)
214         throws com.liferay.portal.SystemException;
215 
216     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
217     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
218         java.lang.String format) throws com.liferay.portal.SystemException;
219 
220     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
221     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
222         long nodeId, java.lang.String title, int start, int end)
223         throws com.liferay.portal.SystemException;
224 
225     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
226     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
227         long nodeId, java.lang.String title, int start, int end,
228         com.liferay.portal.kernel.util.OrderByComparator obc)
229         throws com.liferay.portal.SystemException;
230 
231     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
232     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
233         long nodeId, boolean head, int start, int end)
234         throws com.liferay.portal.SystemException;
235 
236     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
237     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
238         long nodeId, java.lang.String title, boolean head, int start, int end)
239         throws com.liferay.portal.SystemException;
240 
241     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
242     public int getPagesCount(long nodeId)
243         throws com.liferay.portal.SystemException;
244 
245     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
246     public int getPagesCount(long nodeId, java.lang.String title)
247         throws com.liferay.portal.SystemException;
248 
249     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
250     public int getPagesCount(long nodeId, boolean head)
251         throws com.liferay.portal.SystemException;
252 
253     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
254     public int getPagesCount(long nodeId, java.lang.String title, boolean head)
255         throws com.liferay.portal.SystemException;
256 
257     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
258     public int getPagesCount(java.lang.String format)
259         throws com.liferay.portal.SystemException;
260 
261     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
262     public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getRecentChanges(
263         long nodeId, int start, int end)
264         throws com.liferay.portal.SystemException;
265 
266     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
267     public int getRecentChangesCount(long nodeId)
268         throws com.liferay.portal.SystemException;
269 
270     public void movePage(long userId, long nodeId, java.lang.String title,
271         java.lang.String newTitle, javax.portlet.PortletPreferences prefs,
272         com.liferay.portal.theme.ThemeDisplay themeDisplay)
273         throws com.liferay.portal.PortalException,
274             com.liferay.portal.SystemException;
275 
276     public void movePage(long userId, long nodeId, java.lang.String title,
277         java.lang.String newTitle, boolean strict,
278         javax.portlet.PortletPreferences prefs,
279         com.liferay.portal.theme.ThemeDisplay themeDisplay)
280         throws com.liferay.portal.PortalException,
281             com.liferay.portal.SystemException;
282 
283     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
284     public void reIndex(long resourcePrimKey)
285         throws com.liferay.portal.SystemException;
286 
287     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
288     public void reIndex(com.liferay.portlet.wiki.model.WikiPage page)
289         throws com.liferay.portal.SystemException;
290 
291     public com.liferay.portlet.wiki.model.WikiPage revertPage(long userId,
292         long nodeId, java.lang.String title, double version,
293         javax.portlet.PortletPreferences prefs,
294         com.liferay.portal.theme.ThemeDisplay themeDisplay)
295         throws com.liferay.portal.PortalException,
296             com.liferay.portal.SystemException;
297 
298     public void subscribePage(long userId, long nodeId, java.lang.String title)
299         throws com.liferay.portal.PortalException,
300             com.liferay.portal.SystemException;
301 
302     public void unsubscribePage(long userId, long nodeId, java.lang.String title)
303         throws com.liferay.portal.PortalException,
304             com.liferay.portal.SystemException;
305 
306     public com.liferay.portlet.wiki.model.WikiPage updatePage(long userId,
307         long nodeId, java.lang.String title, double version,
308         java.lang.String content, java.lang.String summary, boolean minorEdit,
309         java.lang.String format, java.lang.String parentTitle,
310         java.lang.String redirectTitle, java.lang.String[] tagsEntries,
311         javax.portlet.PortletPreferences prefs,
312         com.liferay.portal.theme.ThemeDisplay themeDisplay)
313         throws com.liferay.portal.PortalException,
314             com.liferay.portal.SystemException;
315 
316     public void updateTagsAsset(long userId,
317         com.liferay.portlet.wiki.model.WikiPage page,
318         java.lang.String[] tagsEntries)
319         throws com.liferay.portal.PortalException,
320             com.liferay.portal.SystemException;
321 
322     public void validateTitle(java.lang.String title)
323         throws com.liferay.portal.PortalException;
324 }