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.social.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.service.ServiceWrapper;
020    
021    /**
022     * Provides a wrapper for {@link SocialActivityLimitLocalService}.
023     *
024     * @author Brian Wing Shun Chan
025     * @see SocialActivityLimitLocalService
026     * @generated
027     */
028    @ProviderType
029    public class SocialActivityLimitLocalServiceWrapper
030            implements SocialActivityLimitLocalService,
031                    ServiceWrapper<SocialActivityLimitLocalService> {
032            public SocialActivityLimitLocalServiceWrapper(
033                    SocialActivityLimitLocalService socialActivityLimitLocalService) {
034                    _socialActivityLimitLocalService = socialActivityLimitLocalService;
035            }
036    
037            @Override
038            public com.liferay.portlet.social.model.SocialActivityLimit addActivityLimit(
039                    long userId, long groupId, long classNameId, long classPK,
040                    int activityType, java.lang.String activityCounterName, int limitPeriod)
041                    throws com.liferay.portal.kernel.exception.PortalException {
042                    return _socialActivityLimitLocalService.addActivityLimit(userId,
043                            groupId, classNameId, classPK, activityType, activityCounterName,
044                            limitPeriod);
045            }
046    
047            /**
048            * Adds the social activity limit to the database. Also notifies the appropriate model listeners.
049            *
050            * @param socialActivityLimit the social activity limit
051            * @return the social activity limit that was added
052            */
053            @Override
054            public com.liferay.portlet.social.model.SocialActivityLimit addSocialActivityLimit(
055                    com.liferay.portlet.social.model.SocialActivityLimit socialActivityLimit) {
056                    return _socialActivityLimitLocalService.addSocialActivityLimit(socialActivityLimit);
057            }
058    
059            /**
060            * Creates a new social activity limit with the primary key. Does not add the social activity limit to the database.
061            *
062            * @param activityLimitId the primary key for the new social activity limit
063            * @return the new social activity limit
064            */
065            @Override
066            public com.liferay.portlet.social.model.SocialActivityLimit createSocialActivityLimit(
067                    long activityLimitId) {
068                    return _socialActivityLimitLocalService.createSocialActivityLimit(activityLimitId);
069            }
070    
071            /**
072            * @throws PortalException
073            */
074            @Override
075            public com.liferay.portal.model.PersistedModel deletePersistedModel(
076                    com.liferay.portal.model.PersistedModel persistedModel)
077                    throws com.liferay.portal.kernel.exception.PortalException {
078                    return _socialActivityLimitLocalService.deletePersistedModel(persistedModel);
079            }
080    
081            /**
082            * Deletes the social activity limit with the primary key from the database. Also notifies the appropriate model listeners.
083            *
084            * @param activityLimitId the primary key of the social activity limit
085            * @return the social activity limit that was removed
086            * @throws PortalException if a social activity limit with the primary key could not be found
087            */
088            @Override
089            public com.liferay.portlet.social.model.SocialActivityLimit deleteSocialActivityLimit(
090                    long activityLimitId)
091                    throws com.liferay.portal.kernel.exception.PortalException {
092                    return _socialActivityLimitLocalService.deleteSocialActivityLimit(activityLimitId);
093            }
094    
095            /**
096            * Deletes the social activity limit from the database. Also notifies the appropriate model listeners.
097            *
098            * @param socialActivityLimit the social activity limit
099            * @return the social activity limit that was removed
100            */
101            @Override
102            public com.liferay.portlet.social.model.SocialActivityLimit deleteSocialActivityLimit(
103                    com.liferay.portlet.social.model.SocialActivityLimit socialActivityLimit) {
104                    return _socialActivityLimitLocalService.deleteSocialActivityLimit(socialActivityLimit);
105            }
106    
107            @Override
108            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
109                    return _socialActivityLimitLocalService.dynamicQuery();
110            }
111    
112            /**
113            * Performs a dynamic query on the database and returns the matching rows.
114            *
115            * @param dynamicQuery the dynamic query
116            * @return the matching rows
117            */
118            @Override
119            public <T> java.util.List<T> dynamicQuery(
120                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
121                    return _socialActivityLimitLocalService.dynamicQuery(dynamicQuery);
122            }
123    
124            /**
125            * Performs a dynamic query on the database and returns a range of the matching rows.
126            *
127            * <p>
128            * 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.social.model.impl.SocialActivityLimitModelImpl}. 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.
129            * </p>
130            *
131            * @param dynamicQuery the dynamic query
132            * @param start the lower bound of the range of model instances
133            * @param end the upper bound of the range of model instances (not inclusive)
134            * @return the range of matching rows
135            */
136            @Override
137            public <T> java.util.List<T> dynamicQuery(
138                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
139                    int end) {
140                    return _socialActivityLimitLocalService.dynamicQuery(dynamicQuery,
141                            start, end);
142            }
143    
144            /**
145            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
146            *
147            * <p>
148            * 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.social.model.impl.SocialActivityLimitModelImpl}. 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.
149            * </p>
150            *
151            * @param dynamicQuery the dynamic query
152            * @param start the lower bound of the range of model instances
153            * @param end the upper bound of the range of model instances (not inclusive)
154            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
155            * @return the ordered range of matching rows
156            */
157            @Override
158            public <T> java.util.List<T> dynamicQuery(
159                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
160                    int end,
161                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
162                    return _socialActivityLimitLocalService.dynamicQuery(dynamicQuery,
163                            start, end, orderByComparator);
164            }
165    
166            /**
167            * Returns the number of rows matching the dynamic query.
168            *
169            * @param dynamicQuery the dynamic query
170            * @return the number of rows matching the dynamic query
171            */
172            @Override
173            public long dynamicQueryCount(
174                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
175                    return _socialActivityLimitLocalService.dynamicQueryCount(dynamicQuery);
176            }
177    
178            /**
179            * Returns the number of rows matching the dynamic query.
180            *
181            * @param dynamicQuery the dynamic query
182            * @param projection the projection to apply to the query
183            * @return the number of rows matching the dynamic query
184            */
185            @Override
186            public long dynamicQueryCount(
187                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
188                    com.liferay.portal.kernel.dao.orm.Projection projection) {
189                    return _socialActivityLimitLocalService.dynamicQueryCount(dynamicQuery,
190                            projection);
191            }
192    
193            @Override
194            public com.liferay.portlet.social.model.SocialActivityLimit fetchActivityLimit(
195                    long groupId, long userId, long classNameId, long classPK,
196                    int activityType, java.lang.String activityCounterName) {
197                    return _socialActivityLimitLocalService.fetchActivityLimit(groupId,
198                            userId, classNameId, classPK, activityType, activityCounterName);
199            }
200    
201            @Override
202            public com.liferay.portlet.social.model.SocialActivityLimit fetchSocialActivityLimit(
203                    long activityLimitId) {
204                    return _socialActivityLimitLocalService.fetchSocialActivityLimit(activityLimitId);
205            }
206    
207            @Override
208            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
209                    return _socialActivityLimitLocalService.getActionableDynamicQuery();
210            }
211    
212            /**
213            * Returns the Spring bean ID for this bean.
214            *
215            * @return the Spring bean ID for this bean
216            */
217            @Override
218            public java.lang.String getBeanIdentifier() {
219                    return _socialActivityLimitLocalService.getBeanIdentifier();
220            }
221    
222            @Override
223            public com.liferay.portal.model.PersistedModel getPersistedModel(
224                    java.io.Serializable primaryKeyObj)
225                    throws com.liferay.portal.kernel.exception.PortalException {
226                    return _socialActivityLimitLocalService.getPersistedModel(primaryKeyObj);
227            }
228    
229            /**
230            * Returns the social activity limit with the primary key.
231            *
232            * @param activityLimitId the primary key of the social activity limit
233            * @return the social activity limit
234            * @throws PortalException if a social activity limit with the primary key could not be found
235            */
236            @Override
237            public com.liferay.portlet.social.model.SocialActivityLimit getSocialActivityLimit(
238                    long activityLimitId)
239                    throws com.liferay.portal.kernel.exception.PortalException {
240                    return _socialActivityLimitLocalService.getSocialActivityLimit(activityLimitId);
241            }
242    
243            /**
244            * Returns a range of all the social activity limits.
245            *
246            * <p>
247            * 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.social.model.impl.SocialActivityLimitModelImpl}. 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.
248            * </p>
249            *
250            * @param start the lower bound of the range of social activity limits
251            * @param end the upper bound of the range of social activity limits (not inclusive)
252            * @return the range of social activity limits
253            */
254            @Override
255            public java.util.List<com.liferay.portlet.social.model.SocialActivityLimit> getSocialActivityLimits(
256                    int start, int end) {
257                    return _socialActivityLimitLocalService.getSocialActivityLimits(start,
258                            end);
259            }
260    
261            /**
262            * Returns the number of social activity limits.
263            *
264            * @return the number of social activity limits
265            */
266            @Override
267            public int getSocialActivityLimitsCount() {
268                    return _socialActivityLimitLocalService.getSocialActivityLimitsCount();
269            }
270    
271            /**
272            * Sets the Spring bean ID for this bean.
273            *
274            * @param beanIdentifier the Spring bean ID for this bean
275            */
276            @Override
277            public void setBeanIdentifier(java.lang.String beanIdentifier) {
278                    _socialActivityLimitLocalService.setBeanIdentifier(beanIdentifier);
279            }
280    
281            /**
282            * Updates the social activity limit in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
283            *
284            * @param socialActivityLimit the social activity limit
285            * @return the social activity limit that was updated
286            */
287            @Override
288            public com.liferay.portlet.social.model.SocialActivityLimit updateSocialActivityLimit(
289                    com.liferay.portlet.social.model.SocialActivityLimit socialActivityLimit) {
290                    return _socialActivityLimitLocalService.updateSocialActivityLimit(socialActivityLimit);
291            }
292    
293            /**
294             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
295             */
296            @Deprecated
297            public SocialActivityLimitLocalService getWrappedSocialActivityLimitLocalService() {
298                    return _socialActivityLimitLocalService;
299            }
300    
301            /**
302             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
303             */
304            @Deprecated
305            public void setWrappedSocialActivityLimitLocalService(
306                    SocialActivityLimitLocalService socialActivityLimitLocalService) {
307                    _socialActivityLimitLocalService = socialActivityLimitLocalService;
308            }
309    
310            @Override
311            public SocialActivityLimitLocalService getWrappedService() {
312                    return _socialActivityLimitLocalService;
313            }
314    
315            @Override
316            public void setWrappedService(
317                    SocialActivityLimitLocalService socialActivityLimitLocalService) {
318                    _socialActivityLimitLocalService = socialActivityLimitLocalService;
319            }
320    
321            private SocialActivityLimitLocalService _socialActivityLimitLocalService;
322    }