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, 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, double version)
439                    throws com.liferay.portal.kernel.exception.SystemException;
440    
441            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
442            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getChildren(
443                    long nodeId, boolean head, java.lang.String parentTitle)
444                    throws com.liferay.portal.kernel.exception.SystemException;
445    
446            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
447            public com.liferay.portlet.wiki.model.WikiPage getDraftPage(long nodeId,
448                    java.lang.String title)
449                    throws com.liferay.portal.kernel.exception.PortalException,
450                            com.liferay.portal.kernel.exception.SystemException;
451    
452            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
453            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getIncomingLinks(
454                    long nodeId, java.lang.String title)
455                    throws com.liferay.portal.kernel.exception.PortalException,
456                            com.liferay.portal.kernel.exception.SystemException;
457    
458            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
459            public com.liferay.portlet.wiki.model.WikiPage getLatestPage(
460                    long resourcePrimKey, int status, boolean preferApproved)
461                    throws com.liferay.portal.kernel.exception.PortalException,
462                            com.liferay.portal.kernel.exception.SystemException;
463    
464            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
465            public com.liferay.portlet.wiki.model.WikiPage getLatestPage(
466                    long resourcePrimKey, long nodeId, int status, boolean preferApproved)
467                    throws com.liferay.portal.kernel.exception.PortalException,
468                            com.liferay.portal.kernel.exception.SystemException;
469    
470            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
471            public com.liferay.portlet.wiki.model.WikiPage getLatestPage(long nodeId,
472                    java.lang.String title, int status, boolean preferApproved)
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> getNoAssetPages()
478                    throws com.liferay.portal.kernel.exception.SystemException;
479    
480            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
481            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOrphans(
482                    long nodeId)
483                    throws com.liferay.portal.kernel.exception.PortalException,
484                            com.liferay.portal.kernel.exception.SystemException;
485    
486            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
487            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOutgoingLinks(
488                    long nodeId, java.lang.String title)
489                    throws com.liferay.portal.kernel.exception.PortalException,
490                            com.liferay.portal.kernel.exception.SystemException;
491    
492            public com.liferay.portlet.wiki.model.WikiPage getPage(long resourcePrimKey)
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(
497                    long resourcePrimKey, 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)
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, java.lang.Boolean head)
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, double version)
513                    throws com.liferay.portal.kernel.exception.PortalException,
514                            com.liferay.portal.kernel.exception.SystemException;
515    
516            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
517            public com.liferay.portlet.wiki.model.WikiPage getPageByPageId(long pageId)
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.WikiPageDisplay getPageDisplay(
523                    long nodeId, java.lang.String title,
524                    javax.portlet.PortletURL viewPageURL,
525                    javax.portlet.PortletURL editPageURL,
526                    java.lang.String attachmentURLPrefix)
527                    throws com.liferay.portal.kernel.exception.PortalException,
528                            com.liferay.portal.kernel.exception.SystemException;
529    
530            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
531            public com.liferay.portlet.wiki.model.WikiPageDisplay getPageDisplay(
532                    com.liferay.portlet.wiki.model.WikiPage page,
533                    javax.portlet.PortletURL viewPageURL,
534                    javax.portlet.PortletURL editPageURL,
535                    java.lang.String attachmentURLPrefix)
536                    throws com.liferay.portal.kernel.exception.PortalException,
537                            com.liferay.portal.kernel.exception.SystemException;
538    
539            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
540            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
541                    long nodeId, boolean head, int start, int end)
542                    throws com.liferay.portal.kernel.exception.SystemException;
543    
544            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
545            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
546                    long nodeId, boolean head, int status, 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                    com.liferay.portal.kernel.util.OrderByComparator obc)
553                    throws com.liferay.portal.kernel.exception.SystemException;
554    
555            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
556            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
557                    long nodeId, boolean head, int start, int end,
558                    com.liferay.portal.kernel.util.OrderByComparator obc)
559                    throws com.liferay.portal.kernel.exception.SystemException;
560    
561            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
562            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
563                    long nodeId, int start, int end)
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                    com.liferay.portal.kernel.util.OrderByComparator obc)
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 resourcePrimKey, long nodeId, int status)
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 userId, long nodeId, int status, int start, int end)
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 nodeId, java.lang.String title, boolean head, 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, 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                    com.liferay.portal.kernel.util.OrderByComparator obc)
596                    throws com.liferay.portal.kernel.exception.SystemException;
597    
598            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
599            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
600                    java.lang.String format)
601                    throws com.liferay.portal.kernel.exception.SystemException;
602    
603            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
604            public int getPagesCount(long nodeId)
605                    throws com.liferay.portal.kernel.exception.SystemException;
606    
607            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
608            public int getPagesCount(long nodeId, boolean head)
609                    throws com.liferay.portal.kernel.exception.SystemException;
610    
611            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
612            public int getPagesCount(long nodeId, boolean head, int status)
613                    throws com.liferay.portal.kernel.exception.SystemException;
614    
615            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
616            public int getPagesCount(long nodeId, int status)
617                    throws com.liferay.portal.kernel.exception.SystemException;
618    
619            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
620            public int getPagesCount(long userId, long nodeId, int status)
621                    throws com.liferay.portal.kernel.exception.SystemException;
622    
623            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
624            public int getPagesCount(long nodeId, java.lang.String title)
625                    throws com.liferay.portal.kernel.exception.SystemException;
626    
627            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
628            public int getPagesCount(long nodeId, java.lang.String title, boolean head)
629                    throws com.liferay.portal.kernel.exception.SystemException;
630    
631            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
632            public int getPagesCount(java.lang.String format)
633                    throws com.liferay.portal.kernel.exception.SystemException;
634    
635            /**
636            * @deprecated As of 6.2.0, replaced by {@link #getRecentChanges(long, long,
637            int, int)}
638            */
639            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
640            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getRecentChanges(
641                    long nodeId, int start, int end)
642                    throws com.liferay.portal.kernel.exception.PortalException,
643                            com.liferay.portal.kernel.exception.SystemException;
644    
645            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
646            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getRecentChanges(
647                    long groupId, long nodeId, int start, int end)
648                    throws com.liferay.portal.kernel.exception.SystemException;
649    
650            /**
651            * @deprecated As of 6.2.0, replaced by {@link #getRecentChangesCount(long,
652            long)}
653            */
654            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
655            public int getRecentChangesCount(long nodeId)
656                    throws com.liferay.portal.kernel.exception.PortalException,
657                            com.liferay.portal.kernel.exception.SystemException;
658    
659            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
660            public int getRecentChangesCount(long groupId, long nodeId)
661                    throws com.liferay.portal.kernel.exception.SystemException;
662    
663            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
664            public java.lang.String[] getTempPageAttachmentNames(long groupId,
665                    long userId, java.lang.String tempFolderName)
666                    throws com.liferay.portal.kernel.exception.PortalException,
667                            com.liferay.portal.kernel.exception.SystemException;
668    
669            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
670            public boolean hasDraftPage(long nodeId, java.lang.String title)
671                    throws com.liferay.portal.kernel.exception.SystemException;
672    
673            public void movePage(long userId, long nodeId, java.lang.String title,
674                    java.lang.String newTitle, boolean strict,
675                    com.liferay.portal.service.ServiceContext serviceContext)
676                    throws com.liferay.portal.kernel.exception.PortalException,
677                            com.liferay.portal.kernel.exception.SystemException;
678    
679            public void movePage(long userId, long nodeId, java.lang.String title,
680                    java.lang.String newTitle,
681                    com.liferay.portal.service.ServiceContext serviceContext)
682                    throws com.liferay.portal.kernel.exception.PortalException,
683                            com.liferay.portal.kernel.exception.SystemException;
684    
685            public com.liferay.portal.kernel.repository.model.FileEntry movePageAttachmentToTrash(
686                    long userId, long nodeId, java.lang.String title,
687                    java.lang.String fileName)
688                    throws com.liferay.portal.kernel.exception.PortalException,
689                            com.liferay.portal.kernel.exception.SystemException;
690    
691            public com.liferay.portlet.wiki.model.WikiPage movePageToTrash(
692                    long userId, long nodeId, java.lang.String title)
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, double version)
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, com.liferay.portlet.wiki.model.WikiPage page)
703                    throws com.liferay.portal.kernel.exception.PortalException,
704                            com.liferay.portal.kernel.exception.SystemException;
705    
706            public void restorePageAttachmentFromTrash(long userId, long nodeId,
707                    java.lang.String title, java.lang.String fileName)
708                    throws com.liferay.portal.kernel.exception.PortalException,
709                            com.liferay.portal.kernel.exception.SystemException;
710    
711            public void restorePageFromTrash(long userId,
712                    com.liferay.portlet.wiki.model.WikiPage page)
713                    throws com.liferay.portal.kernel.exception.PortalException,
714                            com.liferay.portal.kernel.exception.SystemException;
715    
716            public com.liferay.portlet.wiki.model.WikiPage revertPage(long userId,
717                    long nodeId, java.lang.String title, double version,
718                    com.liferay.portal.service.ServiceContext serviceContext)
719                    throws com.liferay.portal.kernel.exception.PortalException,
720                            com.liferay.portal.kernel.exception.SystemException;
721    
722            public void subscribePage(long userId, long nodeId, java.lang.String title)
723                    throws com.liferay.portal.kernel.exception.PortalException,
724                            com.liferay.portal.kernel.exception.SystemException;
725    
726            public void unsubscribePage(long userId, long nodeId, java.lang.String title)
727                    throws com.liferay.portal.kernel.exception.PortalException,
728                            com.liferay.portal.kernel.exception.SystemException;
729    
730            public void updateAsset(long userId,
731                    com.liferay.portlet.wiki.model.WikiPage page, long[] assetCategoryIds,
732                    java.lang.String[] assetTagNames, long[] assetLinkEntryIds)
733                    throws com.liferay.portal.kernel.exception.PortalException,
734                            com.liferay.portal.kernel.exception.SystemException;
735    
736            public com.liferay.portlet.wiki.model.WikiPage updatePage(long userId,
737                    long nodeId, java.lang.String title, double version,
738                    java.lang.String content, java.lang.String summary, boolean minorEdit,
739                    java.lang.String format, java.lang.String parentTitle,
740                    java.lang.String redirectTitle,
741                    com.liferay.portal.service.ServiceContext serviceContext)
742                    throws com.liferay.portal.kernel.exception.PortalException,
743                            com.liferay.portal.kernel.exception.SystemException;
744    
745            public com.liferay.portlet.wiki.model.WikiPage updateStatus(long userId,
746                    long resourcePrimKey, int status,
747                    com.liferay.portal.service.ServiceContext serviceContext)
748                    throws com.liferay.portal.kernel.exception.PortalException,
749                            com.liferay.portal.kernel.exception.SystemException;
750    
751            public com.liferay.portlet.wiki.model.WikiPage updateStatus(long userId,
752                    com.liferay.portlet.wiki.model.WikiPage page, int status,
753                    com.liferay.portal.service.ServiceContext serviceContext)
754                    throws com.liferay.portal.kernel.exception.PortalException,
755                            com.liferay.portal.kernel.exception.SystemException;
756    
757            public void validateTitle(java.lang.String title)
758                    throws com.liferay.portal.kernel.exception.PortalException;
759    }