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