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.message.boards.kernel.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.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.message.boards.kernel.model.MBStatsUser addMBStatsUser(
044                    com.liferay.message.boards.kernel.model.MBStatsUser mbStatsUser) {
045                    return _mbStatsUserLocalService.addMBStatsUser(mbStatsUser);
046            }
047    
048            @Override
049            public com.liferay.message.boards.kernel.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.message.boards.kernel.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.message.boards.kernel.model.MBStatsUser deleteMBStatsUser(
074                    com.liferay.message.boards.kernel.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.message.boards.kernel.model.MBStatsUser deleteMBStatsUser(
087                    long statsUserId)
088                    throws com.liferay.portal.kernel.exception.PortalException {
089                    return _mbStatsUserLocalService.deleteMBStatsUser(statsUserId);
090            }
091    
092            @Override
093            public com.liferay.message.boards.kernel.model.MBStatsUser fetchMBStatsUser(
094                    long statsUserId) {
095                    return _mbStatsUserLocalService.fetchMBStatsUser(statsUserId);
096            }
097    
098            /**
099            * Returns the message boards stats user with the primary key.
100            *
101            * @param statsUserId the primary key of the message boards stats user
102            * @return the message boards stats user
103            * @throws PortalException if a message boards stats user with the primary key could not be found
104            */
105            @Override
106            public com.liferay.message.boards.kernel.model.MBStatsUser getMBStatsUser(
107                    long statsUserId)
108                    throws com.liferay.portal.kernel.exception.PortalException {
109                    return _mbStatsUserLocalService.getMBStatsUser(statsUserId);
110            }
111    
112            @Override
113            public com.liferay.message.boards.kernel.model.MBStatsUser getStatsUser(
114                    long groupId, long userId) {
115                    return _mbStatsUserLocalService.getStatsUser(groupId, userId);
116            }
117    
118            /**
119            * Updates the message boards stats user in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
120            *
121            * @param mbStatsUser the message boards stats user
122            * @return the message boards stats user that was updated
123            */
124            @Override
125            public com.liferay.message.boards.kernel.model.MBStatsUser updateMBStatsUser(
126                    com.liferay.message.boards.kernel.model.MBStatsUser mbStatsUser) {
127                    return _mbStatsUserLocalService.updateMBStatsUser(mbStatsUser);
128            }
129    
130            @Override
131            public com.liferay.message.boards.kernel.model.MBStatsUser updateStatsUser(
132                    long groupId, long userId) {
133                    return _mbStatsUserLocalService.updateStatsUser(groupId, userId);
134            }
135    
136            @Override
137            public com.liferay.message.boards.kernel.model.MBStatsUser updateStatsUser(
138                    long groupId, long userId, int messageCount, java.util.Date lastPostDate) {
139                    return _mbStatsUserLocalService.updateStatsUser(groupId, userId,
140                            messageCount, lastPostDate);
141            }
142    
143            @Override
144            public com.liferay.message.boards.kernel.model.MBStatsUser updateStatsUser(
145                    long groupId, long userId, java.util.Date lastPostDate) {
146                    return _mbStatsUserLocalService.updateStatsUser(groupId, userId,
147                            lastPostDate);
148            }
149    
150            @Override
151            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
152                    return _mbStatsUserLocalService.getActionableDynamicQuery();
153            }
154    
155            @Override
156            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
157                    return _mbStatsUserLocalService.dynamicQuery();
158            }
159    
160            @Override
161            public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
162                    return _mbStatsUserLocalService.getIndexableActionableDynamicQuery();
163            }
164    
165            /**
166            * @throws PortalException
167            */
168            @Override
169            public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(
170                    com.liferay.portal.kernel.model.PersistedModel persistedModel)
171                    throws com.liferay.portal.kernel.exception.PortalException {
172                    return _mbStatsUserLocalService.deletePersistedModel(persistedModel);
173            }
174    
175            @Override
176            public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(
177                    java.io.Serializable primaryKeyObj)
178                    throws com.liferay.portal.kernel.exception.PortalException {
179                    return _mbStatsUserLocalService.getPersistedModel(primaryKeyObj);
180            }
181    
182            /**
183            * Returns the number of message boards stats users.
184            *
185            * @return the number of message boards stats users
186            */
187            @Override
188            public int getMBStatsUsersCount() {
189                    return _mbStatsUserLocalService.getMBStatsUsersCount();
190            }
191    
192            @Override
193            public int getStatsUsersByGroupIdCount(long groupId)
194                    throws com.liferay.portal.kernel.exception.PortalException {
195                    return _mbStatsUserLocalService.getStatsUsersByGroupIdCount(groupId);
196            }
197    
198            /**
199            * Returns the OSGi service identifier.
200            *
201            * @return the OSGi service identifier
202            */
203            @Override
204            public java.lang.String getOSGiServiceIdentifier() {
205                    return _mbStatsUserLocalService.getOSGiServiceIdentifier();
206            }
207    
208            @Override
209            public java.util.Date getLastPostDateByUserId(long groupId, long userId) {
210                    return _mbStatsUserLocalService.getLastPostDateByUserId(groupId, userId);
211            }
212    
213            /**
214            * Performs a dynamic query on the database and returns the matching rows.
215            *
216            * @param dynamicQuery the dynamic query
217            * @return the matching rows
218            */
219            @Override
220            public <T> java.util.List<T> dynamicQuery(
221                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
222                    return _mbStatsUserLocalService.dynamicQuery(dynamicQuery);
223            }
224    
225            /**
226            * Performs a dynamic query on the database and returns a range of the matching rows.
227            *
228            * <p>
229            * 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.
230            * </p>
231            *
232            * @param dynamicQuery the dynamic query
233            * @param start the lower bound of the range of model instances
234            * @param end the upper bound of the range of model instances (not inclusive)
235            * @return the range of matching rows
236            */
237            @Override
238            public <T> java.util.List<T> dynamicQuery(
239                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
240                    int end) {
241                    return _mbStatsUserLocalService.dynamicQuery(dynamicQuery, start, end);
242            }
243    
244            /**
245            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
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 dynamicQuery the dynamic query
252            * @param start the lower bound of the range of model instances
253            * @param end the upper bound of the range of model instances (not inclusive)
254            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
255            * @return the ordered range of matching rows
256            */
257            @Override
258            public <T> java.util.List<T> dynamicQuery(
259                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
260                    int end,
261                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
262                    return _mbStatsUserLocalService.dynamicQuery(dynamicQuery, start, end,
263                            orderByComparator);
264            }
265    
266            /**
267            * Returns a range of all the message boards stats users.
268            *
269            * <p>
270            * 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.
271            * </p>
272            *
273            * @param start the lower bound of the range of message boards stats users
274            * @param end the upper bound of the range of message boards stats users (not inclusive)
275            * @return the range of message boards stats users
276            */
277            @Override
278            public java.util.List<com.liferay.message.boards.kernel.model.MBStatsUser> getMBStatsUsers(
279                    int start, int end) {
280                    return _mbStatsUserLocalService.getMBStatsUsers(start, end);
281            }
282    
283            @Override
284            public java.util.List<com.liferay.message.boards.kernel.model.MBStatsUser> getStatsUsersByGroupId(
285                    long groupId, int start, int end)
286                    throws com.liferay.portal.kernel.exception.PortalException {
287                    return _mbStatsUserLocalService.getStatsUsersByGroupId(groupId, start,
288                            end);
289            }
290    
291            @Override
292            public java.util.List<com.liferay.message.boards.kernel.model.MBStatsUser> getStatsUsersByUserId(
293                    long userId) {
294                    return _mbStatsUserLocalService.getStatsUsersByUserId(userId);
295            }
296    
297            /**
298            * Returns the number of rows matching the dynamic query.
299            *
300            * @param dynamicQuery the dynamic query
301            * @return the number of rows matching the dynamic query
302            */
303            @Override
304            public long dynamicQueryCount(
305                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
306                    return _mbStatsUserLocalService.dynamicQueryCount(dynamicQuery);
307            }
308    
309            /**
310            * Returns the number of rows matching the dynamic query.
311            *
312            * @param dynamicQuery the dynamic query
313            * @param projection the projection to apply to the query
314            * @return the number of rows matching the dynamic query
315            */
316            @Override
317            public long dynamicQueryCount(
318                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
319                    com.liferay.portal.kernel.dao.orm.Projection projection) {
320                    return _mbStatsUserLocalService.dynamicQueryCount(dynamicQuery,
321                            projection);
322            }
323    
324            @Override
325            public long getMessageCountByGroupId(long groupId) {
326                    return _mbStatsUserLocalService.getMessageCountByGroupId(groupId);
327            }
328    
329            @Override
330            public long getMessageCountByUserId(long userId) {
331                    return _mbStatsUserLocalService.getMessageCountByUserId(userId);
332            }
333    
334            @Override
335            public void deleteStatsUser(
336                    com.liferay.message.boards.kernel.model.MBStatsUser statsUser) {
337                    _mbStatsUserLocalService.deleteStatsUser(statsUser);
338            }
339    
340            @Override
341            public void deleteStatsUser(long statsUserId)
342                    throws com.liferay.portal.kernel.exception.PortalException {
343                    _mbStatsUserLocalService.deleteStatsUser(statsUserId);
344            }
345    
346            @Override
347            public void deleteStatsUsersByGroupId(long groupId) {
348                    _mbStatsUserLocalService.deleteStatsUsersByGroupId(groupId);
349            }
350    
351            @Override
352            public void deleteStatsUsersByUserId(long userId) {
353                    _mbStatsUserLocalService.deleteStatsUsersByUserId(userId);
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    }