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