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