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 Spring bean ID for this bean.
217            *
218            * @return the Spring bean ID for this bean
219            */
220            @Override
221            public java.lang.String getBeanIdentifier() {
222                    return _blogsStatsUserLocalService.getBeanIdentifier();
223            }
224    
225            /**
226            * Returns the blogs stats user with the primary key.
227            *
228            * @param statsUserId the primary key of the blogs stats user
229            * @return the blogs stats user
230            * @throws PortalException if a blogs stats user with the primary key could not be found
231            */
232            @Override
233            public com.liferay.portlet.blogs.model.BlogsStatsUser getBlogsStatsUser(
234                    long statsUserId)
235                    throws com.liferay.portal.kernel.exception.PortalException {
236                    return _blogsStatsUserLocalService.getBlogsStatsUser(statsUserId);
237            }
238    
239            /**
240            * Returns a range of all the blogs stats users.
241            *
242            * <p>
243            * 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.
244            * </p>
245            *
246            * @param start the lower bound of the range of blogs stats users
247            * @param end the upper bound of the range of blogs stats users (not inclusive)
248            * @return the range of blogs stats users
249            */
250            @Override
251            public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> getBlogsStatsUsers(
252                    int start, int end) {
253                    return _blogsStatsUserLocalService.getBlogsStatsUsers(start, end);
254            }
255    
256            /**
257            * Returns the number of blogs stats users.
258            *
259            * @return the number of blogs stats users
260            */
261            @Override
262            public int getBlogsStatsUsersCount() {
263                    return _blogsStatsUserLocalService.getBlogsStatsUsersCount();
264            }
265    
266            @Override
267            public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> getCompanyStatsUsers(
268                    long companyId, int start, int end) {
269                    return _blogsStatsUserLocalService.getCompanyStatsUsers(companyId,
270                            start, end);
271            }
272    
273            @Override
274            public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> getCompanyStatsUsers(
275                    long companyId, int start, int end,
276                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.blogs.model.BlogsStatsUser> obc) {
277                    return _blogsStatsUserLocalService.getCompanyStatsUsers(companyId,
278                            start, end, obc);
279            }
280    
281            @Override
282            public int getCompanyStatsUsersCount(long companyId) {
283                    return _blogsStatsUserLocalService.getCompanyStatsUsersCount(companyId);
284            }
285    
286            @Override
287            public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> getGroupStatsUsers(
288                    long groupId, int start, int end) {
289                    return _blogsStatsUserLocalService.getGroupStatsUsers(groupId, start,
290                            end);
291            }
292    
293            @Override
294            public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> getGroupStatsUsers(
295                    long groupId, int start, int end,
296                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.blogs.model.BlogsStatsUser> obc) {
297                    return _blogsStatsUserLocalService.getGroupStatsUsers(groupId, start,
298                            end, obc);
299            }
300    
301            @Override
302            public int getGroupStatsUsersCount(long groupId) {
303                    return _blogsStatsUserLocalService.getGroupStatsUsersCount(groupId);
304            }
305    
306            @Override
307            public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> getGroupsStatsUsers(
308                    long companyId, long groupId, int start, int end) {
309                    return _blogsStatsUserLocalService.getGroupsStatsUsers(companyId,
310                            groupId, start, end);
311            }
312    
313            @Override
314            public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> getOrganizationStatsUsers(
315                    long organizationId, int start, int end) {
316                    return _blogsStatsUserLocalService.getOrganizationStatsUsers(organizationId,
317                            start, end);
318            }
319    
320            @Override
321            public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> getOrganizationStatsUsers(
322                    long organizationId, int start, int end,
323                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.blogs.model.BlogsStatsUser> obc) {
324                    return _blogsStatsUserLocalService.getOrganizationStatsUsers(organizationId,
325                            start, end, obc);
326            }
327    
328            @Override
329            public int getOrganizationStatsUsersCount(long organizationId) {
330                    return _blogsStatsUserLocalService.getOrganizationStatsUsersCount(organizationId);
331            }
332    
333            @Override
334            public com.liferay.portal.model.PersistedModel getPersistedModel(
335                    java.io.Serializable primaryKeyObj)
336                    throws com.liferay.portal.kernel.exception.PortalException {
337                    return _blogsStatsUserLocalService.getPersistedModel(primaryKeyObj);
338            }
339    
340            @Override
341            public com.liferay.portlet.blogs.model.BlogsStatsUser getStatsUser(
342                    long groupId, long userId)
343                    throws com.liferay.portal.kernel.exception.PortalException {
344                    return _blogsStatsUserLocalService.getStatsUser(groupId, userId);
345            }
346    
347            /**
348            * Sets the Spring bean ID for this bean.
349            *
350            * @param beanIdentifier the Spring bean ID for this bean
351            */
352            @Override
353            public void setBeanIdentifier(java.lang.String beanIdentifier) {
354                    _blogsStatsUserLocalService.setBeanIdentifier(beanIdentifier);
355            }
356    
357            /**
358            * Updates the blogs stats user in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
359            *
360            * @param blogsStatsUser the blogs stats user
361            * @return the blogs stats user that was updated
362            */
363            @Override
364            public com.liferay.portlet.blogs.model.BlogsStatsUser updateBlogsStatsUser(
365                    com.liferay.portlet.blogs.model.BlogsStatsUser blogsStatsUser) {
366                    return _blogsStatsUserLocalService.updateBlogsStatsUser(blogsStatsUser);
367            }
368    
369            @Override
370            public void updateStatsUser(long groupId, long userId)
371                    throws com.liferay.portal.kernel.exception.PortalException {
372                    _blogsStatsUserLocalService.updateStatsUser(groupId, userId);
373            }
374    
375            @Override
376            public void updateStatsUser(long groupId, long userId,
377                    java.util.Date displayDate)
378                    throws com.liferay.portal.kernel.exception.PortalException {
379                    _blogsStatsUserLocalService.updateStatsUser(groupId, userId, displayDate);
380            }
381    
382            /**
383             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
384             */
385            @Deprecated
386            public BlogsStatsUserLocalService getWrappedBlogsStatsUserLocalService() {
387                    return _blogsStatsUserLocalService;
388            }
389    
390            /**
391             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
392             */
393            @Deprecated
394            public void setWrappedBlogsStatsUserLocalService(
395                    BlogsStatsUserLocalService blogsStatsUserLocalService) {
396                    _blogsStatsUserLocalService = blogsStatsUserLocalService;
397            }
398    
399            @Override
400            public BlogsStatsUserLocalService getWrappedService() {
401                    return _blogsStatsUserLocalService;
402            }
403    
404            @Override
405            public void setWrappedService(
406                    BlogsStatsUserLocalService blogsStatsUserLocalService) {
407                    _blogsStatsUserLocalService = blogsStatsUserLocalService;
408            }
409    
410            private BlogsStatsUserLocalService _blogsStatsUserLocalService;
411    }