001    /**
002     * Copyright (c) 2000-2013 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.exception.PortalException;
018    import com.liferay.portal.kernel.exception.SystemException;
019    import com.liferay.portal.kernel.transaction.Isolation;
020    import com.liferay.portal.kernel.transaction.Propagation;
021    import com.liferay.portal.kernel.transaction.Transactional;
022    import com.liferay.portal.service.BaseLocalService;
023    import com.liferay.portal.service.PersistedModelLocalService;
024    
025    /**
026     * The interface for the wiki page local service.
027     *
028     * <p>
029     * 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.
030     * </p>
031     *
032     * @author Brian Wing Shun Chan
033     * @see WikiPageLocalServiceUtil
034     * @see com.liferay.portlet.wiki.service.base.WikiPageLocalServiceBaseImpl
035     * @see com.liferay.portlet.wiki.service.impl.WikiPageLocalServiceImpl
036     * @generated
037     */
038    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
039            PortalException.class, SystemException.class})
040    public interface WikiPageLocalService extends BaseLocalService,
041            PersistedModelLocalService {
042            /*
043             * NOTE FOR DEVELOPERS:
044             *
045             * Never modify or reference this interface directly. Always use {@link WikiPageLocalServiceUtil} to access the wiki page local service. Add custom service methods to {@link com.liferay.portlet.wiki.service.impl.WikiPageLocalServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
046             */
047    
048            /**
049            * Adds the wiki page to the database. Also notifies the appropriate model listeners.
050            *
051            * @param wikiPage the wiki page
052            * @return the wiki page that was added
053            * @throws SystemException if a system exception occurred
054            */
055            public com.liferay.portlet.wiki.model.WikiPage addWikiPage(
056                    com.liferay.portlet.wiki.model.WikiPage wikiPage)
057                    throws com.liferay.portal.kernel.exception.SystemException;
058    
059            /**
060            * Creates a new wiki page with the primary key. Does not add the wiki page to the database.
061            *
062            * @param pageId the primary key for the new wiki page
063            * @return the new wiki page
064            */
065            public com.liferay.portlet.wiki.model.WikiPage createWikiPage(long pageId);
066    
067            /**
068            * Deletes the wiki page with the primary key from the database. Also notifies the appropriate model listeners.
069            *
070            * @param pageId the primary key of the wiki page
071            * @return the wiki page that was removed
072            * @throws PortalException if a wiki page with the primary key could not be found
073            * @throws SystemException if a system exception occurred
074            */
075            public com.liferay.portlet.wiki.model.WikiPage deleteWikiPage(long pageId)
076                    throws com.liferay.portal.kernel.exception.PortalException,
077                            com.liferay.portal.kernel.exception.SystemException;
078    
079            /**
080            * Deletes the wiki page from the database. Also notifies the appropriate model listeners.
081            *
082            * @param wikiPage the wiki page
083            * @return the wiki page that was removed
084            * @throws SystemException if a system exception occurred
085            */
086            public com.liferay.portlet.wiki.model.WikiPage deleteWikiPage(
087                    com.liferay.portlet.wiki.model.WikiPage wikiPage)
088                    throws com.liferay.portal.kernel.exception.SystemException;
089    
090            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
091    
092            /**
093            * Performs a dynamic query on the database and returns the matching rows.
094            *
095            * @param dynamicQuery the dynamic query
096            * @return the matching rows
097            * @throws SystemException if a system exception occurred
098            */
099            @SuppressWarnings("rawtypes")
100            public java.util.List dynamicQuery(
101                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
102                    throws com.liferay.portal.kernel.exception.SystemException;
103    
104            /**
105            * Performs a dynamic query on the database and returns a range of the matching rows.
106            *
107            * <p>
108            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.wiki.model.impl.WikiPageModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
109            * </p>
110            *
111            * @param dynamicQuery the dynamic query
112            * @param start the lower bound of the range of model instances
113            * @param end the upper bound of the range of model instances (not inclusive)
114            * @return the range of matching rows
115            * @throws SystemException if a system exception occurred
116            */
117            @SuppressWarnings("rawtypes")
118            public java.util.List dynamicQuery(
119                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
120                    int end) throws com.liferay.portal.kernel.exception.SystemException;
121    
122            /**
123            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
124            *
125            * <p>
126            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.wiki.model.impl.WikiPageModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
127            * </p>
128            *
129            * @param dynamicQuery the dynamic query
130            * @param start the lower bound of the range of model instances
131            * @param end the upper bound of the range of model instances (not inclusive)
132            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
133            * @return the ordered range of matching rows
134            * @throws SystemException if a system exception occurred
135            */
136            @SuppressWarnings("rawtypes")
137            public java.util.List dynamicQuery(
138                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
139                    int end,
140                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
141                    throws com.liferay.portal.kernel.exception.SystemException;
142    
143            /**
144            * Returns the number of rows that match the dynamic query.
145            *
146            * @param dynamicQuery the dynamic query
147            * @return the number of rows that match the dynamic query
148            * @throws SystemException if a system exception occurred
149            */
150            public long dynamicQueryCount(
151                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
152                    throws com.liferay.portal.kernel.exception.SystemException;
153    
154            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
155            public com.liferay.portlet.wiki.model.WikiPage fetchWikiPage(long pageId)
156                    throws com.liferay.portal.kernel.exception.SystemException;
157    
158            /**
159            * Returns the wiki page with the primary key.
160            *
161            * @param pageId the primary key of the wiki page
162            * @return the wiki page
163            * @throws PortalException if a wiki page with the primary key could not be found
164            * @throws SystemException if a system exception occurred
165            */
166            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
167            public com.liferay.portlet.wiki.model.WikiPage getWikiPage(long pageId)
168                    throws com.liferay.portal.kernel.exception.PortalException,
169                            com.liferay.portal.kernel.exception.SystemException;
170    
171            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
172            public com.liferay.portal.model.PersistedModel getPersistedModel(
173                    java.io.Serializable primaryKeyObj)
174                    throws com.liferay.portal.kernel.exception.PortalException,
175                            com.liferay.portal.kernel.exception.SystemException;
176    
177            /**
178            * Returns the wiki page matching the UUID and group.
179            *
180            * @param uuid the wiki page's UUID
181            * @param groupId the primary key of the group
182            * @return the matching wiki page
183            * @throws PortalException if a matching wiki page could not be found
184            * @throws SystemException if a system exception occurred
185            */
186            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
187            public com.liferay.portlet.wiki.model.WikiPage getWikiPageByUuidAndGroupId(
188                    java.lang.String uuid, long groupId)
189                    throws com.liferay.portal.kernel.exception.PortalException,
190                            com.liferay.portal.kernel.exception.SystemException;
191    
192            /**
193            * Returns a range of all the wiki pages.
194            *
195            * <p>
196            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.wiki.model.impl.WikiPageModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
197            * </p>
198            *
199            * @param start the lower bound of the range of wiki pages
200            * @param end the upper bound of the range of wiki pages (not inclusive)
201            * @return the range of wiki pages
202            * @throws SystemException if a system exception occurred
203            */
204            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
205            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getWikiPages(
206                    int start, int end)
207                    throws com.liferay.portal.kernel.exception.SystemException;
208    
209            /**
210            * Returns the number of wiki pages.
211            *
212            * @return the number of wiki pages
213            * @throws SystemException if a system exception occurred
214            */
215            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
216            public int getWikiPagesCount()
217                    throws com.liferay.portal.kernel.exception.SystemException;
218    
219            /**
220            * Updates the wiki page in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
221            *
222            * @param wikiPage the wiki page
223            * @return the wiki page that was updated
224            * @throws SystemException if a system exception occurred
225            */
226            public com.liferay.portlet.wiki.model.WikiPage updateWikiPage(
227                    com.liferay.portlet.wiki.model.WikiPage wikiPage)
228                    throws com.liferay.portal.kernel.exception.SystemException;
229    
230            /**
231            * Returns the Spring bean ID for this bean.
232            *
233            * @return the Spring bean ID for this bean
234            */
235            public java.lang.String getBeanIdentifier();
236    
237            /**
238            * Sets the Spring bean ID for this bean.
239            *
240            * @param beanIdentifier the Spring bean ID for this bean
241            */
242            public void setBeanIdentifier(java.lang.String beanIdentifier);
243    
244            public com.liferay.portlet.wiki.model.WikiPage addPage(long userId,
245                    long nodeId, java.lang.String title, double version,
246                    java.lang.String content, java.lang.String summary, boolean minorEdit,
247                    java.lang.String format, boolean head, java.lang.String parentTitle,
248                    java.lang.String redirectTitle,
249                    com.liferay.portal.service.ServiceContext serviceContext)
250                    throws com.liferay.portal.kernel.exception.PortalException,
251                            com.liferay.portal.kernel.exception.SystemException;
252    
253            public com.liferay.portlet.wiki.model.WikiPage addPage(long userId,
254                    long nodeId, java.lang.String title, java.lang.String content,
255                    java.lang.String summary, boolean minorEdit,
256                    com.liferay.portal.service.ServiceContext serviceContext)
257                    throws com.liferay.portal.kernel.exception.PortalException,
258                            com.liferay.portal.kernel.exception.SystemException;
259    
260            public void addPageAttachment(long userId, long nodeId,
261                    java.lang.String title, java.lang.String fileName, java.io.File file,
262                    java.lang.String mimeType)
263                    throws com.liferay.portal.kernel.exception.PortalException,
264                            com.liferay.portal.kernel.exception.SystemException;
265    
266            public void addPageAttachment(long userId, long nodeId,
267                    java.lang.String title, java.lang.String fileName,
268                    java.io.InputStream inputStream, java.lang.String mimeType)
269                    throws com.liferay.portal.kernel.exception.PortalException,
270                            com.liferay.portal.kernel.exception.SystemException;
271    
272            public void addPageAttachments(long userId, long nodeId,
273                    java.lang.String title,
274                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs)
275                    throws com.liferay.portal.kernel.exception.PortalException,
276                            com.liferay.portal.kernel.exception.SystemException;
277    
278            public void addPageResources(long nodeId, java.lang.String title,
279                    boolean addGroupPermissions, boolean addGuestPermissions)
280                    throws com.liferay.portal.kernel.exception.PortalException,
281                            com.liferay.portal.kernel.exception.SystemException;
282    
283            public void addPageResources(long nodeId, java.lang.String title,
284                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
285                    throws com.liferay.portal.kernel.exception.PortalException,
286                            com.liferay.portal.kernel.exception.SystemException;
287    
288            public void addPageResources(com.liferay.portlet.wiki.model.WikiPage page,
289                    boolean addGroupPermissions, boolean addGuestPermissions)
290                    throws com.liferay.portal.kernel.exception.PortalException,
291                            com.liferay.portal.kernel.exception.SystemException;
292    
293            public void addPageResources(com.liferay.portlet.wiki.model.WikiPage page,
294                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
295                    throws com.liferay.portal.kernel.exception.PortalException,
296                            com.liferay.portal.kernel.exception.SystemException;
297    
298            public void addTempPageAttachment(long groupId, long userId,
299                    java.lang.String fileName, java.lang.String tempFolderName,
300                    java.io.InputStream inputStream, java.lang.String mimeType)
301                    throws com.liferay.portal.kernel.exception.PortalException,
302                            com.liferay.portal.kernel.exception.SystemException;
303    
304            public void changeParent(long userId, long nodeId, java.lang.String title,
305                    java.lang.String newParentTitle,
306                    com.liferay.portal.service.ServiceContext serviceContext)
307                    throws com.liferay.portal.kernel.exception.PortalException,
308                            com.liferay.portal.kernel.exception.SystemException;
309    
310            public void deletePage(long nodeId, java.lang.String title)
311                    throws com.liferay.portal.kernel.exception.PortalException,
312                            com.liferay.portal.kernel.exception.SystemException;
313    
314            /**
315            * @deprecated As of 6.2.0 replaced by {@link #discardDraft(long, String,
316            double)}
317            */
318            public void deletePage(long nodeId, java.lang.String title, double version)
319                    throws com.liferay.portal.kernel.exception.PortalException,
320                            com.liferay.portal.kernel.exception.SystemException;
321    
322            public void deletePage(com.liferay.portlet.wiki.model.WikiPage page)
323                    throws com.liferay.portal.kernel.exception.PortalException,
324                            com.liferay.portal.kernel.exception.SystemException;
325    
326            public void deletePageAttachment(long nodeId, java.lang.String title,
327                    java.lang.String fileName)
328                    throws com.liferay.portal.kernel.exception.PortalException,
329                            com.liferay.portal.kernel.exception.SystemException;
330    
331            public void deletePageAttachments(long nodeId, java.lang.String title)
332                    throws com.liferay.portal.kernel.exception.PortalException,
333                            com.liferay.portal.kernel.exception.SystemException;
334    
335            public void deletePages(long nodeId)
336                    throws com.liferay.portal.kernel.exception.PortalException,
337                            com.liferay.portal.kernel.exception.SystemException;
338    
339            public void deleteTempPageAttachment(long groupId, long userId,
340                    java.lang.String fileName, java.lang.String tempFolderName)
341                    throws com.liferay.portal.kernel.exception.PortalException,
342                            com.liferay.portal.kernel.exception.SystemException;
343    
344            public void deleteTrashPageAttachments(long nodeId, java.lang.String title)
345                    throws com.liferay.portal.kernel.exception.PortalException,
346                            com.liferay.portal.kernel.exception.SystemException;
347    
348            public void discardDraft(long nodeId, java.lang.String title, double version)
349                    throws com.liferay.portal.kernel.exception.PortalException,
350                            com.liferay.portal.kernel.exception.SystemException;
351    
352            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
353            public com.liferay.portlet.wiki.model.WikiPage fetchPage(long nodeId,
354                    java.lang.String title, double version)
355                    throws com.liferay.portal.kernel.exception.SystemException;
356    
357            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
358            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getChildren(
359                    long nodeId, boolean head, java.lang.String parentTitle)
360                    throws com.liferay.portal.kernel.exception.SystemException;
361    
362            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
363            public com.liferay.portlet.wiki.model.WikiPage getDraftPage(long nodeId,
364                    java.lang.String title)
365                    throws com.liferay.portal.kernel.exception.PortalException,
366                            com.liferay.portal.kernel.exception.SystemException;
367    
368            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
369            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getIncomingLinks(
370                    long nodeId, java.lang.String title)
371                    throws com.liferay.portal.kernel.exception.PortalException,
372                            com.liferay.portal.kernel.exception.SystemException;
373    
374            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
375            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getNoAssetPages()
376                    throws com.liferay.portal.kernel.exception.SystemException;
377    
378            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
379            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOrphans(
380                    long nodeId)
381                    throws com.liferay.portal.kernel.exception.PortalException,
382                            com.liferay.portal.kernel.exception.SystemException;
383    
384            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
385            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOutgoingLinks(
386                    long nodeId, java.lang.String title)
387                    throws com.liferay.portal.kernel.exception.PortalException,
388                            com.liferay.portal.kernel.exception.SystemException;
389    
390            public com.liferay.portlet.wiki.model.WikiPage getPage(long resourcePrimKey)
391                    throws com.liferay.portal.kernel.exception.PortalException,
392                            com.liferay.portal.kernel.exception.SystemException;
393    
394            public com.liferay.portlet.wiki.model.WikiPage getPage(
395                    long resourcePrimKey, java.lang.Boolean head)
396                    throws com.liferay.portal.kernel.exception.PortalException,
397                            com.liferay.portal.kernel.exception.SystemException;
398    
399            public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
400                    java.lang.String title)
401                    throws com.liferay.portal.kernel.exception.PortalException,
402                            com.liferay.portal.kernel.exception.SystemException;
403    
404            public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
405                    java.lang.String title, java.lang.Boolean head)
406                    throws com.liferay.portal.kernel.exception.PortalException,
407                            com.liferay.portal.kernel.exception.SystemException;
408    
409            public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
410                    java.lang.String title, double version)
411                    throws com.liferay.portal.kernel.exception.PortalException,
412                            com.liferay.portal.kernel.exception.SystemException;
413    
414            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
415            public com.liferay.portlet.wiki.model.WikiPage getPageByPageId(long pageId)
416                    throws com.liferay.portal.kernel.exception.PortalException,
417                            com.liferay.portal.kernel.exception.SystemException;
418    
419            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
420            public com.liferay.portlet.wiki.model.WikiPageDisplay getPageDisplay(
421                    long nodeId, java.lang.String title,
422                    javax.portlet.PortletURL viewPageURL,
423                    javax.portlet.PortletURL editPageURL,
424                    java.lang.String attachmentURLPrefix)
425                    throws com.liferay.portal.kernel.exception.PortalException,
426                            com.liferay.portal.kernel.exception.SystemException;
427    
428            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
429            public com.liferay.portlet.wiki.model.WikiPageDisplay getPageDisplay(
430                    com.liferay.portlet.wiki.model.WikiPage page,
431                    javax.portlet.PortletURL viewPageURL,
432                    javax.portlet.PortletURL editPageURL,
433                    java.lang.String attachmentURLPrefix)
434                    throws com.liferay.portal.kernel.exception.PortalException,
435                            com.liferay.portal.kernel.exception.SystemException;
436    
437            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
438            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
439                    long nodeId, boolean head, int start, int end)
440                    throws com.liferay.portal.kernel.exception.SystemException;
441    
442            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
443            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
444                    long nodeId, boolean head, int status, int start, int end,
445                    com.liferay.portal.kernel.util.OrderByComparator obc)
446                    throws com.liferay.portal.kernel.exception.SystemException;
447    
448            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
449            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
450                    long nodeId, boolean head, int start, int end,
451                    com.liferay.portal.kernel.util.OrderByComparator obc)
452                    throws com.liferay.portal.kernel.exception.SystemException;
453    
454            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
455            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
456                    long nodeId, int start, int end)
457                    throws com.liferay.portal.kernel.exception.SystemException;
458    
459            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
460            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
461                    long nodeId, int start, int end,
462                    com.liferay.portal.kernel.util.OrderByComparator obc)
463                    throws com.liferay.portal.kernel.exception.SystemException;
464    
465            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
466            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
467                    long resourcePrimKey, long nodeId, int status)
468                    throws com.liferay.portal.kernel.exception.SystemException;
469    
470            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
471            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
472                    long userId, long nodeId, int status, int start, int end)
473                    throws com.liferay.portal.kernel.exception.SystemException;
474    
475            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
476            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
477                    long nodeId, java.lang.String title, boolean head, int start, int end)
478                    throws com.liferay.portal.kernel.exception.SystemException;
479    
480            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
481            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
482                    long nodeId, java.lang.String title, int start, int end)
483                    throws com.liferay.portal.kernel.exception.SystemException;
484    
485            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
486            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
487                    long nodeId, java.lang.String title, int start, int end,
488                    com.liferay.portal.kernel.util.OrderByComparator obc)
489                    throws com.liferay.portal.kernel.exception.SystemException;
490    
491            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
492            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
493                    java.lang.String format)
494                    throws com.liferay.portal.kernel.exception.SystemException;
495    
496            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
497            public int getPagesCount(long nodeId)
498                    throws com.liferay.portal.kernel.exception.SystemException;
499    
500            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
501            public int getPagesCount(long nodeId, boolean head)
502                    throws com.liferay.portal.kernel.exception.SystemException;
503    
504            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
505            public int getPagesCount(long nodeId, boolean head, int status)
506                    throws com.liferay.portal.kernel.exception.SystemException;
507    
508            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
509            public int getPagesCount(long nodeId, int status)
510                    throws com.liferay.portal.kernel.exception.SystemException;
511    
512            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
513            public int getPagesCount(long userId, long nodeId, int status)
514                    throws com.liferay.portal.kernel.exception.SystemException;
515    
516            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
517            public int getPagesCount(long nodeId, java.lang.String title)
518                    throws com.liferay.portal.kernel.exception.SystemException;
519    
520            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
521            public int getPagesCount(long nodeId, java.lang.String title, boolean head)
522                    throws com.liferay.portal.kernel.exception.SystemException;
523    
524            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
525            public int getPagesCount(java.lang.String format)
526                    throws com.liferay.portal.kernel.exception.SystemException;
527    
528            /**
529            * @deprecated As of 6.2.0, replaced by {@link #getRecentChanges(long, long,
530            int, int)}
531            */
532            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
533            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getRecentChanges(
534                    long nodeId, int start, int end)
535                    throws com.liferay.portal.kernel.exception.PortalException,
536                            com.liferay.portal.kernel.exception.SystemException;
537    
538            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
539            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getRecentChanges(
540                    long groupId, long nodeId, int start, int end)
541                    throws com.liferay.portal.kernel.exception.SystemException;
542    
543            /**
544            * @deprecated As of 6.2.0, replaced by {@link #getRecentChangesCount(long,
545            long)}
546            */
547            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
548            public int getRecentChangesCount(long nodeId)
549                    throws com.liferay.portal.kernel.exception.PortalException,
550                            com.liferay.portal.kernel.exception.SystemException;
551    
552            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
553            public int getRecentChangesCount(long groupId, long nodeId)
554                    throws com.liferay.portal.kernel.exception.SystemException;
555    
556            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
557            public java.lang.String[] getTempPageAttachmentNames(long groupId,
558                    long userId, java.lang.String tempFolderName)
559                    throws com.liferay.portal.kernel.exception.PortalException,
560                            com.liferay.portal.kernel.exception.SystemException;
561    
562            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
563            public boolean hasDraftPage(long nodeId, java.lang.String title)
564                    throws com.liferay.portal.kernel.exception.SystemException;
565    
566            public void movePage(long userId, long nodeId, java.lang.String title,
567                    java.lang.String newTitle, boolean strict,
568                    com.liferay.portal.service.ServiceContext serviceContext)
569                    throws com.liferay.portal.kernel.exception.PortalException,
570                            com.liferay.portal.kernel.exception.SystemException;
571    
572            public void movePage(long userId, long nodeId, java.lang.String title,
573                    java.lang.String newTitle,
574                    com.liferay.portal.service.ServiceContext serviceContext)
575                    throws com.liferay.portal.kernel.exception.PortalException,
576                            com.liferay.portal.kernel.exception.SystemException;
577    
578            public long movePageAttachmentToTrash(long userId, long nodeId,
579                    java.lang.String title, java.lang.String fileName)
580                    throws com.liferay.portal.kernel.exception.PortalException,
581                            com.liferay.portal.kernel.exception.SystemException;
582    
583            public com.liferay.portlet.wiki.model.WikiPage movePageToTrash(
584                    long userId, long nodeId, java.lang.String title)
585                    throws com.liferay.portal.kernel.exception.PortalException,
586                            com.liferay.portal.kernel.exception.SystemException;
587    
588            public com.liferay.portlet.wiki.model.WikiPage movePageToTrash(
589                    long userId, long nodeId, java.lang.String title, double version)
590                    throws com.liferay.portal.kernel.exception.PortalException,
591                            com.liferay.portal.kernel.exception.SystemException;
592    
593            public com.liferay.portlet.wiki.model.WikiPage movePageToTrash(
594                    long userId, com.liferay.portlet.wiki.model.WikiPage page)
595                    throws com.liferay.portal.kernel.exception.PortalException,
596                            com.liferay.portal.kernel.exception.SystemException;
597    
598            public void restorePageAttachmentFromTrash(long userId, long nodeId,
599                    java.lang.String title, java.lang.String fileName)
600                    throws com.liferay.portal.kernel.exception.PortalException,
601                            com.liferay.portal.kernel.exception.SystemException;
602    
603            public void restorePageFromTrash(long userId,
604                    com.liferay.portlet.wiki.model.WikiPage page)
605                    throws com.liferay.portal.kernel.exception.PortalException,
606                            com.liferay.portal.kernel.exception.SystemException;
607    
608            public com.liferay.portlet.wiki.model.WikiPage revertPage(long userId,
609                    long nodeId, java.lang.String title, double version,
610                    com.liferay.portal.service.ServiceContext serviceContext)
611                    throws com.liferay.portal.kernel.exception.PortalException,
612                            com.liferay.portal.kernel.exception.SystemException;
613    
614            public void subscribePage(long userId, long nodeId, java.lang.String title)
615                    throws com.liferay.portal.kernel.exception.PortalException,
616                            com.liferay.portal.kernel.exception.SystemException;
617    
618            public void unsubscribePage(long userId, long nodeId, java.lang.String title)
619                    throws com.liferay.portal.kernel.exception.PortalException,
620                            com.liferay.portal.kernel.exception.SystemException;
621    
622            public void updateAsset(long userId,
623                    com.liferay.portlet.wiki.model.WikiPage page, long[] assetCategoryIds,
624                    java.lang.String[] assetTagNames, long[] assetLinkEntryIds)
625                    throws com.liferay.portal.kernel.exception.PortalException,
626                            com.liferay.portal.kernel.exception.SystemException;
627    
628            public com.liferay.portlet.wiki.model.WikiPage updatePage(long userId,
629                    long nodeId, java.lang.String title, double version,
630                    java.lang.String content, java.lang.String summary, boolean minorEdit,
631                    java.lang.String format, java.lang.String parentTitle,
632                    java.lang.String redirectTitle,
633                    com.liferay.portal.service.ServiceContext serviceContext)
634                    throws com.liferay.portal.kernel.exception.PortalException,
635                            com.liferay.portal.kernel.exception.SystemException;
636    
637            public com.liferay.portlet.wiki.model.WikiPage updateStatus(long userId,
638                    long resourcePrimKey, int status,
639                    com.liferay.portal.service.ServiceContext serviceContext)
640                    throws com.liferay.portal.kernel.exception.PortalException,
641                            com.liferay.portal.kernel.exception.SystemException;
642    
643            public com.liferay.portlet.wiki.model.WikiPage updateStatus(long userId,
644                    com.liferay.portlet.wiki.model.WikiPage page, int status,
645                    com.liferay.portal.service.ServiceContext serviceContext)
646                    throws com.liferay.portal.kernel.exception.PortalException,
647                            com.liferay.portal.kernel.exception.SystemException;
648    
649            public void validateTitle(java.lang.String title)
650                    throws com.liferay.portal.kernel.exception.PortalException;
651    }