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            @Override
221            public java.util.Date getLastPostDateByUserId(long groupId, long userId) {
222                    return _mbStatsUserLocalService.getLastPostDateByUserId(groupId, userId);
223            }
224    
225            /**
226            * Returns the message boards stats user with the primary key.
227            *
228            * @param statsUserId the primary key of the message boards stats user
229            * @return the message boards stats user
230            * @throws PortalException if a message boards stats user with the primary key could not be found
231            */
232            @Override
233            public com.liferay.portlet.messageboards.model.MBStatsUser getMBStatsUser(
234                    long statsUserId)
235                    throws com.liferay.portal.kernel.exception.PortalException {
236                    return _mbStatsUserLocalService.getMBStatsUser(statsUserId);
237            }
238    
239            /**
240            * Returns a range of all the message boards stats users.
241            *
242            * <p>
243            * 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.
244            * </p>
245            *
246            * @param start the lower bound of the range of message boards stats users
247            * @param end the upper bound of the range of message boards stats users (not inclusive)
248            * @return the range of message boards stats users
249            */
250            @Override
251            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> getMBStatsUsers(
252                    int start, int end) {
253                    return _mbStatsUserLocalService.getMBStatsUsers(start, end);
254            }
255    
256            /**
257            * Returns the number of message boards stats users.
258            *
259            * @return the number of message boards stats users
260            */
261            @Override
262            public int getMBStatsUsersCount() {
263                    return _mbStatsUserLocalService.getMBStatsUsersCount();
264            }
265    
266            @Override
267            public long getMessageCountByGroupId(long groupId) {
268                    return _mbStatsUserLocalService.getMessageCountByGroupId(groupId);
269            }
270    
271            @Override
272            public long getMessageCountByUserId(long userId) {
273                    return _mbStatsUserLocalService.getMessageCountByUserId(userId);
274            }
275    
276            /**
277            * Returns the OSGi service identifier.
278            *
279            * @return the OSGi service identifier
280            */
281            @Override
282            public java.lang.String getOSGiServiceIdentifier() {
283                    return _mbStatsUserLocalService.getOSGiServiceIdentifier();
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            * Updates the message boards stats user in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
321            *
322            * @param mbStatsUser the message boards stats user
323            * @return the message boards stats user that was updated
324            */
325            @Override
326            public com.liferay.portlet.messageboards.model.MBStatsUser updateMBStatsUser(
327                    com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser) {
328                    return _mbStatsUserLocalService.updateMBStatsUser(mbStatsUser);
329            }
330    
331            @Override
332            public com.liferay.portlet.messageboards.model.MBStatsUser updateStatsUser(
333                    long groupId, long userId) {
334                    return _mbStatsUserLocalService.updateStatsUser(groupId, userId);
335            }
336    
337            @Override
338            public com.liferay.portlet.messageboards.model.MBStatsUser updateStatsUser(
339                    long groupId, long userId, java.util.Date lastPostDate) {
340                    return _mbStatsUserLocalService.updateStatsUser(groupId, userId,
341                            lastPostDate);
342            }
343    
344            @Override
345            public com.liferay.portlet.messageboards.model.MBStatsUser updateStatsUser(
346                    long groupId, long userId, int messageCount, java.util.Date lastPostDate) {
347                    return _mbStatsUserLocalService.updateStatsUser(groupId, userId,
348                            messageCount, lastPostDate);
349            }
350    
351            /**
352             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
353             */
354            @Deprecated
355            public MBStatsUserLocalService getWrappedMBStatsUserLocalService() {
356                    return _mbStatsUserLocalService;
357            }
358    
359            /**
360             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
361             */
362            @Deprecated
363            public void setWrappedMBStatsUserLocalService(
364                    MBStatsUserLocalService mbStatsUserLocalService) {
365                    _mbStatsUserLocalService = mbStatsUserLocalService;
366            }
367    
368            @Override
369            public MBStatsUserLocalService getWrappedService() {
370                    return _mbStatsUserLocalService;
371            }
372    
373            @Override
374            public void setWrappedService(
375                    MBStatsUserLocalService mbStatsUserLocalService) {
376                    _mbStatsUserLocalService = mbStatsUserLocalService;
377            }
378    
379            private MBStatsUserLocalService _mbStatsUserLocalService;
380    }