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