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 aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.service.ServiceWrapper;
020    
021    /**
022     * Provides a wrapper for {@link MBStatsUserLocalService}.
023     *
024     * @author Brian Wing Shun Chan
025     * @see MBStatsUserLocalService
026     * @generated
027     */
028    @ProviderType
029    public class MBStatsUserLocalServiceWrapper implements MBStatsUserLocalService,
030            ServiceWrapper<MBStatsUserLocalService> {
031            public MBStatsUserLocalServiceWrapper(
032                    MBStatsUserLocalService mbStatsUserLocalService) {
033                    _mbStatsUserLocalService = mbStatsUserLocalService;
034            }
035    
036            /**
037            * Adds the message boards stats user to the database. Also notifies the appropriate model listeners.
038            *
039            * @param mbStatsUser the message boards stats user
040            * @return the message boards stats user that was added
041            * @throws SystemException if a system exception occurred
042            */
043            @Override
044            public com.liferay.portlet.messageboards.model.MBStatsUser addMBStatsUser(
045                    com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser)
046                    throws com.liferay.portal.kernel.exception.SystemException {
047                    return _mbStatsUserLocalService.addMBStatsUser(mbStatsUser);
048            }
049    
050            /**
051            * Creates a new message boards stats user with the primary key. Does not add the message boards stats user to the database.
052            *
053            * @param statsUserId the primary key for the new message boards stats user
054            * @return the new message boards stats user
055            */
056            @Override
057            public com.liferay.portlet.messageboards.model.MBStatsUser createMBStatsUser(
058                    long statsUserId) {
059                    return _mbStatsUserLocalService.createMBStatsUser(statsUserId);
060            }
061    
062            /**
063            * Deletes the message boards stats user with the primary key from the database. Also notifies the appropriate model listeners.
064            *
065            * @param statsUserId the primary key of the message boards stats user
066            * @return the message boards stats user that was removed
067            * @throws PortalException if a message boards stats user with the primary key could not be found
068            * @throws SystemException if a system exception occurred
069            */
070            @Override
071            public com.liferay.portlet.messageboards.model.MBStatsUser deleteMBStatsUser(
072                    long statsUserId)
073                    throws com.liferay.portal.kernel.exception.PortalException,
074                            com.liferay.portal.kernel.exception.SystemException {
075                    return _mbStatsUserLocalService.deleteMBStatsUser(statsUserId);
076            }
077    
078            /**
079            * Deletes the message boards stats user from the database. Also notifies the appropriate model listeners.
080            *
081            * @param mbStatsUser the message boards stats user
082            * @return the message boards stats user that was removed
083            * @throws SystemException if a system exception occurred
084            */
085            @Override
086            public com.liferay.portlet.messageboards.model.MBStatsUser deleteMBStatsUser(
087                    com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser)
088                    throws com.liferay.portal.kernel.exception.SystemException {
089                    return _mbStatsUserLocalService.deleteMBStatsUser(mbStatsUser);
090            }
091    
092            @Override
093            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
094                    return _mbStatsUserLocalService.dynamicQuery();
095            }
096    
097            /**
098            * Performs a dynamic query on the database and returns the matching rows.
099            *
100            * @param dynamicQuery the dynamic query
101            * @return the matching rows
102            * @throws SystemException if a system exception occurred
103            */
104            @Override
105            @SuppressWarnings("rawtypes")
106            public java.util.List dynamicQuery(
107                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
108                    throws com.liferay.portal.kernel.exception.SystemException {
109                    return _mbStatsUserLocalService.dynamicQuery(dynamicQuery);
110            }
111    
112            /**
113            * Performs a dynamic query on the database and returns a range of the matching rows.
114            *
115            * <p>
116            * 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.
117            * </p>
118            *
119            * @param dynamicQuery the dynamic query
120            * @param start the lower bound of the range of model instances
121            * @param end the upper bound of the range of model instances (not inclusive)
122            * @return the range of matching rows
123            * @throws SystemException if a system exception occurred
124            */
125            @Override
126            @SuppressWarnings("rawtypes")
127            public java.util.List dynamicQuery(
128                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
129                    int end) throws com.liferay.portal.kernel.exception.SystemException {
130                    return _mbStatsUserLocalService.dynamicQuery(dynamicQuery, start, end);
131            }
132    
133            /**
134            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
135            *
136            * <p>
137            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.messageboards.model.impl.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.
138            * </p>
139            *
140            * @param dynamicQuery the dynamic query
141            * @param start the lower bound of the range of model instances
142            * @param end the upper bound of the range of model instances (not inclusive)
143            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
144            * @return the ordered range of matching rows
145            * @throws SystemException if a system exception occurred
146            */
147            @Override
148            @SuppressWarnings("rawtypes")
149            public java.util.List dynamicQuery(
150                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
151                    int end,
152                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
153                    throws com.liferay.portal.kernel.exception.SystemException {
154                    return _mbStatsUserLocalService.dynamicQuery(dynamicQuery, start, end,
155                            orderByComparator);
156            }
157    
158            /**
159            * Returns the number of rows that match the dynamic query.
160            *
161            * @param dynamicQuery the dynamic query
162            * @return the number of rows that match the dynamic query
163            * @throws SystemException if a system exception occurred
164            */
165            @Override
166            public long dynamicQueryCount(
167                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
168                    throws com.liferay.portal.kernel.exception.SystemException {
169                    return _mbStatsUserLocalService.dynamicQueryCount(dynamicQuery);
170            }
171    
172            /**
173            * Returns the number of rows that match the dynamic query.
174            *
175            * @param dynamicQuery the dynamic query
176            * @param projection the projection to apply to the query
177            * @return the number of rows that match the dynamic query
178            * @throws SystemException if a system exception occurred
179            */
180            @Override
181            public long dynamicQueryCount(
182                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
183                    com.liferay.portal.kernel.dao.orm.Projection projection)
184                    throws com.liferay.portal.kernel.exception.SystemException {
185                    return _mbStatsUserLocalService.dynamicQueryCount(dynamicQuery,
186                            projection);
187            }
188    
189            @Override
190            public com.liferay.portlet.messageboards.model.MBStatsUser fetchMBStatsUser(
191                    long statsUserId)
192                    throws com.liferay.portal.kernel.exception.SystemException {
193                    return _mbStatsUserLocalService.fetchMBStatsUser(statsUserId);
194            }
195    
196            /**
197            * Returns the message boards stats user with the primary key.
198            *
199            * @param statsUserId the primary key of the message boards stats user
200            * @return the message boards stats user
201            * @throws PortalException if a message boards stats user with the primary key could not be found
202            * @throws SystemException if a system exception occurred
203            */
204            @Override
205            public com.liferay.portlet.messageboards.model.MBStatsUser getMBStatsUser(
206                    long statsUserId)
207                    throws com.liferay.portal.kernel.exception.PortalException,
208                            com.liferay.portal.kernel.exception.SystemException {
209                    return _mbStatsUserLocalService.getMBStatsUser(statsUserId);
210            }
211    
212            @Override
213            public com.liferay.portal.model.PersistedModel getPersistedModel(
214                    java.io.Serializable primaryKeyObj)
215                    throws com.liferay.portal.kernel.exception.PortalException,
216                            com.liferay.portal.kernel.exception.SystemException {
217                    return _mbStatsUserLocalService.getPersistedModel(primaryKeyObj);
218            }
219    
220            /**
221            * Returns a range of all the message boards stats users.
222            *
223            * <p>
224            * 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.
225            * </p>
226            *
227            * @param start the lower bound of the range of message boards stats users
228            * @param end the upper bound of the range of message boards stats users (not inclusive)
229            * @return the range of message boards stats users
230            * @throws SystemException if a system exception occurred
231            */
232            @Override
233            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> getMBStatsUsers(
234                    int start, int end)
235                    throws com.liferay.portal.kernel.exception.SystemException {
236                    return _mbStatsUserLocalService.getMBStatsUsers(start, end);
237            }
238    
239            /**
240            * Returns the number of message boards stats users.
241            *
242            * @return the number of message boards stats users
243            * @throws SystemException if a system exception occurred
244            */
245            @Override
246            public int getMBStatsUsersCount()
247                    throws com.liferay.portal.kernel.exception.SystemException {
248                    return _mbStatsUserLocalService.getMBStatsUsersCount();
249            }
250    
251            /**
252            * Updates the message boards stats user in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
253            *
254            * @param mbStatsUser the message boards stats user
255            * @return the message boards stats user that was updated
256            * @throws SystemException if a system exception occurred
257            */
258            @Override
259            public com.liferay.portlet.messageboards.model.MBStatsUser updateMBStatsUser(
260                    com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser)
261                    throws com.liferay.portal.kernel.exception.SystemException {
262                    return _mbStatsUserLocalService.updateMBStatsUser(mbStatsUser);
263            }
264    
265            /**
266            * Returns the Spring bean ID for this bean.
267            *
268            * @return the Spring bean ID for this bean
269            */
270            @Override
271            public java.lang.String getBeanIdentifier() {
272                    return _mbStatsUserLocalService.getBeanIdentifier();
273            }
274    
275            /**
276            * Sets the Spring bean ID for this bean.
277            *
278            * @param beanIdentifier the Spring bean ID for this bean
279            */
280            @Override
281            public void setBeanIdentifier(java.lang.String beanIdentifier) {
282                    _mbStatsUserLocalService.setBeanIdentifier(beanIdentifier);
283            }
284    
285            @Override
286            public com.liferay.portlet.messageboards.model.MBStatsUser addStatsUser(
287                    long groupId, long userId)
288                    throws com.liferay.portal.kernel.exception.SystemException {
289                    return _mbStatsUserLocalService.addStatsUser(groupId, userId);
290            }
291    
292            @Override
293            public void deleteStatsUser(long statsUserId)
294                    throws com.liferay.portal.kernel.exception.PortalException,
295                            com.liferay.portal.kernel.exception.SystemException {
296                    _mbStatsUserLocalService.deleteStatsUser(statsUserId);
297            }
298    
299            @Override
300            public void deleteStatsUser(
301                    com.liferay.portlet.messageboards.model.MBStatsUser statsUser)
302                    throws com.liferay.portal.kernel.exception.SystemException {
303                    _mbStatsUserLocalService.deleteStatsUser(statsUser);
304            }
305    
306            @Override
307            public void deleteStatsUsersByGroupId(long groupId)
308                    throws com.liferay.portal.kernel.exception.SystemException {
309                    _mbStatsUserLocalService.deleteStatsUsersByGroupId(groupId);
310            }
311    
312            @Override
313            public void deleteStatsUsersByUserId(long userId)
314                    throws com.liferay.portal.kernel.exception.SystemException {
315                    _mbStatsUserLocalService.deleteStatsUsersByUserId(userId);
316            }
317    
318            @Override
319            public java.util.Date getLastPostDateByUserId(long groupId, long userId)
320                    throws com.liferay.portal.kernel.exception.SystemException {
321                    return _mbStatsUserLocalService.getLastPostDateByUserId(groupId, userId);
322            }
323    
324            @Override
325            public long getMessageCountByGroupId(long groupId)
326                    throws com.liferay.portal.kernel.exception.SystemException {
327                    return _mbStatsUserLocalService.getMessageCountByGroupId(groupId);
328            }
329    
330            @Override
331            public long getMessageCountByUserId(long userId)
332                    throws com.liferay.portal.kernel.exception.SystemException {
333                    return _mbStatsUserLocalService.getMessageCountByUserId(userId);
334            }
335    
336            @Override
337            public com.liferay.portlet.messageboards.model.MBStatsUser getStatsUser(
338                    long groupId, long userId)
339                    throws com.liferay.portal.kernel.exception.SystemException {
340                    return _mbStatsUserLocalService.getStatsUser(groupId, userId);
341            }
342    
343            @Override
344            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> getStatsUsersByGroupId(
345                    long groupId, int start, int end)
346                    throws com.liferay.portal.kernel.exception.PortalException,
347                            com.liferay.portal.kernel.exception.SystemException {
348                    return _mbStatsUserLocalService.getStatsUsersByGroupId(groupId, start,
349                            end);
350            }
351    
352            @Override
353            public int getStatsUsersByGroupIdCount(long groupId)
354                    throws com.liferay.portal.kernel.exception.PortalException,
355                            com.liferay.portal.kernel.exception.SystemException {
356                    return _mbStatsUserLocalService.getStatsUsersByGroupIdCount(groupId);
357            }
358    
359            @Override
360            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> getStatsUsersByUserId(
361                    long userId) throws com.liferay.portal.kernel.exception.SystemException {
362                    return _mbStatsUserLocalService.getStatsUsersByUserId(userId);
363            }
364    
365            @Override
366            public com.liferay.portlet.messageboards.model.MBStatsUser updateStatsUser(
367                    long groupId, long userId)
368                    throws com.liferay.portal.kernel.exception.SystemException {
369                    return _mbStatsUserLocalService.updateStatsUser(groupId, userId);
370            }
371    
372            @Override
373            public com.liferay.portlet.messageboards.model.MBStatsUser updateStatsUser(
374                    long groupId, long userId, java.util.Date lastPostDate)
375                    throws com.liferay.portal.kernel.exception.SystemException {
376                    return _mbStatsUserLocalService.updateStatsUser(groupId, userId,
377                            lastPostDate);
378            }
379    
380            @Override
381            public com.liferay.portlet.messageboards.model.MBStatsUser updateStatsUser(
382                    long groupId, long userId, int messageCount, java.util.Date lastPostDate)
383                    throws com.liferay.portal.kernel.exception.SystemException {
384                    return _mbStatsUserLocalService.updateStatsUser(groupId, userId,
385                            messageCount, lastPostDate);
386            }
387    
388            /**
389             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
390             */
391            public MBStatsUserLocalService getWrappedMBStatsUserLocalService() {
392                    return _mbStatsUserLocalService;
393            }
394    
395            /**
396             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
397             */
398            public void setWrappedMBStatsUserLocalService(
399                    MBStatsUserLocalService mbStatsUserLocalService) {
400                    _mbStatsUserLocalService = mbStatsUserLocalService;
401            }
402    
403            @Override
404            public MBStatsUserLocalService getWrappedService() {
405                    return _mbStatsUserLocalService;
406            }
407    
408            @Override
409            public void setWrappedService(
410                    MBStatsUserLocalService mbStatsUserLocalService) {
411                    _mbStatsUserLocalService = mbStatsUserLocalService;
412            }
413    
414            private MBStatsUserLocalService _mbStatsUserLocalService;
415    }