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