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 com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
222                    return _mbStatsUserLocalService.getIndexableActionableDynamicQuery();
223            }
224    
225            @Override
226            public java.util.Date getLastPostDateByUserId(long groupId, long userId) {
227                    return _mbStatsUserLocalService.getLastPostDateByUserId(groupId, userId);
228            }
229    
230            /**
231            * Returns the message boards stats user with the primary key.
232            *
233            * @param statsUserId the primary key of the message boards stats user
234            * @return the message boards stats user
235            * @throws PortalException if a message boards stats user with the primary key could not be found
236            */
237            @Override
238            public com.liferay.portlet.messageboards.model.MBStatsUser getMBStatsUser(
239                    long statsUserId)
240                    throws com.liferay.portal.kernel.exception.PortalException {
241                    return _mbStatsUserLocalService.getMBStatsUser(statsUserId);
242            }
243    
244            /**
245            * Returns a range of all the message boards stats users.
246            *
247            * <p>
248            * 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.
249            * </p>
250            *
251            * @param start the lower bound of the range of message boards stats users
252            * @param end the upper bound of the range of message boards stats users (not inclusive)
253            * @return the range of message boards stats users
254            */
255            @Override
256            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> getMBStatsUsers(
257                    int start, int end) {
258                    return _mbStatsUserLocalService.getMBStatsUsers(start, end);
259            }
260    
261            /**
262            * Returns the number of message boards stats users.
263            *
264            * @return the number of message boards stats users
265            */
266            @Override
267            public int getMBStatsUsersCount() {
268                    return _mbStatsUserLocalService.getMBStatsUsersCount();
269            }
270    
271            @Override
272            public long getMessageCountByGroupId(long groupId) {
273                    return _mbStatsUserLocalService.getMessageCountByGroupId(groupId);
274            }
275    
276            @Override
277            public long getMessageCountByUserId(long userId) {
278                    return _mbStatsUserLocalService.getMessageCountByUserId(userId);
279            }
280    
281            /**
282            * Returns the OSGi service identifier.
283            *
284            * @return the OSGi service identifier
285            */
286            @Override
287            public java.lang.String getOSGiServiceIdentifier() {
288                    return _mbStatsUserLocalService.getOSGiServiceIdentifier();
289            }
290    
291            @Override
292            public com.liferay.portal.model.PersistedModel getPersistedModel(
293                    java.io.Serializable primaryKeyObj)
294                    throws com.liferay.portal.kernel.exception.PortalException {
295                    return _mbStatsUserLocalService.getPersistedModel(primaryKeyObj);
296            }
297    
298            @Override
299            public com.liferay.portlet.messageboards.model.MBStatsUser getStatsUser(
300                    long groupId, long userId) {
301                    return _mbStatsUserLocalService.getStatsUser(groupId, userId);
302            }
303    
304            @Override
305            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> getStatsUsersByGroupId(
306                    long groupId, int start, int end)
307                    throws com.liferay.portal.kernel.exception.PortalException {
308                    return _mbStatsUserLocalService.getStatsUsersByGroupId(groupId, start,
309                            end);
310            }
311    
312            @Override
313            public int getStatsUsersByGroupIdCount(long groupId)
314                    throws com.liferay.portal.kernel.exception.PortalException {
315                    return _mbStatsUserLocalService.getStatsUsersByGroupIdCount(groupId);
316            }
317    
318            @Override
319            public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> getStatsUsersByUserId(
320                    long userId) {
321                    return _mbStatsUserLocalService.getStatsUsersByUserId(userId);
322            }
323    
324            /**
325            * Updates the message boards stats user in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
326            *
327            * @param mbStatsUser the message boards stats user
328            * @return the message boards stats user that was updated
329            */
330            @Override
331            public com.liferay.portlet.messageboards.model.MBStatsUser updateMBStatsUser(
332                    com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser) {
333                    return _mbStatsUserLocalService.updateMBStatsUser(mbStatsUser);
334            }
335    
336            @Override
337            public com.liferay.portlet.messageboards.model.MBStatsUser updateStatsUser(
338                    long groupId, long userId) {
339                    return _mbStatsUserLocalService.updateStatsUser(groupId, userId);
340            }
341    
342            @Override
343            public com.liferay.portlet.messageboards.model.MBStatsUser updateStatsUser(
344                    long groupId, long userId, java.util.Date lastPostDate) {
345                    return _mbStatsUserLocalService.updateStatsUser(groupId, userId,
346                            lastPostDate);
347            }
348    
349            @Override
350            public com.liferay.portlet.messageboards.model.MBStatsUser updateStatsUser(
351                    long groupId, long userId, int messageCount, java.util.Date lastPostDate) {
352                    return _mbStatsUserLocalService.updateStatsUser(groupId, userId,
353                            messageCount, lastPostDate);
354            }
355    
356            @Override
357            public MBStatsUserLocalService getWrappedService() {
358                    return _mbStatsUserLocalService;
359            }
360    
361            @Override
362            public void setWrappedService(
363                    MBStatsUserLocalService mbStatsUserLocalService) {
364                    _mbStatsUserLocalService = mbStatsUserLocalService;
365            }
366    
367            private MBStatsUserLocalService _mbStatsUserLocalService;
368    }