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