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