001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.messageboards.service;
016    
017    import com.liferay.portal.service.ServiceWrapper;
018    
019    /**
020     * Provides a wrapper for {@link MBThreadFlagLocalService}.
021     *
022     * @author Brian Wing Shun Chan
023     * @see MBThreadFlagLocalService
024     * @generated
025     */
026    public class MBThreadFlagLocalServiceWrapper implements MBThreadFlagLocalService,
027            ServiceWrapper<MBThreadFlagLocalService> {
028            public MBThreadFlagLocalServiceWrapper(
029                    MBThreadFlagLocalService mbThreadFlagLocalService) {
030                    _mbThreadFlagLocalService = mbThreadFlagLocalService;
031            }
032    
033            /**
034            * Adds the message boards thread flag to the database. Also notifies the appropriate model listeners.
035            *
036            * @param mbThreadFlag the message boards thread flag
037            * @return the message boards thread flag that was added
038            * @throws SystemException if a system exception occurred
039            */
040            @Override
041            public com.liferay.portlet.messageboards.model.MBThreadFlag addMBThreadFlag(
042                    com.liferay.portlet.messageboards.model.MBThreadFlag mbThreadFlag)
043                    throws com.liferay.portal.kernel.exception.SystemException {
044                    return _mbThreadFlagLocalService.addMBThreadFlag(mbThreadFlag);
045            }
046    
047            /**
048            * Creates a new message boards thread flag with the primary key. Does not add the message boards thread flag to the database.
049            *
050            * @param threadFlagId the primary key for the new message boards thread flag
051            * @return the new message boards thread flag
052            */
053            @Override
054            public com.liferay.portlet.messageboards.model.MBThreadFlag createMBThreadFlag(
055                    long threadFlagId) {
056                    return _mbThreadFlagLocalService.createMBThreadFlag(threadFlagId);
057            }
058    
059            /**
060            * Deletes the message boards thread flag with the primary key from the database. Also notifies the appropriate model listeners.
061            *
062            * @param threadFlagId the primary key of the message boards thread flag
063            * @return the message boards thread flag that was removed
064            * @throws PortalException if a message boards thread flag with the primary key could not be found
065            * @throws SystemException if a system exception occurred
066            */
067            @Override
068            public com.liferay.portlet.messageboards.model.MBThreadFlag deleteMBThreadFlag(
069                    long threadFlagId)
070                    throws com.liferay.portal.kernel.exception.PortalException,
071                            com.liferay.portal.kernel.exception.SystemException {
072                    return _mbThreadFlagLocalService.deleteMBThreadFlag(threadFlagId);
073            }
074    
075            /**
076            * Deletes the message boards thread flag from the database. Also notifies the appropriate model listeners.
077            *
078            * @param mbThreadFlag the message boards thread flag
079            * @return the message boards thread flag that was removed
080            * @throws SystemException if a system exception occurred
081            */
082            @Override
083            public com.liferay.portlet.messageboards.model.MBThreadFlag deleteMBThreadFlag(
084                    com.liferay.portlet.messageboards.model.MBThreadFlag mbThreadFlag)
085                    throws com.liferay.portal.kernel.exception.SystemException {
086                    return _mbThreadFlagLocalService.deleteMBThreadFlag(mbThreadFlag);
087            }
088    
089            @Override
090            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
091                    return _mbThreadFlagLocalService.dynamicQuery();
092            }
093    
094            /**
095            * Performs a dynamic query on the database and returns the matching rows.
096            *
097            * @param dynamicQuery the dynamic query
098            * @return the matching rows
099            * @throws SystemException if a system exception occurred
100            */
101            @Override
102            @SuppressWarnings("rawtypes")
103            public java.util.List dynamicQuery(
104                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
105                    throws com.liferay.portal.kernel.exception.SystemException {
106                    return _mbThreadFlagLocalService.dynamicQuery(dynamicQuery);
107            }
108    
109            /**
110            * Performs a dynamic query on the database and returns a range of the matching rows.
111            *
112            * <p>
113            * 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.MBThreadFlagModelImpl}. 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.
114            * </p>
115            *
116            * @param dynamicQuery the dynamic query
117            * @param start the lower bound of the range of model instances
118            * @param end the upper bound of the range of model instances (not inclusive)
119            * @return the range of matching rows
120            * @throws SystemException if a system exception occurred
121            */
122            @Override
123            @SuppressWarnings("rawtypes")
124            public java.util.List dynamicQuery(
125                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
126                    int end) throws com.liferay.portal.kernel.exception.SystemException {
127                    return _mbThreadFlagLocalService.dynamicQuery(dynamicQuery, start, end);
128            }
129    
130            /**
131            * Performs a dynamic query on the database and returns an ordered 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.MBThreadFlagModelImpl}. 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            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
141            * @return the ordered range of matching rows
142            * @throws SystemException if a system exception occurred
143            */
144            @Override
145            @SuppressWarnings("rawtypes")
146            public java.util.List dynamicQuery(
147                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
148                    int end,
149                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
150                    throws com.liferay.portal.kernel.exception.SystemException {
151                    return _mbThreadFlagLocalService.dynamicQuery(dynamicQuery, start, end,
152                            orderByComparator);
153            }
154    
155            /**
156            * Returns the number of rows that match the dynamic query.
157            *
158            * @param dynamicQuery the dynamic query
159            * @return the number of rows that match the dynamic query
160            * @throws SystemException if a system exception occurred
161            */
162            @Override
163            public long dynamicQueryCount(
164                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
165                    throws com.liferay.portal.kernel.exception.SystemException {
166                    return _mbThreadFlagLocalService.dynamicQueryCount(dynamicQuery);
167            }
168    
169            /**
170            * Returns the number of rows that match the dynamic query.
171            *
172            * @param dynamicQuery the dynamic query
173            * @param projection the projection to apply to the query
174            * @return the number of rows that match the dynamic query
175            * @throws SystemException if a system exception occurred
176            */
177            @Override
178            public long dynamicQueryCount(
179                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
180                    com.liferay.portal.kernel.dao.orm.Projection projection)
181                    throws com.liferay.portal.kernel.exception.SystemException {
182                    return _mbThreadFlagLocalService.dynamicQueryCount(dynamicQuery,
183                            projection);
184            }
185    
186            @Override
187            public com.liferay.portlet.messageboards.model.MBThreadFlag fetchMBThreadFlag(
188                    long threadFlagId)
189                    throws com.liferay.portal.kernel.exception.SystemException {
190                    return _mbThreadFlagLocalService.fetchMBThreadFlag(threadFlagId);
191            }
192    
193            /**
194            * Returns the message boards thread flag with the matching UUID and company.
195            *
196            * @param uuid the message boards thread flag's UUID
197            * @param companyId the primary key of the company
198            * @return the matching message boards thread flag, or <code>null</code> if a matching message boards thread flag could not be found
199            * @throws SystemException if a system exception occurred
200            */
201            @Override
202            public com.liferay.portlet.messageboards.model.MBThreadFlag fetchMBThreadFlagByUuidAndCompanyId(
203                    java.lang.String uuid, long companyId)
204                    throws com.liferay.portal.kernel.exception.SystemException {
205                    return _mbThreadFlagLocalService.fetchMBThreadFlagByUuidAndCompanyId(uuid,
206                            companyId);
207            }
208    
209            /**
210            * Returns the message boards thread flag matching the UUID and group.
211            *
212            * @param uuid the message boards thread flag's UUID
213            * @param groupId the primary key of the group
214            * @return the matching message boards thread flag, or <code>null</code> if a matching message boards thread flag could not be found
215            * @throws SystemException if a system exception occurred
216            */
217            @Override
218            public com.liferay.portlet.messageboards.model.MBThreadFlag fetchMBThreadFlagByUuidAndGroupId(
219                    java.lang.String uuid, long groupId)
220                    throws com.liferay.portal.kernel.exception.SystemException {
221                    return _mbThreadFlagLocalService.fetchMBThreadFlagByUuidAndGroupId(uuid,
222                            groupId);
223            }
224    
225            /**
226            * Returns the message boards thread flag with the primary key.
227            *
228            * @param threadFlagId the primary key of the message boards thread flag
229            * @return the message boards thread flag
230            * @throws PortalException if a message boards thread flag with the primary key could not be found
231            * @throws SystemException if a system exception occurred
232            */
233            @Override
234            public com.liferay.portlet.messageboards.model.MBThreadFlag getMBThreadFlag(
235                    long threadFlagId)
236                    throws com.liferay.portal.kernel.exception.PortalException,
237                            com.liferay.portal.kernel.exception.SystemException {
238                    return _mbThreadFlagLocalService.getMBThreadFlag(threadFlagId);
239            }
240    
241            @Override
242            public com.liferay.portal.model.PersistedModel getPersistedModel(
243                    java.io.Serializable primaryKeyObj)
244                    throws com.liferay.portal.kernel.exception.PortalException,
245                            com.liferay.portal.kernel.exception.SystemException {
246                    return _mbThreadFlagLocalService.getPersistedModel(primaryKeyObj);
247            }
248    
249            /**
250            * Returns the message boards thread flag with the matching UUID and company.
251            *
252            * @param uuid the message boards thread flag's UUID
253            * @param companyId the primary key of the company
254            * @return the matching message boards thread flag
255            * @throws PortalException if a matching message boards thread flag could not be found
256            * @throws SystemException if a system exception occurred
257            */
258            @Override
259            public com.liferay.portlet.messageboards.model.MBThreadFlag getMBThreadFlagByUuidAndCompanyId(
260                    java.lang.String uuid, long companyId)
261                    throws com.liferay.portal.kernel.exception.PortalException,
262                            com.liferay.portal.kernel.exception.SystemException {
263                    return _mbThreadFlagLocalService.getMBThreadFlagByUuidAndCompanyId(uuid,
264                            companyId);
265            }
266    
267            /**
268            * Returns the message boards thread flag matching the UUID and group.
269            *
270            * @param uuid the message boards thread flag's UUID
271            * @param groupId the primary key of the group
272            * @return the matching message boards thread flag
273            * @throws PortalException if a matching message boards thread flag could not be found
274            * @throws SystemException if a system exception occurred
275            */
276            @Override
277            public com.liferay.portlet.messageboards.model.MBThreadFlag getMBThreadFlagByUuidAndGroupId(
278                    java.lang.String uuid, long groupId)
279                    throws com.liferay.portal.kernel.exception.PortalException,
280                            com.liferay.portal.kernel.exception.SystemException {
281                    return _mbThreadFlagLocalService.getMBThreadFlagByUuidAndGroupId(uuid,
282                            groupId);
283            }
284    
285            /**
286            * Returns a range of all the message boards thread flags.
287            *
288            * <p>
289            * 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.MBThreadFlagModelImpl}. 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.
290            * </p>
291            *
292            * @param start the lower bound of the range of message boards thread flags
293            * @param end the upper bound of the range of message boards thread flags (not inclusive)
294            * @return the range of message boards thread flags
295            * @throws SystemException if a system exception occurred
296            */
297            @Override
298            public java.util.List<com.liferay.portlet.messageboards.model.MBThreadFlag> getMBThreadFlags(
299                    int start, int end)
300                    throws com.liferay.portal.kernel.exception.SystemException {
301                    return _mbThreadFlagLocalService.getMBThreadFlags(start, end);
302            }
303    
304            /**
305            * Returns the number of message boards thread flags.
306            *
307            * @return the number of message boards thread flags
308            * @throws SystemException if a system exception occurred
309            */
310            @Override
311            public int getMBThreadFlagsCount()
312                    throws com.liferay.portal.kernel.exception.SystemException {
313                    return _mbThreadFlagLocalService.getMBThreadFlagsCount();
314            }
315    
316            /**
317            * Updates the message boards thread flag in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
318            *
319            * @param mbThreadFlag the message boards thread flag
320            * @return the message boards thread flag that was updated
321            * @throws SystemException if a system exception occurred
322            */
323            @Override
324            public com.liferay.portlet.messageboards.model.MBThreadFlag updateMBThreadFlag(
325                    com.liferay.portlet.messageboards.model.MBThreadFlag mbThreadFlag)
326                    throws com.liferay.portal.kernel.exception.SystemException {
327                    return _mbThreadFlagLocalService.updateMBThreadFlag(mbThreadFlag);
328            }
329    
330            /**
331            * Returns the Spring bean ID for this bean.
332            *
333            * @return the Spring bean ID for this bean
334            */
335            @Override
336            public java.lang.String getBeanIdentifier() {
337                    return _mbThreadFlagLocalService.getBeanIdentifier();
338            }
339    
340            /**
341            * Sets the Spring bean ID for this bean.
342            *
343            * @param beanIdentifier the Spring bean ID for this bean
344            */
345            @Override
346            public void setBeanIdentifier(java.lang.String beanIdentifier) {
347                    _mbThreadFlagLocalService.setBeanIdentifier(beanIdentifier);
348            }
349    
350            @Override
351            public void addThreadFlag(long userId,
352                    com.liferay.portlet.messageboards.model.MBThread thread,
353                    com.liferay.portal.service.ServiceContext serviceContext)
354                    throws com.liferay.portal.kernel.exception.PortalException,
355                            com.liferay.portal.kernel.exception.SystemException {
356                    _mbThreadFlagLocalService.addThreadFlag(userId, thread, serviceContext);
357            }
358    
359            @Override
360            public void deleteThreadFlag(long threadFlagId)
361                    throws com.liferay.portal.kernel.exception.PortalException,
362                            com.liferay.portal.kernel.exception.SystemException {
363                    _mbThreadFlagLocalService.deleteThreadFlag(threadFlagId);
364            }
365    
366            @Override
367            public void deleteThreadFlag(
368                    com.liferay.portlet.messageboards.model.MBThreadFlag threadFlag)
369                    throws com.liferay.portal.kernel.exception.SystemException {
370                    _mbThreadFlagLocalService.deleteThreadFlag(threadFlag);
371            }
372    
373            @Override
374            public void deleteThreadFlagsByThreadId(long threadId)
375                    throws com.liferay.portal.kernel.exception.SystemException {
376                    _mbThreadFlagLocalService.deleteThreadFlagsByThreadId(threadId);
377            }
378    
379            @Override
380            public void deleteThreadFlagsByUserId(long userId)
381                    throws com.liferay.portal.kernel.exception.SystemException {
382                    _mbThreadFlagLocalService.deleteThreadFlagsByUserId(userId);
383            }
384    
385            @Override
386            public com.liferay.portlet.messageboards.model.MBThreadFlag getThreadFlag(
387                    long userId, com.liferay.portlet.messageboards.model.MBThread thread)
388                    throws com.liferay.portal.kernel.exception.PortalException,
389                            com.liferay.portal.kernel.exception.SystemException {
390                    return _mbThreadFlagLocalService.getThreadFlag(userId, thread);
391            }
392    
393            @Override
394            public boolean hasThreadFlag(long userId,
395                    com.liferay.portlet.messageboards.model.MBThread thread)
396                    throws com.liferay.portal.kernel.exception.PortalException,
397                            com.liferay.portal.kernel.exception.SystemException {
398                    return _mbThreadFlagLocalService.hasThreadFlag(userId, thread);
399            }
400    
401            /**
402             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
403             */
404            public MBThreadFlagLocalService getWrappedMBThreadFlagLocalService() {
405                    return _mbThreadFlagLocalService;
406            }
407    
408            /**
409             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
410             */
411            public void setWrappedMBThreadFlagLocalService(
412                    MBThreadFlagLocalService mbThreadFlagLocalService) {
413                    _mbThreadFlagLocalService = mbThreadFlagLocalService;
414            }
415    
416            @Override
417            public MBThreadFlagLocalService getWrappedService() {
418                    return _mbThreadFlagLocalService;
419            }
420    
421            @Override
422            public void setWrappedService(
423                    MBThreadFlagLocalService mbThreadFlagLocalService) {
424                    _mbThreadFlagLocalService = mbThreadFlagLocalService;
425            }
426    
427            private MBThreadFlagLocalService _mbThreadFlagLocalService;
428    }