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