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