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