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