001    /**
002     * Copyright (c) 2000-2011 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    /**
018     * <p>
019     * This class is a wrapper for {@link MBThreadLocalService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       MBThreadLocalService
024     * @generated
025     */
026    public class MBThreadLocalServiceWrapper implements MBThreadLocalService {
027            public MBThreadLocalServiceWrapper(
028                    MBThreadLocalService mbThreadLocalService) {
029                    _mbThreadLocalService = mbThreadLocalService;
030            }
031    
032            /**
033            * Adds the message boards thread to the database. Also notifies the appropriate model listeners.
034            *
035            * @param mbThread the message boards thread
036            * @return the message boards thread that was added
037            * @throws SystemException if a system exception occurred
038            */
039            public com.liferay.portlet.messageboards.model.MBThread addMBThread(
040                    com.liferay.portlet.messageboards.model.MBThread mbThread)
041                    throws com.liferay.portal.kernel.exception.SystemException {
042                    return _mbThreadLocalService.addMBThread(mbThread);
043            }
044    
045            /**
046            * Creates a new message boards thread with the primary key. Does not add the message boards thread to the database.
047            *
048            * @param threadId the primary key for the new message boards thread
049            * @return the new message boards thread
050            */
051            public com.liferay.portlet.messageboards.model.MBThread createMBThread(
052                    long threadId) {
053                    return _mbThreadLocalService.createMBThread(threadId);
054            }
055    
056            /**
057            * Deletes the message boards thread with the primary key from the database. Also notifies the appropriate model listeners.
058            *
059            * @param threadId the primary key of the message boards thread
060            * @throws PortalException if a message boards thread with the primary key could not be found
061            * @throws SystemException if a system exception occurred
062            */
063            public void deleteMBThread(long threadId)
064                    throws com.liferay.portal.kernel.exception.PortalException,
065                            com.liferay.portal.kernel.exception.SystemException {
066                    _mbThreadLocalService.deleteMBThread(threadId);
067            }
068    
069            /**
070            * Deletes the message boards thread from the database. Also notifies the appropriate model listeners.
071            *
072            * @param mbThread the message boards thread
073            * @throws SystemException if a system exception occurred
074            */
075            public void deleteMBThread(
076                    com.liferay.portlet.messageboards.model.MBThread mbThread)
077                    throws com.liferay.portal.kernel.exception.SystemException {
078                    _mbThreadLocalService.deleteMBThread(mbThread);
079            }
080    
081            /**
082            * Performs a dynamic query on the database and returns the matching rows.
083            *
084            * @param dynamicQuery the dynamic query
085            * @return the matching rows
086            * @throws SystemException if a system exception occurred
087            */
088            @SuppressWarnings("rawtypes")
089            public java.util.List dynamicQuery(
090                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
091                    throws com.liferay.portal.kernel.exception.SystemException {
092                    return _mbThreadLocalService.dynamicQuery(dynamicQuery);
093            }
094    
095            /**
096            * Performs a dynamic query on the database and returns a range of the matching rows.
097            *
098            * <p>
099            * 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.
100            * </p>
101            *
102            * @param dynamicQuery the dynamic query
103            * @param start the lower bound of the range of model instances
104            * @param end the upper bound of the range of model instances (not inclusive)
105            * @return the range of matching rows
106            * @throws SystemException if a system exception occurred
107            */
108            @SuppressWarnings("rawtypes")
109            public java.util.List dynamicQuery(
110                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
111                    int end) throws com.liferay.portal.kernel.exception.SystemException {
112                    return _mbThreadLocalService.dynamicQuery(dynamicQuery, start, end);
113            }
114    
115            /**
116            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
117            *
118            * <p>
119            * 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.
120            * </p>
121            *
122            * @param dynamicQuery the dynamic query
123            * @param start the lower bound of the range of model instances
124            * @param end the upper bound of the range of model instances (not inclusive)
125            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
126            * @return the ordered range of matching rows
127            * @throws SystemException if a system exception occurred
128            */
129            @SuppressWarnings("rawtypes")
130            public java.util.List dynamicQuery(
131                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
132                    int end,
133                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
134                    throws com.liferay.portal.kernel.exception.SystemException {
135                    return _mbThreadLocalService.dynamicQuery(dynamicQuery, start, end,
136                            orderByComparator);
137            }
138    
139            /**
140            * Returns the number of rows that match the dynamic query.
141            *
142            * @param dynamicQuery the dynamic query
143            * @return the number of rows that match the dynamic query
144            * @throws SystemException if a system exception occurred
145            */
146            public long dynamicQueryCount(
147                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
148                    throws com.liferay.portal.kernel.exception.SystemException {
149                    return _mbThreadLocalService.dynamicQueryCount(dynamicQuery);
150            }
151    
152            /**
153            * Returns the message boards thread with the primary key.
154            *
155            * @param threadId the primary key of the message boards thread
156            * @return the message boards thread
157            * @throws PortalException if a message boards thread with the primary key could not be found
158            * @throws SystemException if a system exception occurred
159            */
160            public com.liferay.portlet.messageboards.model.MBThread getMBThread(
161                    long threadId)
162                    throws com.liferay.portal.kernel.exception.PortalException,
163                            com.liferay.portal.kernel.exception.SystemException {
164                    return _mbThreadLocalService.getMBThread(threadId);
165            }
166    
167            public com.liferay.portal.model.PersistedModel getPersistedModel(
168                    java.io.Serializable primaryKeyObj)
169                    throws com.liferay.portal.kernel.exception.PortalException,
170                            com.liferay.portal.kernel.exception.SystemException {
171                    return _mbThreadLocalService.getPersistedModel(primaryKeyObj);
172            }
173    
174            /**
175            * Returns a range of all the message boards threads.
176            *
177            * <p>
178            * 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.
179            * </p>
180            *
181            * @param start the lower bound of the range of message boards threads
182            * @param end the upper bound of the range of message boards threads (not inclusive)
183            * @return the range of message boards threads
184            * @throws SystemException if a system exception occurred
185            */
186            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getMBThreads(
187                    int start, int end)
188                    throws com.liferay.portal.kernel.exception.SystemException {
189                    return _mbThreadLocalService.getMBThreads(start, end);
190            }
191    
192            /**
193            * Returns the number of message boards threads.
194            *
195            * @return the number of message boards threads
196            * @throws SystemException if a system exception occurred
197            */
198            public int getMBThreadsCount()
199                    throws com.liferay.portal.kernel.exception.SystemException {
200                    return _mbThreadLocalService.getMBThreadsCount();
201            }
202    
203            /**
204            * Updates the message boards thread in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
205            *
206            * @param mbThread the message boards thread
207            * @return the message boards thread that was updated
208            * @throws SystemException if a system exception occurred
209            */
210            public com.liferay.portlet.messageboards.model.MBThread updateMBThread(
211                    com.liferay.portlet.messageboards.model.MBThread mbThread)
212                    throws com.liferay.portal.kernel.exception.SystemException {
213                    return _mbThreadLocalService.updateMBThread(mbThread);
214            }
215    
216            /**
217            * Updates the message boards thread in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
218            *
219            * @param mbThread the message boards thread
220            * @param merge whether to merge the message boards thread with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
221            * @return the message boards thread that was updated
222            * @throws SystemException if a system exception occurred
223            */
224            public com.liferay.portlet.messageboards.model.MBThread updateMBThread(
225                    com.liferay.portlet.messageboards.model.MBThread mbThread, boolean merge)
226                    throws com.liferay.portal.kernel.exception.SystemException {
227                    return _mbThreadLocalService.updateMBThread(mbThread, merge);
228            }
229    
230            /**
231            * Returns the Spring bean ID for this bean.
232            *
233            * @return the Spring bean ID for this bean
234            */
235            public java.lang.String getBeanIdentifier() {
236                    return _mbThreadLocalService.getBeanIdentifier();
237            }
238    
239            /**
240            * Sets the Spring bean ID for this bean.
241            *
242            * @param beanIdentifier the Spring bean ID for this bean
243            */
244            public void setBeanIdentifier(java.lang.String beanIdentifier) {
245                    _mbThreadLocalService.setBeanIdentifier(beanIdentifier);
246            }
247    
248            public com.liferay.portlet.messageboards.model.MBThread addThread(
249                    long categoryId,
250                    com.liferay.portlet.messageboards.model.MBMessage message)
251                    throws com.liferay.portal.kernel.exception.PortalException,
252                            com.liferay.portal.kernel.exception.SystemException {
253                    return _mbThreadLocalService.addThread(categoryId, message);
254            }
255    
256            public void deleteThread(long threadId)
257                    throws com.liferay.portal.kernel.exception.PortalException,
258                            com.liferay.portal.kernel.exception.SystemException {
259                    _mbThreadLocalService.deleteThread(threadId);
260            }
261    
262            public void deleteThread(
263                    com.liferay.portlet.messageboards.model.MBThread thread)
264                    throws com.liferay.portal.kernel.exception.PortalException,
265                            com.liferay.portal.kernel.exception.SystemException {
266                    _mbThreadLocalService.deleteThread(thread);
267            }
268    
269            public void deleteThreads(long groupId, long categoryId)
270                    throws com.liferay.portal.kernel.exception.PortalException,
271                            com.liferay.portal.kernel.exception.SystemException {
272                    _mbThreadLocalService.deleteThreads(groupId, categoryId);
273            }
274    
275            public int getCategoryThreadsCount(long groupId, long categoryId, int status)
276                    throws com.liferay.portal.kernel.exception.SystemException {
277                    return _mbThreadLocalService.getCategoryThreadsCount(groupId,
278                            categoryId, status);
279            }
280    
281            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
282                    long groupId, int status, int start, int end)
283                    throws com.liferay.portal.kernel.exception.SystemException {
284                    return _mbThreadLocalService.getGroupThreads(groupId, status, start, end);
285            }
286    
287            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
288                    long groupId, long userId, int status, boolean subscribed,
289                    boolean includeAnonymous, int start, int end)
290                    throws com.liferay.portal.kernel.exception.PortalException,
291                            com.liferay.portal.kernel.exception.SystemException {
292                    return _mbThreadLocalService.getGroupThreads(groupId, userId, status,
293                            subscribed, includeAnonymous, start, end);
294            }
295    
296            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
297                    long groupId, long userId, int status, boolean subscribed, int start,
298                    int end)
299                    throws com.liferay.portal.kernel.exception.PortalException,
300                            com.liferay.portal.kernel.exception.SystemException {
301                    return _mbThreadLocalService.getGroupThreads(groupId, userId, status,
302                            subscribed, start, end);
303            }
304    
305            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
306                    long groupId, long userId, int status, int start, int end)
307                    throws com.liferay.portal.kernel.exception.PortalException,
308                            com.liferay.portal.kernel.exception.SystemException {
309                    return _mbThreadLocalService.getGroupThreads(groupId, userId, status,
310                            start, end);
311            }
312    
313            public int getGroupThreadsCount(long groupId, int status)
314                    throws com.liferay.portal.kernel.exception.SystemException {
315                    return _mbThreadLocalService.getGroupThreadsCount(groupId, status);
316            }
317    
318            public int getGroupThreadsCount(long groupId, long userId, int status)
319                    throws com.liferay.portal.kernel.exception.SystemException {
320                    return _mbThreadLocalService.getGroupThreadsCount(groupId, userId,
321                            status);
322            }
323    
324            public int getGroupThreadsCount(long groupId, long userId, int status,
325                    boolean subscribed)
326                    throws com.liferay.portal.kernel.exception.SystemException {
327                    return _mbThreadLocalService.getGroupThreadsCount(groupId, userId,
328                            status, subscribed);
329            }
330    
331            public int getGroupThreadsCount(long groupId, long userId, int status,
332                    boolean subscribed, boolean includeAnonymous)
333                    throws com.liferay.portal.kernel.exception.SystemException {
334                    return _mbThreadLocalService.getGroupThreadsCount(groupId, userId,
335                            status, subscribed, includeAnonymous);
336            }
337    
338            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getNoAssetThreads()
339                    throws com.liferay.portal.kernel.exception.SystemException {
340                    return _mbThreadLocalService.getNoAssetThreads();
341            }
342    
343            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getPriorityThreads(
344                    long categoryId, double priority)
345                    throws com.liferay.portal.kernel.exception.PortalException,
346                            com.liferay.portal.kernel.exception.SystemException {
347                    return _mbThreadLocalService.getPriorityThreads(categoryId, priority);
348            }
349    
350            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getPriorityThreads(
351                    long categoryId, double priority, boolean inherit)
352                    throws com.liferay.portal.kernel.exception.PortalException,
353                            com.liferay.portal.kernel.exception.SystemException {
354                    return _mbThreadLocalService.getPriorityThreads(categoryId, priority,
355                            inherit);
356            }
357    
358            public com.liferay.portlet.messageboards.model.MBThread getThread(
359                    long threadId)
360                    throws com.liferay.portal.kernel.exception.PortalException,
361                            com.liferay.portal.kernel.exception.SystemException {
362                    return _mbThreadLocalService.getThread(threadId);
363            }
364    
365            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getThreads(
366                    long groupId, long categoryId, int status, int start, int end)
367                    throws com.liferay.portal.kernel.exception.SystemException {
368                    return _mbThreadLocalService.getThreads(groupId, categoryId, status,
369                            start, end);
370            }
371    
372            public int getThreadsCount(long groupId, long categoryId, int status)
373                    throws com.liferay.portal.kernel.exception.SystemException {
374                    return _mbThreadLocalService.getThreadsCount(groupId, categoryId, status);
375            }
376    
377            public boolean hasAnswerMessage(long threadId)
378                    throws com.liferay.portal.kernel.exception.SystemException {
379                    return _mbThreadLocalService.hasAnswerMessage(threadId);
380            }
381    
382            public com.liferay.portlet.messageboards.model.MBThread incrementViewCounter(
383                    long threadId, int increment)
384                    throws com.liferay.portal.kernel.exception.PortalException,
385                            com.liferay.portal.kernel.exception.SystemException {
386                    return _mbThreadLocalService.incrementViewCounter(threadId, increment);
387            }
388    
389            public com.liferay.portlet.messageboards.model.MBThread moveThread(
390                    long groupId, long categoryId, long threadId)
391                    throws com.liferay.portal.kernel.exception.PortalException,
392                            com.liferay.portal.kernel.exception.SystemException {
393                    return _mbThreadLocalService.moveThread(groupId, categoryId, threadId);
394            }
395    
396            public com.liferay.portlet.messageboards.model.MBThread splitThread(
397                    long messageId, java.lang.String subject,
398                    com.liferay.portal.service.ServiceContext serviceContext)
399                    throws com.liferay.portal.kernel.exception.PortalException,
400                            com.liferay.portal.kernel.exception.SystemException {
401                    return _mbThreadLocalService.splitThread(messageId, subject,
402                            serviceContext);
403            }
404    
405            public void updateQuestion(long threadId, boolean question)
406                    throws com.liferay.portal.kernel.exception.PortalException,
407                            com.liferay.portal.kernel.exception.SystemException {
408                    _mbThreadLocalService.updateQuestion(threadId, question);
409            }
410    
411            /**
412            * @deprecated {@link #incrementViewCounter(long, int)}
413            */
414            public com.liferay.portlet.messageboards.model.MBThread updateThread(
415                    long threadId, int viewCount)
416                    throws com.liferay.portal.kernel.exception.PortalException,
417                            com.liferay.portal.kernel.exception.SystemException {
418                    return _mbThreadLocalService.updateThread(threadId, viewCount);
419            }
420    
421            public MBThreadLocalService getWrappedMBThreadLocalService() {
422                    return _mbThreadLocalService;
423            }
424    
425            public void setWrappedMBThreadLocalService(
426                    MBThreadLocalService mbThreadLocalService) {
427                    _mbThreadLocalService = mbThreadLocalService;
428            }
429    
430            private MBThreadLocalService _mbThreadLocalService;
431    }