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 fetchLatestPage(
413                    long resourcePrimKey, int status, boolean preferApproved)
414                    throws com.liferay.portal.kernel.exception.SystemException;
415    
416            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
417            public com.liferay.portlet.wiki.model.WikiPage fetchLatestPage(
418                    long resourcePrimKey, long nodeId, int status, boolean preferApproved)
419                    throws com.liferay.portal.kernel.exception.SystemException;
420    
421            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
422            public com.liferay.portlet.wiki.model.WikiPage fetchLatestPage(
423                    long nodeId, java.lang.String title, int status, boolean preferApproved)
424                    throws com.liferay.portal.kernel.exception.SystemException;
425    
426            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
427            public com.liferay.portlet.wiki.model.WikiPage fetchPage(long nodeId,
428                    java.lang.String title, double version)
429                    throws com.liferay.portal.kernel.exception.SystemException;
430    
431            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
432            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getChildren(
433                    long nodeId, boolean head, java.lang.String parentTitle)
434                    throws com.liferay.portal.kernel.exception.SystemException;
435    
436            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
437            public com.liferay.portlet.wiki.model.WikiPage getDraftPage(long nodeId,
438                    java.lang.String title)
439                    throws com.liferay.portal.kernel.exception.PortalException,
440                            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> getIncomingLinks(
444                    long nodeId, java.lang.String title)
445                    throws com.liferay.portal.kernel.exception.PortalException,
446                            com.liferay.portal.kernel.exception.SystemException;
447    
448            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
449            public com.liferay.portlet.wiki.model.WikiPage getLatestPage(
450                    long resourcePrimKey, int status, boolean preferApproved)
451                    throws com.liferay.portal.kernel.exception.PortalException,
452                            com.liferay.portal.kernel.exception.SystemException;
453    
454            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
455            public com.liferay.portlet.wiki.model.WikiPage getLatestPage(
456                    long resourcePrimKey, long nodeId, int status, boolean preferApproved)
457                    throws com.liferay.portal.kernel.exception.PortalException,
458                            com.liferay.portal.kernel.exception.SystemException;
459    
460            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
461            public com.liferay.portlet.wiki.model.WikiPage getLatestPage(long nodeId,
462                    java.lang.String title, int status, boolean preferApproved)
463                    throws com.liferay.portal.kernel.exception.PortalException,
464                            com.liferay.portal.kernel.exception.SystemException;
465    
466            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
467            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getNoAssetPages()
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> getOrphans(
472                    long nodeId)
473                    throws com.liferay.portal.kernel.exception.PortalException,
474                            com.liferay.portal.kernel.exception.SystemException;
475    
476            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
477            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOutgoingLinks(
478                    long nodeId, java.lang.String title)
479                    throws com.liferay.portal.kernel.exception.PortalException,
480                            com.liferay.portal.kernel.exception.SystemException;
481    
482            public com.liferay.portlet.wiki.model.WikiPage getPage(long resourcePrimKey)
483                    throws com.liferay.portal.kernel.exception.PortalException,
484                            com.liferay.portal.kernel.exception.SystemException;
485    
486            public com.liferay.portlet.wiki.model.WikiPage getPage(
487                    long resourcePrimKey, java.lang.Boolean head)
488                    throws com.liferay.portal.kernel.exception.PortalException,
489                            com.liferay.portal.kernel.exception.SystemException;
490    
491            public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
492                    java.lang.String title)
493                    throws com.liferay.portal.kernel.exception.PortalException,
494                            com.liferay.portal.kernel.exception.SystemException;
495    
496            public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
497                    java.lang.String title, java.lang.Boolean head)
498                    throws com.liferay.portal.kernel.exception.PortalException,
499                            com.liferay.portal.kernel.exception.SystemException;
500    
501            public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
502                    java.lang.String title, double version)
503                    throws com.liferay.portal.kernel.exception.PortalException,
504                            com.liferay.portal.kernel.exception.SystemException;
505    
506            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
507            public com.liferay.portlet.wiki.model.WikiPage getPageByPageId(long pageId)
508                    throws com.liferay.portal.kernel.exception.PortalException,
509                            com.liferay.portal.kernel.exception.SystemException;
510    
511            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
512            public com.liferay.portlet.wiki.model.WikiPageDisplay getPageDisplay(
513                    long nodeId, java.lang.String title,
514                    javax.portlet.PortletURL viewPageURL,
515                    javax.portlet.PortletURL editPageURL,
516                    java.lang.String attachmentURLPrefix)
517                    throws com.liferay.portal.kernel.exception.PortalException,
518                            com.liferay.portal.kernel.exception.SystemException;
519    
520            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
521            public com.liferay.portlet.wiki.model.WikiPageDisplay getPageDisplay(
522                    com.liferay.portlet.wiki.model.WikiPage page,
523                    javax.portlet.PortletURL viewPageURL,
524                    javax.portlet.PortletURL editPageURL,
525                    java.lang.String attachmentURLPrefix)
526                    throws com.liferay.portal.kernel.exception.PortalException,
527                            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 nodeId, boolean head, 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, boolean head, int status, int start, int end,
537                    com.liferay.portal.kernel.util.OrderByComparator obc)
538                    throws com.liferay.portal.kernel.exception.SystemException;
539    
540            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
541            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
542                    long nodeId, boolean head, int start, int end,
543                    com.liferay.portal.kernel.util.OrderByComparator obc)
544                    throws com.liferay.portal.kernel.exception.SystemException;
545    
546            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
547            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
548                    long nodeId, int start, int end)
549                    throws com.liferay.portal.kernel.exception.SystemException;
550    
551            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
552            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
553                    long nodeId, int start, int end,
554                    com.liferay.portal.kernel.util.OrderByComparator obc)
555                    throws com.liferay.portal.kernel.exception.SystemException;
556    
557            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
558            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
559                    long resourcePrimKey, long nodeId, int status)
560                    throws com.liferay.portal.kernel.exception.SystemException;
561    
562            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
563            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
564                    long userId, long nodeId, int status, int start, int end)
565                    throws com.liferay.portal.kernel.exception.SystemException;
566    
567            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
568            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
569                    long nodeId, java.lang.String title, boolean head, int start, int end)
570                    throws com.liferay.portal.kernel.exception.SystemException;
571    
572            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
573            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
574                    long nodeId, java.lang.String title, int start, int end)
575                    throws com.liferay.portal.kernel.exception.SystemException;
576    
577            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
578            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
579                    long nodeId, java.lang.String title, int start, int end,
580                    com.liferay.portal.kernel.util.OrderByComparator obc)
581                    throws com.liferay.portal.kernel.exception.SystemException;
582    
583            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
584            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
585                    java.lang.String format)
586                    throws com.liferay.portal.kernel.exception.SystemException;
587    
588            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
589            public int getPagesCount(long nodeId)
590                    throws com.liferay.portal.kernel.exception.SystemException;
591    
592            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
593            public int getPagesCount(long nodeId, boolean head)
594                    throws com.liferay.portal.kernel.exception.SystemException;
595    
596            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
597            public int getPagesCount(long nodeId, boolean head, int status)
598                    throws com.liferay.portal.kernel.exception.SystemException;
599    
600            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
601            public int getPagesCount(long nodeId, int status)
602                    throws com.liferay.portal.kernel.exception.SystemException;
603    
604            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
605            public int getPagesCount(long userId, long nodeId, int status)
606                    throws com.liferay.portal.kernel.exception.SystemException;
607    
608            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
609            public int getPagesCount(long nodeId, java.lang.String title)
610                    throws com.liferay.portal.kernel.exception.SystemException;
611    
612            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
613            public int getPagesCount(long nodeId, java.lang.String title, boolean head)
614                    throws com.liferay.portal.kernel.exception.SystemException;
615    
616            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
617            public int getPagesCount(java.lang.String format)
618                    throws com.liferay.portal.kernel.exception.SystemException;
619    
620            /**
621            * @deprecated As of 6.2.0, replaced by {@link #getRecentChanges(long, long,
622            int, int)}
623            */
624            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
625            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getRecentChanges(
626                    long nodeId, int start, int end)
627                    throws com.liferay.portal.kernel.exception.PortalException,
628                            com.liferay.portal.kernel.exception.SystemException;
629    
630            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
631            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getRecentChanges(
632                    long groupId, long nodeId, int start, int end)
633                    throws com.liferay.portal.kernel.exception.SystemException;
634    
635            /**
636            * @deprecated As of 6.2.0, replaced by {@link #getRecentChangesCount(long,
637            long)}
638            */
639            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
640            public int getRecentChangesCount(long nodeId)
641                    throws com.liferay.portal.kernel.exception.PortalException,
642                            com.liferay.portal.kernel.exception.SystemException;
643    
644            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
645            public int getRecentChangesCount(long groupId, long nodeId)
646                    throws com.liferay.portal.kernel.exception.SystemException;
647    
648            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
649            public java.lang.String[] getTempPageAttachmentNames(long groupId,
650                    long userId, java.lang.String tempFolderName)
651                    throws com.liferay.portal.kernel.exception.PortalException,
652                            com.liferay.portal.kernel.exception.SystemException;
653    
654            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
655            public boolean hasDraftPage(long nodeId, java.lang.String title)
656                    throws com.liferay.portal.kernel.exception.SystemException;
657    
658            public void movePage(long userId, long nodeId, java.lang.String title,
659                    java.lang.String newTitle, boolean strict,
660                    com.liferay.portal.service.ServiceContext serviceContext)
661                    throws com.liferay.portal.kernel.exception.PortalException,
662                            com.liferay.portal.kernel.exception.SystemException;
663    
664            public void movePage(long userId, long nodeId, java.lang.String title,
665                    java.lang.String newTitle,
666                    com.liferay.portal.service.ServiceContext serviceContext)
667                    throws com.liferay.portal.kernel.exception.PortalException,
668                            com.liferay.portal.kernel.exception.SystemException;
669    
670            public com.liferay.portal.kernel.repository.model.FileEntry movePageAttachmentToTrash(
671                    long userId, long nodeId, java.lang.String title,
672                    java.lang.String fileName)
673                    throws com.liferay.portal.kernel.exception.PortalException,
674                            com.liferay.portal.kernel.exception.SystemException;
675    
676            public com.liferay.portlet.wiki.model.WikiPage movePageToTrash(
677                    long userId, long nodeId, java.lang.String title)
678                    throws com.liferay.portal.kernel.exception.PortalException,
679                            com.liferay.portal.kernel.exception.SystemException;
680    
681            public com.liferay.portlet.wiki.model.WikiPage movePageToTrash(
682                    long userId, long nodeId, java.lang.String title, double version)
683                    throws com.liferay.portal.kernel.exception.PortalException,
684                            com.liferay.portal.kernel.exception.SystemException;
685    
686            public com.liferay.portlet.wiki.model.WikiPage movePageToTrash(
687                    long userId, com.liferay.portlet.wiki.model.WikiPage page)
688                    throws com.liferay.portal.kernel.exception.PortalException,
689                            com.liferay.portal.kernel.exception.SystemException;
690    
691            public void restorePageAttachmentFromTrash(long userId, long nodeId,
692                    java.lang.String title, java.lang.String fileName)
693                    throws com.liferay.portal.kernel.exception.PortalException,
694                            com.liferay.portal.kernel.exception.SystemException;
695    
696            public void restorePageFromTrash(long userId,
697                    com.liferay.portlet.wiki.model.WikiPage page)
698                    throws com.liferay.portal.kernel.exception.PortalException,
699                            com.liferay.portal.kernel.exception.SystemException;
700    
701            public com.liferay.portlet.wiki.model.WikiPage revertPage(long userId,
702                    long nodeId, java.lang.String title, double version,
703                    com.liferay.portal.service.ServiceContext serviceContext)
704                    throws com.liferay.portal.kernel.exception.PortalException,
705                            com.liferay.portal.kernel.exception.SystemException;
706    
707            public void subscribePage(long userId, long nodeId, java.lang.String title)
708                    throws com.liferay.portal.kernel.exception.PortalException,
709                            com.liferay.portal.kernel.exception.SystemException;
710    
711            public void unsubscribePage(long userId, long nodeId, java.lang.String title)
712                    throws com.liferay.portal.kernel.exception.PortalException,
713                            com.liferay.portal.kernel.exception.SystemException;
714    
715            public void updateAsset(long userId,
716                    com.liferay.portlet.wiki.model.WikiPage page, long[] assetCategoryIds,
717                    java.lang.String[] assetTagNames, long[] assetLinkEntryIds)
718                    throws com.liferay.portal.kernel.exception.PortalException,
719                            com.liferay.portal.kernel.exception.SystemException;
720    
721            public com.liferay.portlet.wiki.model.WikiPage updatePage(long userId,
722                    long nodeId, java.lang.String title, double version,
723                    java.lang.String content, java.lang.String summary, boolean minorEdit,
724                    java.lang.String format, java.lang.String parentTitle,
725                    java.lang.String redirectTitle,
726                    com.liferay.portal.service.ServiceContext serviceContext)
727                    throws com.liferay.portal.kernel.exception.PortalException,
728                            com.liferay.portal.kernel.exception.SystemException;
729    
730            public com.liferay.portlet.wiki.model.WikiPage updateStatus(long userId,
731                    long resourcePrimKey, int status,
732                    com.liferay.portal.service.ServiceContext serviceContext)
733                    throws com.liferay.portal.kernel.exception.PortalException,
734                            com.liferay.portal.kernel.exception.SystemException;
735    
736            public com.liferay.portlet.wiki.model.WikiPage updateStatus(long userId,
737                    com.liferay.portlet.wiki.model.WikiPage page, int status,
738                    com.liferay.portal.service.ServiceContext serviceContext)
739                    throws com.liferay.portal.kernel.exception.PortalException,
740                            com.liferay.portal.kernel.exception.SystemException;
741    
742            public void validateTitle(java.lang.String title)
743                    throws com.liferay.portal.kernel.exception.PortalException;
744    }