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     * <p>
025     * This interface defines the service. The default implementation is
026     * {@link
027     * com.liferay.portlet.wiki.service.impl.WikiPageLocalServiceImpl}.
028     * Modify methods in that class and rerun ServiceBuilder to populate this class
029     * and all other generated classes.
030     * </p>
031     *
032     * <p>
033     * 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.
034     * </p>
035     *
036     * @author    Brian Wing Shun Chan
037     * @see       WikiPageLocalServiceUtil
038     * @generated
039     */
040    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
041            PortalException.class, SystemException.class})
042    public interface WikiPageLocalService {
043            public com.liferay.portlet.wiki.model.WikiPage addWikiPage(
044                    com.liferay.portlet.wiki.model.WikiPage wikiPage)
045                    throws com.liferay.portal.kernel.exception.SystemException;
046    
047            public com.liferay.portlet.wiki.model.WikiPage createWikiPage(long pageId);
048    
049            public void deleteWikiPage(long pageId)
050                    throws com.liferay.portal.kernel.exception.PortalException,
051                            com.liferay.portal.kernel.exception.SystemException;
052    
053            public void deleteWikiPage(com.liferay.portlet.wiki.model.WikiPage wikiPage)
054                    throws com.liferay.portal.kernel.exception.SystemException;
055    
056            @SuppressWarnings("unchecked")
057            public java.util.List dynamicQuery(
058                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
059                    throws com.liferay.portal.kernel.exception.SystemException;
060    
061            @SuppressWarnings("unchecked")
062            public java.util.List dynamicQuery(
063                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
064                    int end) throws com.liferay.portal.kernel.exception.SystemException;
065    
066            @SuppressWarnings("unchecked")
067            public java.util.List dynamicQuery(
068                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
069                    int end,
070                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
071                    throws com.liferay.portal.kernel.exception.SystemException;
072    
073            public long dynamicQueryCount(
074                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
075                    throws com.liferay.portal.kernel.exception.SystemException;
076    
077            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
078            public com.liferay.portlet.wiki.model.WikiPage getWikiPage(long pageId)
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 getWikiPageByUuidAndGroupId(
084                    java.lang.String uuid, long groupId)
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> getWikiPages(
090                    int start, int end)
091                    throws com.liferay.portal.kernel.exception.SystemException;
092    
093            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
094            public int getWikiPagesCount()
095                    throws com.liferay.portal.kernel.exception.SystemException;
096    
097            public com.liferay.portlet.wiki.model.WikiPage updateWikiPage(
098                    com.liferay.portlet.wiki.model.WikiPage wikiPage)
099                    throws com.liferay.portal.kernel.exception.SystemException;
100    
101            public com.liferay.portlet.wiki.model.WikiPage updateWikiPage(
102                    com.liferay.portlet.wiki.model.WikiPage wikiPage, boolean merge)
103                    throws com.liferay.portal.kernel.exception.SystemException;
104    
105            public com.liferay.portlet.wiki.model.WikiPage addPage(long userId,
106                    long nodeId, java.lang.String title, double version,
107                    java.lang.String content, java.lang.String summary, boolean minorEdit,
108                    java.lang.String format, boolean head, java.lang.String parentTitle,
109                    java.lang.String redirectTitle,
110                    com.liferay.portal.service.ServiceContext serviceContext)
111                    throws com.liferay.portal.kernel.exception.PortalException,
112                            com.liferay.portal.kernel.exception.SystemException;
113    
114            public com.liferay.portlet.wiki.model.WikiPage addPage(long userId,
115                    long nodeId, java.lang.String title, java.lang.String content,
116                    java.lang.String summary, boolean minorEdit,
117                    com.liferay.portal.service.ServiceContext serviceContext)
118                    throws com.liferay.portal.kernel.exception.PortalException,
119                            com.liferay.portal.kernel.exception.SystemException;
120    
121            public void addPageAttachment(long companyId, java.lang.String dirName,
122                    java.util.Date modifiedDate, java.lang.String fileName,
123                    java.io.InputStream inputStream)
124                    throws com.liferay.portal.kernel.exception.PortalException,
125                            com.liferay.portal.kernel.exception.SystemException;
126    
127            public void addPageAttachments(long nodeId, java.lang.String title,
128                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, byte[]>> files)
129                    throws com.liferay.portal.kernel.exception.PortalException,
130                            com.liferay.portal.kernel.exception.SystemException;
131    
132            public void addPageResources(long nodeId, java.lang.String title,
133                    boolean addCommunityPermissions, boolean addGuestPermissions)
134                    throws com.liferay.portal.kernel.exception.PortalException,
135                            com.liferay.portal.kernel.exception.SystemException;
136    
137            public void addPageResources(long nodeId, java.lang.String title,
138                    java.lang.String[] communityPermissions,
139                    java.lang.String[] guestPermissions)
140                    throws com.liferay.portal.kernel.exception.PortalException,
141                            com.liferay.portal.kernel.exception.SystemException;
142    
143            public void addPageResources(com.liferay.portlet.wiki.model.WikiPage page,
144                    boolean addCommunityPermissions, boolean addGuestPermissions)
145                    throws com.liferay.portal.kernel.exception.PortalException,
146                            com.liferay.portal.kernel.exception.SystemException;
147    
148            public void addPageResources(com.liferay.portlet.wiki.model.WikiPage page,
149                    java.lang.String[] communityPermissions,
150                    java.lang.String[] guestPermissions)
151                    throws com.liferay.portal.kernel.exception.PortalException,
152                            com.liferay.portal.kernel.exception.SystemException;
153    
154            public void changeParent(long userId, long nodeId, java.lang.String title,
155                    java.lang.String newParentTitle,
156                    com.liferay.portal.service.ServiceContext serviceContext)
157                    throws com.liferay.portal.kernel.exception.PortalException,
158                            com.liferay.portal.kernel.exception.SystemException;
159    
160            public void deletePage(long nodeId, java.lang.String title)
161                    throws com.liferay.portal.kernel.exception.PortalException,
162                            com.liferay.portal.kernel.exception.SystemException;
163    
164            public void deletePage(long nodeId, java.lang.String title, double version)
165                    throws com.liferay.portal.kernel.exception.PortalException,
166                            com.liferay.portal.kernel.exception.SystemException;
167    
168            public void deletePage(com.liferay.portlet.wiki.model.WikiPage page)
169                    throws com.liferay.portal.kernel.exception.PortalException,
170                            com.liferay.portal.kernel.exception.SystemException;
171    
172            public void deletePageAttachment(long nodeId, java.lang.String title,
173                    java.lang.String fileName)
174                    throws com.liferay.portal.kernel.exception.PortalException,
175                            com.liferay.portal.kernel.exception.SystemException;
176    
177            public void deletePages(long nodeId)
178                    throws com.liferay.portal.kernel.exception.PortalException,
179                            com.liferay.portal.kernel.exception.SystemException;
180    
181            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
182            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getChildren(
183                    long nodeId, boolean head, java.lang.String parentTitle)
184                    throws com.liferay.portal.kernel.exception.SystemException;
185    
186            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
187            public com.liferay.portlet.wiki.model.WikiPage getDraftPage(long nodeId,
188                    java.lang.String title)
189                    throws com.liferay.portal.kernel.exception.PortalException,
190                            com.liferay.portal.kernel.exception.SystemException;
191    
192            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
193            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getIncomingLinks(
194                    long nodeId, java.lang.String title)
195                    throws com.liferay.portal.kernel.exception.PortalException,
196                            com.liferay.portal.kernel.exception.SystemException;
197    
198            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
199            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getNoAssetPages()
200                    throws com.liferay.portal.kernel.exception.SystemException;
201    
202            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
203            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOrphans(
204                    long nodeId)
205                    throws com.liferay.portal.kernel.exception.PortalException,
206                            com.liferay.portal.kernel.exception.SystemException;
207    
208            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
209            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOutgoingLinks(
210                    long nodeId, java.lang.String title)
211                    throws com.liferay.portal.kernel.exception.PortalException,
212                            com.liferay.portal.kernel.exception.SystemException;
213    
214            public com.liferay.portlet.wiki.model.WikiPage getPage(long resourcePrimKey)
215                    throws com.liferay.portal.kernel.exception.PortalException,
216                            com.liferay.portal.kernel.exception.SystemException;
217    
218            public com.liferay.portlet.wiki.model.WikiPage getPage(
219                    long resourcePrimKey, java.lang.Boolean head)
220                    throws com.liferay.portal.kernel.exception.PortalException,
221                            com.liferay.portal.kernel.exception.SystemException;
222    
223            public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
224                    java.lang.String title)
225                    throws com.liferay.portal.kernel.exception.PortalException,
226                            com.liferay.portal.kernel.exception.SystemException;
227    
228            public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
229                    java.lang.String title, java.lang.Boolean head)
230                    throws com.liferay.portal.kernel.exception.PortalException,
231                            com.liferay.portal.kernel.exception.SystemException;
232    
233            public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
234                    java.lang.String title, double version)
235                    throws com.liferay.portal.kernel.exception.PortalException,
236                            com.liferay.portal.kernel.exception.SystemException;
237    
238            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
239            public com.liferay.portlet.wiki.model.WikiPageDisplay getPageDisplay(
240                    long nodeId, java.lang.String title,
241                    javax.portlet.PortletURL viewPageURL,
242                    javax.portlet.PortletURL editPageURL,
243                    java.lang.String attachmentURLPrefix)
244                    throws com.liferay.portal.kernel.exception.PortalException,
245                            com.liferay.portal.kernel.exception.SystemException;
246    
247            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
248            public com.liferay.portlet.wiki.model.WikiPageDisplay getPageDisplay(
249                    com.liferay.portlet.wiki.model.WikiPage page,
250                    javax.portlet.PortletURL viewPageURL,
251                    javax.portlet.PortletURL editPageURL,
252                    java.lang.String attachmentURLPrefix)
253                    throws com.liferay.portal.kernel.exception.PortalException,
254                            com.liferay.portal.kernel.exception.SystemException;
255    
256            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
257            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
258                    long nodeId, boolean head, int start, int end)
259                    throws com.liferay.portal.kernel.exception.SystemException;
260    
261            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
262            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
263                    long nodeId, boolean head, int start, int end,
264                    com.liferay.portal.kernel.util.OrderByComparator obc)
265                    throws com.liferay.portal.kernel.exception.SystemException;
266    
267            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
268            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
269                    long nodeId, int start, int end)
270                    throws com.liferay.portal.kernel.exception.SystemException;
271    
272            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
273            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
274                    long nodeId, int start, int end,
275                    com.liferay.portal.kernel.util.OrderByComparator obc)
276                    throws com.liferay.portal.kernel.exception.SystemException;
277    
278            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
279            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
280                    long resourcePrimKey, long nodeId, int status)
281                    throws com.liferay.portal.kernel.exception.SystemException;
282    
283            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
284            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
285                    long userId, long nodeId, int status, int start, int end)
286                    throws com.liferay.portal.kernel.exception.SystemException;
287    
288            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
289            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
290                    long nodeId, java.lang.String title, boolean head, int start, int end)
291                    throws com.liferay.portal.kernel.exception.SystemException;
292    
293            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
294            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
295                    long nodeId, java.lang.String title, int start, int end)
296                    throws com.liferay.portal.kernel.exception.SystemException;
297    
298            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
299            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
300                    long nodeId, java.lang.String title, int start, int end,
301                    com.liferay.portal.kernel.util.OrderByComparator obc)
302                    throws com.liferay.portal.kernel.exception.SystemException;
303    
304            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
305            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
306                    java.lang.String format)
307                    throws com.liferay.portal.kernel.exception.SystemException;
308    
309            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
310            public int getPagesCount(long nodeId)
311                    throws com.liferay.portal.kernel.exception.SystemException;
312    
313            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
314            public int getPagesCount(long nodeId, boolean head)
315                    throws com.liferay.portal.kernel.exception.SystemException;
316    
317            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
318            public int getPagesCount(long userId, long nodeId, int status)
319                    throws com.liferay.portal.kernel.exception.SystemException;
320    
321            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
322            public int getPagesCount(long nodeId, java.lang.String title)
323                    throws com.liferay.portal.kernel.exception.SystemException;
324    
325            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
326            public int getPagesCount(long nodeId, java.lang.String title, boolean head)
327                    throws com.liferay.portal.kernel.exception.SystemException;
328    
329            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
330            public int getPagesCount(java.lang.String format)
331                    throws com.liferay.portal.kernel.exception.SystemException;
332    
333            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
334            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getRecentChanges(
335                    long nodeId, int start, int end)
336                    throws com.liferay.portal.kernel.exception.SystemException;
337    
338            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
339            public int getRecentChangesCount(long nodeId)
340                    throws com.liferay.portal.kernel.exception.SystemException;
341    
342            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
343            public boolean hasDraftPage(long nodeId, java.lang.String title)
344                    throws com.liferay.portal.kernel.exception.SystemException;
345    
346            public void movePage(long userId, long nodeId, java.lang.String title,
347                    java.lang.String newTitle, boolean strict,
348                    com.liferay.portal.service.ServiceContext serviceContext)
349                    throws com.liferay.portal.kernel.exception.PortalException,
350                            com.liferay.portal.kernel.exception.SystemException;
351    
352            public void movePage(long userId, long nodeId, java.lang.String title,
353                    java.lang.String newTitle,
354                    com.liferay.portal.service.ServiceContext serviceContext)
355                    throws com.liferay.portal.kernel.exception.PortalException,
356                            com.liferay.portal.kernel.exception.SystemException;
357    
358            public com.liferay.portlet.wiki.model.WikiPage revertPage(long userId,
359                    long nodeId, java.lang.String title, double version,
360                    com.liferay.portal.service.ServiceContext serviceContext)
361                    throws com.liferay.portal.kernel.exception.PortalException,
362                            com.liferay.portal.kernel.exception.SystemException;
363    
364            public void subscribePage(long userId, long nodeId, java.lang.String title)
365                    throws com.liferay.portal.kernel.exception.PortalException,
366                            com.liferay.portal.kernel.exception.SystemException;
367    
368            public void unsubscribePage(long userId, long nodeId, java.lang.String title)
369                    throws com.liferay.portal.kernel.exception.PortalException,
370                            com.liferay.portal.kernel.exception.SystemException;
371    
372            public void updateAsset(long userId,
373                    com.liferay.portlet.wiki.model.WikiPage page, long[] assetCategoryIds,
374                    java.lang.String[] assetTagNames)
375                    throws com.liferay.portal.kernel.exception.PortalException,
376                            com.liferay.portal.kernel.exception.SystemException;
377    
378            public com.liferay.portlet.wiki.model.WikiPage updatePage(long userId,
379                    long nodeId, java.lang.String title, double version,
380                    java.lang.String content, java.lang.String summary, boolean minorEdit,
381                    java.lang.String format, java.lang.String parentTitle,
382                    java.lang.String redirectTitle,
383                    com.liferay.portal.service.ServiceContext serviceContext)
384                    throws com.liferay.portal.kernel.exception.PortalException,
385                            com.liferay.portal.kernel.exception.SystemException;
386    
387            public com.liferay.portlet.wiki.model.WikiPage updateStatus(long userId,
388                    long resourcePrimKey, int status,
389                    com.liferay.portal.service.ServiceContext serviceContext)
390                    throws com.liferay.portal.kernel.exception.PortalException,
391                            com.liferay.portal.kernel.exception.SystemException;
392    
393            public com.liferay.portlet.wiki.model.WikiPage updateStatus(long userId,
394                    com.liferay.portlet.wiki.model.WikiPage page, int status,
395                    com.liferay.portal.service.ServiceContext serviceContext)
396                    throws com.liferay.portal.kernel.exception.PortalException,
397                            com.liferay.portal.kernel.exception.SystemException;
398    
399            public void validateTitle(java.lang.String title)
400                    throws com.liferay.portal.kernel.exception.PortalException;
401    }