001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.messageboards.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.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            */
042            @Override
043            public com.liferay.portlet.messageboards.model.MBStatsUser addMBStatsUser(
044                    com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser) {
045                    return _mbStatsUserLocalService.addMBStatsUser(mbStatsUser);
046            }
047    
048            @Override
049            public com.liferay.portlet.messageboards.model.MBStatsUser addStatsUser(
050                    long groupId, long userId) {
051                    return _mbStatsUserLocalService.addStatsUser(groupId, userId);
052            }
053    
054            /**
055            * Creates a new message boards stats user with the primary key. Does not add the message boards stats user to the database.
056            *
057            * @param statsUserId the primary key for the new message boards stats user
058            * @return the new message boards stats user
059            */
060            @Override
061            public com.liferay.portlet.messageboards.model.MBStatsUser createMBStatsUser(
062                    long statsUserId) {
063                    return _mbStatsUserLocalService.createMBStatsUser(statsUserId);
064            }
065    
066            /**
067            * Deletes the message boards stats user from the database. Also notifies the appropriate model listeners.
068            *
069            * @param mbStatsUser the message boards stats user
070            * @return the message boards stats user that was removed
071            */
072            @Override
073            public com.liferay.portlet.messageboards.model.MBStatsUser deleteMBStatsUser(
074                    com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser) {
075                    return _mbStatsUserLocalService.deleteMBStatsUser(mbStatsUser);
076            }
077    
078            /**
079            * Deletes the message boards stats user with the primary key from the database. Also notifies the appropriate model listeners.
080            *
081            * @param statsUserId the primary key of the message boards stats user
082            * @return the message boards stats user that was removed
083            * @throws PortalException if a message boards stats user with the primary key could not be found
084            */
085            @Override
086            public com.liferay.portlet.messageboards.model.MBStatsUser deleteMBStatsUser(
087                    long statsUserId)
088                    throws com.liferay.portal.kernel.exception.PortalException {
089                    return _mbStatsUserLocalService.deleteMBStatsUser(statsUserId);
090            }
091    
092            /**
093            * @throws PortalException
094            */
095            @Override
096            public com.liferay.portal.model.PersistedModel deletePersistedModel(
097                    com.liferay.portal.model.PersistedModel persistedModel)
098                    throws com.liferay.portal.kernel.exception.PortalException {
099                    return _mbStatsUserLocalService.deletePersistedModel(persistedModel);
100            }
101    
102            @Override
103            public void deleteStatsUser(
104                    com.liferay.portlet.messageboards.model.MBStatsUser statsUser) {
105                    _mbStatsUserLocalService.deleteStatsUser(statsUser);
106            }
107    
108            @Override
109            public void deleteStatsUser(long statsUserId)
110                    throws com.liferay.portal.kernel.exception.PortalException {
111                    _mbStatsUserLocalService.deleteStatsUser(statsUserId);
112            }
113    
114            @Override
115            public void deleteStatsUsersByGroupId(long groupId) {
116                    _mbStatsUserLocalService.deleteStatsUsersByGroupId(groupId);
117            }
118    
119            @Override
120            public void deleteStatsUsersByUserId(long userId) {
121                    _mbStatsUserLocalService.deleteStatsUsersByUserId(userId);
122            }
123    
124            @Override
125            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
126                    return _mbStatsUserLocalService.dynamicQuery();
127            }
128    
129            /**
130            * Performs a dynamic query on the database and returns the matching rows.
131            *
132            * @param dynamicQuery the dynamic query
133            * @return the matching rows
134            */
135            @Override
136            public <T> java.util.List<T> dynamicQuery(
137                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
138                    return _mbStatsUserLocalService.dynamicQuery(dynamicQuery);
139            }
140    
141            /**
142            * Performs a dynamic query on the database and returns a range of the matching rows.
143            *
144            * <p>
145            * 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.
146            * </p>
147            *
148            * @param dynamicQuery the dynamic query
149            * @param start the lower bound of the range of model instances
150            * @param end the upper bound of the range of model instances (not inclusive)
151            * @return the range of matching rows
152            */
153            @Override
154            public <T> java.util.List<T> dynamicQuery(
155                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
156                    int end) {
157                    return _mbStatsUserLocalService.dynamicQuery(dynamicQuery, start, end);
158            }
159    
160            /**
161            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
162            *
163            * <p>
164            * 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.
165            * </p>
166            *
167            * @param dynamicQuery the dynamic query
168            * @param start the lower bound of the range of model instances
169            * @param end the upper bound of the range of model instances (not inclusive)
170            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
171            * @return the ordered range of matching rows
172            */
173            @Override
174            public <T> java.util.List<T> dynamicQuery(
175                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
176                    int end,
177                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
178                    return _mbStatsUserLocalService.dynamicQuery(dynamicQuery, start, end,
179                            orderByComparator);
180            }
181    
182            /**
183            * Returns the number of rows matching the dynamic query.
184            *
185            * @param dynamicQuery the dynamic query
186            * @return the number of rows matching the dynamic query
187            */
188            @Override
189            public long dynamicQueryCount(
190                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
191                    return _mbStatsUserLocalService.dynamicQueryCount(dynamicQuery);
192            }
193    
194            /**
195            * Returns the number of rows matching the dynamic query.
196            *
197            * @param dynamicQuery the dynamic query
198            * @param projection the projection to apply to the query
199            * @return the number of rows matching the dynamic query
200            */
201            @Override
202            public long dynamicQueryCount(
203                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
204                    com.liferay.portal.kernel.dao.orm.Projection projection) {
205                    return _mbStatsUserLocalService.dynamicQueryCount(dynamicQuery,
206                            projection);
207            }
208    
209            @Override
210            public com.liferay.portlet.messageboards.model.MBStatsUser fetchMBStatsUser(
211                    long statsUserId) {
212                    return _mbStatsUserLocalService.fetchMBStatsUser(statsUserId);
213            }
214    
215            @Override
216            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
217                    return _mbStatsUserLocalService.getActionableDynamicQuery();
218            }
219    
220            /**
221            * Returns the Spring bean ID for this bean.
222            *
223            * @return the Spring bean ID for this bean
224            */
225            @Override
226            public java.lang.String getBeanIdentifier() {
227                    return _mbStatsUserLocalService.getBeanIdentifier();
228            }
229    
230            @Override
231            public java.util.Date getLastPostDateByUserId(long groupId, long userId) {
232                    return _mbStatsUserLocalService.getLastPostDateByUserId(groupId, userId);
233            }
234    
235            /**
236            * Returns the message boards stats user with the primary key.
237            *
238            * @param statsUserId the primary key of the message boards stats user
239            * @return the message boards stats user
240            * @throws PortalException if a message boards stats user with the primary key could not be found
241            */
242            @Override
243            public com.liferay.portlet.messageboards.model.MBStatsUser getMBStatsUser(
244                    long statsUserId)
245                    throws com.liferay.portal.kernel.exception.PortalException {
246                    return _mbStatsUserLocalService.getMBStatsUser(statsUserId);
247            }
248    
249            /**
250            * Returns a range of all the message boards stats users.
251            *
252            * <p>
253            * 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.
254            * </p>
255            *
256            * @param start the lower bound of the range of message boards stats users
257            * @param end the upper bound of the range of message boards stats users (not inclusive)
258            * @return the range of message boards stats users
259            */
260            @Override
261            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> getMBStatsUsers(
262                    int start, int end) {
263                    return _mbStatsUserLocalService.getMBStatsUsers(start, end);
264            }
265    
266            /**
267            * Returns the number of message boards stats users.
268            *
269            * @return the number of message boards stats users
270            */
271            @Override
272            public int getMBStatsUsersCount() {
273                    return _mbStatsUserLocalService.getMBStatsUsersCount();
274            }
275    
276            @Override
277            public long getMessageCountByGroupId(long groupId) {
278                    return _mbStatsUserLocalService.getMessageCountByGroupId(groupId);
279            }
280    
281            @Override
282            public long getMessageCountByUserId(long userId) {
283                    return _mbStatsUserLocalService.getMessageCountByUserId(userId);
284            }
285    
286            @Override
287            public com.liferay.portal.model.PersistedModel getPersistedModel(
288                    java.io.Serializable primaryKeyObj)
289                    throws com.liferay.portal.kernel.exception.PortalException {
290                    return _mbStatsUserLocalService.getPersistedModel(primaryKeyObj);
291            }
292    
293            @Override
294            public com.liferay.portlet.messageboards.model.MBStatsUser getStatsUser(
295                    long groupId, long userId) {
296                    return _mbStatsUserLocalService.getStatsUser(groupId, userId);
297            }
298    
299            @Override
300            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> getStatsUsersByGroupId(
301                    long groupId, int start, int end)
302                    throws com.liferay.portal.kernel.exception.PortalException {
303                    return _mbStatsUserLocalService.getStatsUsersByGroupId(groupId, start,
304                            end);
305            }
306    
307            @Override
308            public int getStatsUsersByGroupIdCount(long groupId)
309                    throws com.liferay.portal.kernel.exception.PortalException {
310                    return _mbStatsUserLocalService.getStatsUsersByGroupIdCount(groupId);
311            }
312    
313            @Override
314            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> getStatsUsersByUserId(
315                    long userId) {
316                    return _mbStatsUserLocalService.getStatsUsersByUserId(userId);
317            }
318    
319            /**
320            * Sets the Spring bean ID for this bean.
321            *
322            * @param beanIdentifier the Spring bean ID for this bean
323            */
324            @Override
325            public void setBeanIdentifier(java.lang.String beanIdentifier) {
326                    _mbStatsUserLocalService.setBeanIdentifier(beanIdentifier);
327            }
328    
329            /**
330            * Updates the message boards stats user in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
331            *
332            * @param mbStatsUser the message boards stats user
333            * @return the message boards stats user that was updated
334            */
335            @Override
336            public com.liferay.portlet.messageboards.model.MBStatsUser updateMBStatsUser(
337                    com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser) {
338                    return _mbStatsUserLocalService.updateMBStatsUser(mbStatsUser);
339            }
340    
341            @Override
342            public com.liferay.portlet.messageboards.model.MBStatsUser updateStatsUser(
343                    long groupId, long userId) {
344                    return _mbStatsUserLocalService.updateStatsUser(groupId, userId);
345            }
346    
347            @Override
348            public com.liferay.portlet.messageboards.model.MBStatsUser updateStatsUser(
349                    long groupId, long userId, java.util.Date lastPostDate) {
350                    return _mbStatsUserLocalService.updateStatsUser(groupId, userId,
351                            lastPostDate);
352            }
353    
354            @Override
355            public com.liferay.portlet.messageboards.model.MBStatsUser updateStatsUser(
356                    long groupId, long userId, int messageCount, java.util.Date lastPostDate) {
357                    return _mbStatsUserLocalService.updateStatsUser(groupId, userId,
358                            messageCount, lastPostDate);
359            }
360    
361            /**
362             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
363             */
364            @Deprecated
365            public MBStatsUserLocalService getWrappedMBStatsUserLocalService() {
366                    return _mbStatsUserLocalService;
367            }
368    
369            /**
370             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
371             */
372            @Deprecated
373            public void setWrappedMBStatsUserLocalService(
374                    MBStatsUserLocalService mbStatsUserLocalService) {
375                    _mbStatsUserLocalService = mbStatsUserLocalService;
376            }
377    
378            @Override
379            public MBStatsUserLocalService getWrappedService() {
380                    return _mbStatsUserLocalService;
381            }
382    
383            @Override
384            public void setWrappedService(
385                    MBStatsUserLocalService mbStatsUserLocalService) {
386                    _mbStatsUserLocalService = mbStatsUserLocalService;
387            }
388    
389            private MBStatsUserLocalService _mbStatsUserLocalService;
390    }