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.messageboards.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 MBThread. 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 MBThreadLocalServiceUtil
037     * @see com.liferay.portlet.messageboards.service.base.MBThreadLocalServiceBaseImpl
038     * @see com.liferay.portlet.messageboards.service.impl.MBThreadLocalServiceImpl
039     * @generated
040     */
041    @ProviderType
042    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
043            PortalException.class, SystemException.class})
044    public interface MBThreadLocalService extends BaseLocalService,
045            PersistedModelLocalService {
046            /*
047             * NOTE FOR DEVELOPERS:
048             *
049             * Never modify or reference this interface directly. Always use {@link MBThreadLocalServiceUtil} to access the message boards thread local service. Add custom service methods to {@link com.liferay.portlet.messageboards.service.impl.MBThreadLocalServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
050             */
051    
052            /**
053            * Adds the message boards thread to the database. Also notifies the appropriate model listeners.
054            *
055            * @param mbThread the message boards thread
056            * @return the message boards thread that was added
057            */
058            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
059            public com.liferay.portlet.messageboards.model.MBThread addMBThread(
060                    com.liferay.portlet.messageboards.model.MBThread mbThread);
061    
062            public com.liferay.portlet.messageboards.model.MBThread addThread(
063                    long categoryId,
064                    com.liferay.portlet.messageboards.model.MBMessage message,
065                    com.liferay.portal.service.ServiceContext serviceContext)
066                    throws com.liferay.portal.kernel.exception.PortalException;
067    
068            /**
069            * Creates a new message boards thread with the primary key. Does not add the message boards thread to the database.
070            *
071            * @param threadId the primary key for the new message boards thread
072            * @return the new message boards thread
073            */
074            public com.liferay.portlet.messageboards.model.MBThread createMBThread(
075                    long threadId);
076    
077            /**
078            * Deletes the message boards thread from the database. Also notifies the appropriate model listeners.
079            *
080            * @param mbThread the message boards thread
081            * @return the message boards thread that was removed
082            */
083            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
084            public com.liferay.portlet.messageboards.model.MBThread deleteMBThread(
085                    com.liferay.portlet.messageboards.model.MBThread mbThread);
086    
087            /**
088            * Deletes the message boards thread with the primary key from the database. Also notifies the appropriate model listeners.
089            *
090            * @param threadId the primary key of the message boards thread
091            * @return the message boards thread that was removed
092            * @throws PortalException if a message boards thread with the primary key could not be found
093            */
094            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
095            public com.liferay.portlet.messageboards.model.MBThread deleteMBThread(
096                    long threadId)
097                    throws com.liferay.portal.kernel.exception.PortalException;
098    
099            /**
100            * @throws PortalException
101            */
102            @Override
103            public com.liferay.portal.model.PersistedModel deletePersistedModel(
104                    com.liferay.portal.model.PersistedModel persistedModel)
105                    throws com.liferay.portal.kernel.exception.PortalException;
106    
107            @com.liferay.portal.kernel.systemevent.SystemEvent(action = SystemEventConstants.ACTION_SKIP, type = SystemEventConstants.TYPE_DELETE)
108            public void deleteThread(
109                    com.liferay.portlet.messageboards.model.MBThread thread)
110                    throws com.liferay.portal.kernel.exception.PortalException;
111    
112            public void deleteThread(long threadId)
113                    throws com.liferay.portal.kernel.exception.PortalException;
114    
115            public void deleteThreads(long groupId, long categoryId)
116                    throws com.liferay.portal.kernel.exception.PortalException;
117    
118            public void deleteThreads(long groupId, long categoryId,
119                    boolean includeTrashedEntries)
120                    throws com.liferay.portal.kernel.exception.PortalException;
121    
122            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
123    
124            /**
125            * Performs a dynamic query on the database and returns the matching rows.
126            *
127            * @param dynamicQuery the dynamic query
128            * @return the matching rows
129            */
130            public <T> java.util.List<T> dynamicQuery(
131                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery);
132    
133            /**
134            * Performs a dynamic query on the database and returns a range of the matching rows.
135            *
136            * <p>
137            * 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.messageboards.model.impl.MBThreadModelImpl}. 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.
138            * </p>
139            *
140            * @param dynamicQuery the dynamic query
141            * @param start the lower bound of the range of model instances
142            * @param end the upper bound of the range of model instances (not inclusive)
143            * @return the range of matching rows
144            */
145            public <T> java.util.List<T> dynamicQuery(
146                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
147                    int end);
148    
149            /**
150            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
151            *
152            * <p>
153            * 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.messageboards.model.impl.MBThreadModelImpl}. 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.
154            * </p>
155            *
156            * @param dynamicQuery the dynamic query
157            * @param start the lower bound of the range of model instances
158            * @param end the upper bound of the range of model instances (not inclusive)
159            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
160            * @return the ordered range of matching rows
161            */
162            public <T> java.util.List<T> dynamicQuery(
163                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
164                    int end,
165                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator);
166    
167            /**
168            * Returns the number of rows matching the dynamic query.
169            *
170            * @param dynamicQuery the dynamic query
171            * @return the number of rows matching the dynamic query
172            */
173            public long dynamicQueryCount(
174                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery);
175    
176            /**
177            * Returns the number of rows matching the dynamic query.
178            *
179            * @param dynamicQuery the dynamic query
180            * @param projection the projection to apply to the query
181            * @return the number of rows matching the dynamic query
182            */
183            public long dynamicQueryCount(
184                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
185                    com.liferay.portal.kernel.dao.orm.Projection projection);
186    
187            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
188            public com.liferay.portlet.messageboards.model.MBThread fetchMBThread(
189                    long threadId);
190    
191            /**
192            * Returns the message boards thread matching the UUID and group.
193            *
194            * @param uuid the message boards thread's UUID
195            * @param groupId the primary key of the group
196            * @return the matching message boards thread, or <code>null</code> if a matching message boards thread could not be found
197            */
198            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
199            public com.liferay.portlet.messageboards.model.MBThread fetchMBThreadByUuidAndGroupId(
200                    java.lang.String uuid, long groupId);
201    
202            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
203            public com.liferay.portlet.messageboards.model.MBThread fetchThread(
204                    long threadId);
205    
206            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
207            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery();
208    
209            /**
210            * Returns the Spring bean ID for this bean.
211            *
212            * @return the Spring bean ID for this bean
213            */
214            public java.lang.String getBeanIdentifier();
215    
216            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
217            public int getCategoryThreadsCount(long groupId, long categoryId, int status);
218    
219            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
220            public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
221                    com.liferay.portal.kernel.lar.PortletDataContext portletDataContext);
222    
223            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
224            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
225                    long groupId,
226                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBThread> queryDefinition);
227    
228            /**
229            * @deprecated As of 6.2.0, replaced by {@link #getGroupThreads(long,
230            QueryDefinition)}
231            */
232            @java.lang.Deprecated
233            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
234            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
235                    long groupId, int status, int start, int end);
236    
237            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
238            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
239                    long groupId, long userId,
240                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBThread> queryDefinition);
241    
242            /**
243            * @deprecated As of 6.2.0, replaced by {@link #getGroupThreads(long, long,
244            QueryDefinition)}
245            */
246            @java.lang.Deprecated
247            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
248            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
249                    long groupId, long userId, int status, int start, int end);
250    
251            /**
252            * @deprecated As of 6.2.0, replaced by {@link #getGroupThreads(long, long,
253            boolean, boolean, QueryDefinition)}
254            */
255            @java.lang.Deprecated
256            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
257            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
258                    long groupId, long userId, int status, boolean subscribed,
259                    boolean includeAnonymous, int start, int end);
260    
261            /**
262            * @deprecated As of 6.2.0, replaced by {@link #getGroupThreads(long, long,
263            boolean, QueryDefinition)}
264            */
265            @java.lang.Deprecated
266            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
267            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
268                    long groupId, long userId, int status, boolean subscribed, int start,
269                    int end);
270    
271            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
272            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
273                    long groupId, long userId, boolean subscribed,
274                    boolean includeAnonymous,
275                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBThread> queryDefinition);
276    
277            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
278            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
279                    long groupId, long userId, boolean subscribed,
280                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBThread> queryDefinition);
281    
282            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
283            public int getGroupThreadsCount(long groupId,
284                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBThread> queryDefinition);
285    
286            /**
287            * @deprecated As of 6.2.0, replaced by {@link #getGroupThreadsCount(long,
288            QueryDefinition)}
289            */
290            @java.lang.Deprecated
291            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
292            public int getGroupThreadsCount(long groupId, int status);
293    
294            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
295            public int getGroupThreadsCount(long groupId, long userId,
296                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBThread> queryDefinition);
297    
298            /**
299            * @deprecated As of 6.2.0, replaced by {@link #getGroupThreadsCount(long,
300            long, QueryDefinition)}
301            */
302            @java.lang.Deprecated
303            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
304            public int getGroupThreadsCount(long groupId, long userId, int status);
305    
306            /**
307            * @deprecated As of 6.2.0, replaced by {@link #getGroupThreadsCount(long,
308            long, boolean, QueryDefinition)}
309            */
310            @java.lang.Deprecated
311            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
312            public int getGroupThreadsCount(long groupId, long userId, int status,
313                    boolean subscribed);
314    
315            /**
316            * @deprecated As of 6.2.0, replaced by {@link #getGroupThreadsCount(long,
317            long, boolean, boolean, QueryDefinition)}
318            */
319            @java.lang.Deprecated
320            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
321            public int getGroupThreadsCount(long groupId, long userId, int status,
322                    boolean subscribed, boolean includeAnonymous);
323    
324            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
325            public int getGroupThreadsCount(long groupId, long userId,
326                    boolean subscribed, boolean includeAnonymous,
327                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBThread> queryDefinition);
328    
329            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
330            public int getGroupThreadsCount(long groupId, long userId,
331                    boolean subscribed,
332                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBThread> queryDefinition);
333    
334            /**
335            * Returns the message boards thread with the primary key.
336            *
337            * @param threadId the primary key of the message boards thread
338            * @return the message boards thread
339            * @throws PortalException if a message boards thread with the primary key could not be found
340            */
341            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
342            public com.liferay.portlet.messageboards.model.MBThread getMBThread(
343                    long threadId)
344                    throws com.liferay.portal.kernel.exception.PortalException;
345    
346            /**
347            * Returns the message boards thread matching the UUID and group.
348            *
349            * @param uuid the message boards thread's UUID
350            * @param groupId the primary key of the group
351            * @return the matching message boards thread
352            * @throws PortalException if a matching message boards thread could not be found
353            */
354            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
355            public com.liferay.portlet.messageboards.model.MBThread getMBThreadByUuidAndGroupId(
356                    java.lang.String uuid, long groupId)
357                    throws com.liferay.portal.kernel.exception.PortalException;
358    
359            /**
360            * Returns a range of all the message boards threads.
361            *
362            * <p>
363            * 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.messageboards.model.impl.MBThreadModelImpl}. 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.
364            * </p>
365            *
366            * @param start the lower bound of the range of message boards threads
367            * @param end the upper bound of the range of message boards threads (not inclusive)
368            * @return the range of message boards threads
369            */
370            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
371            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getMBThreads(
372                    int start, int end);
373    
374            /**
375            * Returns all the message boards threads matching the UUID and company.
376            *
377            * @param uuid the UUID of the message boards threads
378            * @param companyId the primary key of the company
379            * @return the matching message boards threads, or an empty list if no matches were found
380            */
381            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
382            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getMBThreadsByUuidAndCompanyId(
383                    java.lang.String uuid, long companyId);
384    
385            /**
386            * Returns a range of message boards threads matching the UUID and company.
387            *
388            * @param uuid the UUID of the message boards threads
389            * @param companyId the primary key of the company
390            * @param start the lower bound of the range of message boards threads
391            * @param end the upper bound of the range of message boards threads (not inclusive)
392            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
393            * @return the range of matching message boards threads, or an empty list if no matches were found
394            */
395            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
396            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getMBThreadsByUuidAndCompanyId(
397                    java.lang.String uuid, long companyId, int start, int end,
398                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.messageboards.model.MBThread> orderByComparator);
399    
400            /**
401            * Returns the number of message boards threads.
402            *
403            * @return the number of message boards threads
404            */
405            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
406            public int getMBThreadsCount();
407    
408            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
409            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getNoAssetThreads();
410    
411            @Override
412            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
413            public com.liferay.portal.model.PersistedModel getPersistedModel(
414                    java.io.Serializable primaryKeyObj)
415                    throws com.liferay.portal.kernel.exception.PortalException;
416    
417            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
418            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getPriorityThreads(
419                    long categoryId, double priority)
420                    throws com.liferay.portal.kernel.exception.PortalException;
421    
422            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
423            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getPriorityThreads(
424                    long categoryId, double priority, boolean inherit)
425                    throws com.liferay.portal.kernel.exception.PortalException;
426    
427            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
428            public com.liferay.portlet.messageboards.model.MBThread getThread(
429                    long threadId)
430                    throws com.liferay.portal.kernel.exception.PortalException;
431    
432            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
433            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getThreads(
434                    long groupId, long categoryId, int status, int start, int end);
435    
436            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
437            public int getThreadsCount(long groupId, long categoryId, int status);
438    
439            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
440            public boolean hasAnswerMessage(long threadId);
441    
442            @com.liferay.portal.kernel.increment.BufferedIncrement(configuration = "MBThread", incrementClass = com.liferay.portal.kernel.increment.NumberIncrement.class)
443            public void incrementViewCounter(long threadId, int increment)
444                    throws com.liferay.portal.kernel.exception.PortalException;
445    
446            public void moveDependentsToTrash(long groupId, long threadId,
447                    long trashEntryId)
448                    throws com.liferay.portal.kernel.exception.PortalException;
449    
450            public com.liferay.portlet.messageboards.model.MBThread moveThread(
451                    long groupId, long categoryId, long threadId)
452                    throws com.liferay.portal.kernel.exception.PortalException;
453    
454            public com.liferay.portlet.messageboards.model.MBThread moveThreadFromTrash(
455                    long userId, long categoryId, long threadId)
456                    throws com.liferay.portal.kernel.exception.PortalException;
457    
458            public com.liferay.portlet.messageboards.model.MBThread moveThreadToTrash(
459                    long userId, com.liferay.portlet.messageboards.model.MBThread thread)
460                    throws com.liferay.portal.kernel.exception.PortalException;
461    
462            public com.liferay.portlet.messageboards.model.MBThread moveThreadToTrash(
463                    long userId, long threadId)
464                    throws com.liferay.portal.kernel.exception.PortalException;
465    
466            public void moveThreadsToTrash(long groupId, long userId)
467                    throws com.liferay.portal.kernel.exception.PortalException;
468    
469            public void restoreDependentsFromTrash(long groupId, long threadId)
470                    throws com.liferay.portal.kernel.exception.PortalException;
471    
472            /**
473            * @deprecated As of 7.0.0, replaced by {@link
474            #restoreDependentsFromTrash(long, long)}
475            */
476            @java.lang.Deprecated
477            public void restoreDependentsFromTrash(long groupId, long threadId,
478                    long trashEntryId)
479                    throws com.liferay.portal.kernel.exception.PortalException;
480    
481            public void restoreThreadFromTrash(long userId, long threadId)
482                    throws com.liferay.portal.kernel.exception.PortalException;
483    
484            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
485            public com.liferay.portal.kernel.search.Hits search(long groupId,
486                    long userId, long creatorUserId, long startDate, long endDate,
487                    int status, int start, int end)
488                    throws com.liferay.portal.kernel.exception.PortalException;
489    
490            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
491            public com.liferay.portal.kernel.search.Hits search(long groupId,
492                    long userId, long creatorUserId, int status, int start, int end)
493                    throws com.liferay.portal.kernel.exception.PortalException;
494    
495            /**
496            * Sets the Spring bean ID for this bean.
497            *
498            * @param beanIdentifier the Spring bean ID for this bean
499            */
500            public void setBeanIdentifier(java.lang.String beanIdentifier);
501    
502            public com.liferay.portlet.messageboards.model.MBThread splitThread(
503                    long messageId, java.lang.String subject,
504                    com.liferay.portal.service.ServiceContext serviceContext)
505                    throws com.liferay.portal.kernel.exception.PortalException;
506    
507            /**
508            * Updates the message boards thread in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
509            *
510            * @param mbThread the message boards thread
511            * @return the message boards thread that was updated
512            */
513            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
514            public com.liferay.portlet.messageboards.model.MBThread updateMBThread(
515                    com.liferay.portlet.messageboards.model.MBThread mbThread);
516    
517            public void updateQuestion(long threadId, boolean question)
518                    throws com.liferay.portal.kernel.exception.PortalException;
519    
520            public com.liferay.portlet.messageboards.model.MBThread updateStatus(
521                    long userId, long threadId, int status)
522                    throws com.liferay.portal.kernel.exception.PortalException;
523    
524            /**
525            * @deprecated As of 6.2.0, replaced by {@link #incrementViewCounter(long,
526            int)}
527            */
528            @java.lang.Deprecated
529            public com.liferay.portlet.messageboards.model.MBThread updateThread(
530                    long threadId, int viewCount)
531                    throws com.liferay.portal.kernel.exception.PortalException;
532    }