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