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