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 MBStatsUserLocalService}.
021     *
022     * @author Brian Wing Shun Chan
023     * @see MBStatsUserLocalService
024     * @generated
025     */
026    public class MBStatsUserLocalServiceWrapper implements MBStatsUserLocalService,
027            ServiceWrapper<MBStatsUserLocalService> {
028            public MBStatsUserLocalServiceWrapper(
029                    MBStatsUserLocalService mbStatsUserLocalService) {
030                    _mbStatsUserLocalService = mbStatsUserLocalService;
031            }
032    
033            /**
034            * Adds the message boards stats user to the database. Also notifies the appropriate model listeners.
035            *
036            * @param mbStatsUser the message boards stats user
037            * @return the message boards stats user that was added
038            * @throws SystemException if a system exception occurred
039            */
040            @Override
041            public com.liferay.portlet.messageboards.model.MBStatsUser addMBStatsUser(
042                    com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser)
043                    throws com.liferay.portal.kernel.exception.SystemException {
044                    return _mbStatsUserLocalService.addMBStatsUser(mbStatsUser);
045            }
046    
047            /**
048            * Creates a new message boards stats user with the primary key. Does not add the message boards stats user to the database.
049            *
050            * @param statsUserId the primary key for the new message boards stats user
051            * @return the new message boards stats user
052            */
053            @Override
054            public com.liferay.portlet.messageboards.model.MBStatsUser createMBStatsUser(
055                    long statsUserId) {
056                    return _mbStatsUserLocalService.createMBStatsUser(statsUserId);
057            }
058    
059            /**
060            * Deletes the message boards stats user with the primary key from the database. Also notifies the appropriate model listeners.
061            *
062            * @param statsUserId the primary key of the message boards stats user
063            * @return the message boards stats user that was removed
064            * @throws PortalException if a message boards stats user 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.MBStatsUser deleteMBStatsUser(
069                    long statsUserId)
070                    throws com.liferay.portal.kernel.exception.PortalException,
071                            com.liferay.portal.kernel.exception.SystemException {
072                    return _mbStatsUserLocalService.deleteMBStatsUser(statsUserId);
073            }
074    
075            /**
076            * Deletes the message boards stats user from the database. Also notifies the appropriate model listeners.
077            *
078            * @param mbStatsUser the message boards stats user
079            * @return the message boards stats user that was removed
080            * @throws SystemException if a system exception occurred
081            */
082            @Override
083            public com.liferay.portlet.messageboards.model.MBStatsUser deleteMBStatsUser(
084                    com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser)
085                    throws com.liferay.portal.kernel.exception.SystemException {
086                    return _mbStatsUserLocalService.deleteMBStatsUser(mbStatsUser);
087            }
088    
089            @Override
090            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
091                    return _mbStatsUserLocalService.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 _mbStatsUserLocalService.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.MBStatsUserModelImpl}. 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 _mbStatsUserLocalService.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.MBStatsUserModelImpl}. 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 _mbStatsUserLocalService.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 _mbStatsUserLocalService.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 _mbStatsUserLocalService.dynamicQueryCount(dynamicQuery,
183                            projection);
184            }
185    
186            @Override
187            public com.liferay.portlet.messageboards.model.MBStatsUser fetchMBStatsUser(
188                    long statsUserId)
189                    throws com.liferay.portal.kernel.exception.SystemException {
190                    return _mbStatsUserLocalService.fetchMBStatsUser(statsUserId);
191            }
192    
193            /**
194            * Returns the message boards stats user with the primary key.
195            *
196            * @param statsUserId the primary key of the message boards stats user
197            * @return the message boards stats user
198            * @throws PortalException if a message boards stats user with the primary key could not be found
199            * @throws SystemException if a system exception occurred
200            */
201            @Override
202            public com.liferay.portlet.messageboards.model.MBStatsUser getMBStatsUser(
203                    long statsUserId)
204                    throws com.liferay.portal.kernel.exception.PortalException,
205                            com.liferay.portal.kernel.exception.SystemException {
206                    return _mbStatsUserLocalService.getMBStatsUser(statsUserId);
207            }
208    
209            @Override
210            public com.liferay.portal.model.PersistedModel getPersistedModel(
211                    java.io.Serializable primaryKeyObj)
212                    throws com.liferay.portal.kernel.exception.PortalException,
213                            com.liferay.portal.kernel.exception.SystemException {
214                    return _mbStatsUserLocalService.getPersistedModel(primaryKeyObj);
215            }
216    
217            /**
218            * Returns a range of all the message boards stats users.
219            *
220            * <p>
221            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.messageboards.model.impl.MBStatsUserModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
222            * </p>
223            *
224            * @param start the lower bound of the range of message boards stats users
225            * @param end the upper bound of the range of message boards stats users (not inclusive)
226            * @return the range of message boards stats users
227            * @throws SystemException if a system exception occurred
228            */
229            @Override
230            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> getMBStatsUsers(
231                    int start, int end)
232                    throws com.liferay.portal.kernel.exception.SystemException {
233                    return _mbStatsUserLocalService.getMBStatsUsers(start, end);
234            }
235    
236            /**
237            * Returns the number of message boards stats users.
238            *
239            * @return the number of message boards stats users
240            * @throws SystemException if a system exception occurred
241            */
242            @Override
243            public int getMBStatsUsersCount()
244                    throws com.liferay.portal.kernel.exception.SystemException {
245                    return _mbStatsUserLocalService.getMBStatsUsersCount();
246            }
247    
248            /**
249            * Updates the message boards stats user in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
250            *
251            * @param mbStatsUser the message boards stats user
252            * @return the message boards stats user that was updated
253            * @throws SystemException if a system exception occurred
254            */
255            @Override
256            public com.liferay.portlet.messageboards.model.MBStatsUser updateMBStatsUser(
257                    com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser)
258                    throws com.liferay.portal.kernel.exception.SystemException {
259                    return _mbStatsUserLocalService.updateMBStatsUser(mbStatsUser);
260            }
261    
262            /**
263            * Returns the Spring bean ID for this bean.
264            *
265            * @return the Spring bean ID for this bean
266            */
267            @Override
268            public java.lang.String getBeanIdentifier() {
269                    return _mbStatsUserLocalService.getBeanIdentifier();
270            }
271    
272            /**
273            * Sets the Spring bean ID for this bean.
274            *
275            * @param beanIdentifier the Spring bean ID for this bean
276            */
277            @Override
278            public void setBeanIdentifier(java.lang.String beanIdentifier) {
279                    _mbStatsUserLocalService.setBeanIdentifier(beanIdentifier);
280            }
281    
282            @Override
283            public com.liferay.portlet.messageboards.model.MBStatsUser addStatsUser(
284                    long groupId, long userId)
285                    throws com.liferay.portal.kernel.exception.SystemException {
286                    return _mbStatsUserLocalService.addStatsUser(groupId, userId);
287            }
288    
289            @Override
290            public void deleteStatsUser(long statsUserId)
291                    throws com.liferay.portal.kernel.exception.PortalException,
292                            com.liferay.portal.kernel.exception.SystemException {
293                    _mbStatsUserLocalService.deleteStatsUser(statsUserId);
294            }
295    
296            @Override
297            public void deleteStatsUser(
298                    com.liferay.portlet.messageboards.model.MBStatsUser statsUser)
299                    throws com.liferay.portal.kernel.exception.SystemException {
300                    _mbStatsUserLocalService.deleteStatsUser(statsUser);
301            }
302    
303            @Override
304            public void deleteStatsUsersByGroupId(long groupId)
305                    throws com.liferay.portal.kernel.exception.SystemException {
306                    _mbStatsUserLocalService.deleteStatsUsersByGroupId(groupId);
307            }
308    
309            @Override
310            public void deleteStatsUsersByUserId(long userId)
311                    throws com.liferay.portal.kernel.exception.SystemException {
312                    _mbStatsUserLocalService.deleteStatsUsersByUserId(userId);
313            }
314    
315            @Override
316            public java.util.Date getLastPostDateByUserId(long groupId, long userId)
317                    throws com.liferay.portal.kernel.exception.SystemException {
318                    return _mbStatsUserLocalService.getLastPostDateByUserId(groupId, userId);
319            }
320    
321            @Override
322            public long getMessageCountByGroupId(long groupId)
323                    throws com.liferay.portal.kernel.exception.SystemException {
324                    return _mbStatsUserLocalService.getMessageCountByGroupId(groupId);
325            }
326    
327            @Override
328            public long getMessageCountByUserId(long userId)
329                    throws com.liferay.portal.kernel.exception.SystemException {
330                    return _mbStatsUserLocalService.getMessageCountByUserId(userId);
331            }
332    
333            @Override
334            public com.liferay.portlet.messageboards.model.MBStatsUser getStatsUser(
335                    long groupId, long userId)
336                    throws com.liferay.portal.kernel.exception.SystemException {
337                    return _mbStatsUserLocalService.getStatsUser(groupId, userId);
338            }
339    
340            @Override
341            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> getStatsUsersByGroupId(
342                    long groupId, int start, int end)
343                    throws com.liferay.portal.kernel.exception.PortalException,
344                            com.liferay.portal.kernel.exception.SystemException {
345                    return _mbStatsUserLocalService.getStatsUsersByGroupId(groupId, start,
346                            end);
347            }
348    
349            @Override
350            public int getStatsUsersByGroupIdCount(long groupId)
351                    throws com.liferay.portal.kernel.exception.PortalException,
352                            com.liferay.portal.kernel.exception.SystemException {
353                    return _mbStatsUserLocalService.getStatsUsersByGroupIdCount(groupId);
354            }
355    
356            @Override
357            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> getStatsUsersByUserId(
358                    long userId) throws com.liferay.portal.kernel.exception.SystemException {
359                    return _mbStatsUserLocalService.getStatsUsersByUserId(userId);
360            }
361    
362            @Override
363            public com.liferay.portlet.messageboards.model.MBStatsUser updateStatsUser(
364                    long groupId, long userId)
365                    throws com.liferay.portal.kernel.exception.SystemException {
366                    return _mbStatsUserLocalService.updateStatsUser(groupId, userId);
367            }
368    
369            @Override
370            public com.liferay.portlet.messageboards.model.MBStatsUser updateStatsUser(
371                    long groupId, long userId, java.util.Date lastPostDate)
372                    throws com.liferay.portal.kernel.exception.SystemException {
373                    return _mbStatsUserLocalService.updateStatsUser(groupId, userId,
374                            lastPostDate);
375            }
376    
377            @Override
378            public com.liferay.portlet.messageboards.model.MBStatsUser updateStatsUser(
379                    long groupId, long userId, int messageCount, java.util.Date lastPostDate)
380                    throws com.liferay.portal.kernel.exception.SystemException {
381                    return _mbStatsUserLocalService.updateStatsUser(groupId, userId,
382                            messageCount, lastPostDate);
383            }
384    
385            /**
386             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
387             */
388            public MBStatsUserLocalService getWrappedMBStatsUserLocalService() {
389                    return _mbStatsUserLocalService;
390            }
391    
392            /**
393             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
394             */
395            public void setWrappedMBStatsUserLocalService(
396                    MBStatsUserLocalService mbStatsUserLocalService) {
397                    _mbStatsUserLocalService = mbStatsUserLocalService;
398            }
399    
400            @Override
401            public MBStatsUserLocalService getWrappedService() {
402                    return _mbStatsUserLocalService;
403            }
404    
405            @Override
406            public void setWrappedService(
407                    MBStatsUserLocalService mbStatsUserLocalService) {
408                    _mbStatsUserLocalService = mbStatsUserLocalService;
409            }
410    
411            private MBStatsUserLocalService _mbStatsUserLocalService;
412    }