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.social.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 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.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
039                    return _socialActivityLimitLocalService.getActionableDynamicQuery();
040            }
041    
042            @Override
043            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
044                    return _socialActivityLimitLocalService.dynamicQuery();
045            }
046    
047            @Override
048            public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
049                    return _socialActivityLimitLocalService.getIndexableActionableDynamicQuery();
050            }
051    
052            /**
053            * @throws PortalException
054            */
055            @Override
056            public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(
057                    com.liferay.portal.kernel.model.PersistedModel persistedModel)
058                    throws com.liferay.portal.kernel.exception.PortalException {
059                    return _socialActivityLimitLocalService.deletePersistedModel(persistedModel);
060            }
061    
062            @Override
063            public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(
064                    java.io.Serializable primaryKeyObj)
065                    throws com.liferay.portal.kernel.exception.PortalException {
066                    return _socialActivityLimitLocalService.getPersistedModel(primaryKeyObj);
067            }
068    
069            @Override
070            public com.liferay.social.kernel.model.SocialActivityLimit addActivityLimit(
071                    long userId, long groupId, long classNameId, long classPK,
072                    int activityType, java.lang.String activityCounterName, int limitPeriod)
073                    throws com.liferay.portal.kernel.exception.PortalException {
074                    return _socialActivityLimitLocalService.addActivityLimit(userId,
075                            groupId, classNameId, classPK, activityType, activityCounterName,
076                            limitPeriod);
077            }
078    
079            /**
080            * Adds the social activity limit to the database. Also notifies the appropriate model listeners.
081            *
082            * @param socialActivityLimit the social activity limit
083            * @return the social activity limit that was added
084            */
085            @Override
086            public com.liferay.social.kernel.model.SocialActivityLimit addSocialActivityLimit(
087                    com.liferay.social.kernel.model.SocialActivityLimit socialActivityLimit) {
088                    return _socialActivityLimitLocalService.addSocialActivityLimit(socialActivityLimit);
089            }
090    
091            /**
092            * Creates a new social activity limit with the primary key. Does not add the social activity limit to the database.
093            *
094            * @param activityLimitId the primary key for the new social activity limit
095            * @return the new social activity limit
096            */
097            @Override
098            public com.liferay.social.kernel.model.SocialActivityLimit createSocialActivityLimit(
099                    long activityLimitId) {
100                    return _socialActivityLimitLocalService.createSocialActivityLimit(activityLimitId);
101            }
102    
103            /**
104            * Deletes the social activity limit from the database. Also notifies the appropriate model listeners.
105            *
106            * @param socialActivityLimit the social activity limit
107            * @return the social activity limit that was removed
108            */
109            @Override
110            public com.liferay.social.kernel.model.SocialActivityLimit deleteSocialActivityLimit(
111                    com.liferay.social.kernel.model.SocialActivityLimit socialActivityLimit) {
112                    return _socialActivityLimitLocalService.deleteSocialActivityLimit(socialActivityLimit);
113            }
114    
115            /**
116            * Deletes the social activity limit with the primary key from the database. Also notifies the appropriate model listeners.
117            *
118            * @param activityLimitId the primary key of the social activity limit
119            * @return the social activity limit that was removed
120            * @throws PortalException if a social activity limit with the primary key could not be found
121            */
122            @Override
123            public com.liferay.social.kernel.model.SocialActivityLimit deleteSocialActivityLimit(
124                    long activityLimitId)
125                    throws com.liferay.portal.kernel.exception.PortalException {
126                    return _socialActivityLimitLocalService.deleteSocialActivityLimit(activityLimitId);
127            }
128    
129            @Override
130            public com.liferay.social.kernel.model.SocialActivityLimit fetchActivityLimit(
131                    long groupId, long userId, long classNameId, long classPK,
132                    int activityType, java.lang.String activityCounterName) {
133                    return _socialActivityLimitLocalService.fetchActivityLimit(groupId,
134                            userId, classNameId, classPK, activityType, activityCounterName);
135            }
136    
137            @Override
138            public com.liferay.social.kernel.model.SocialActivityLimit fetchSocialActivityLimit(
139                    long activityLimitId) {
140                    return _socialActivityLimitLocalService.fetchSocialActivityLimit(activityLimitId);
141            }
142    
143            /**
144            * Returns the social activity limit with the primary key.
145            *
146            * @param activityLimitId the primary key of the social activity limit
147            * @return the social activity limit
148            * @throws PortalException if a social activity limit with the primary key could not be found
149            */
150            @Override
151            public com.liferay.social.kernel.model.SocialActivityLimit getSocialActivityLimit(
152                    long activityLimitId)
153                    throws com.liferay.portal.kernel.exception.PortalException {
154                    return _socialActivityLimitLocalService.getSocialActivityLimit(activityLimitId);
155            }
156    
157            /**
158            * Updates the social activity limit in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
159            *
160            * @param socialActivityLimit the social activity limit
161            * @return the social activity limit that was updated
162            */
163            @Override
164            public com.liferay.social.kernel.model.SocialActivityLimit updateSocialActivityLimit(
165                    com.liferay.social.kernel.model.SocialActivityLimit socialActivityLimit) {
166                    return _socialActivityLimitLocalService.updateSocialActivityLimit(socialActivityLimit);
167            }
168    
169            /**
170            * Returns the number of social activity limits.
171            *
172            * @return the number of social activity limits
173            */
174            @Override
175            public int getSocialActivityLimitsCount() {
176                    return _socialActivityLimitLocalService.getSocialActivityLimitsCount();
177            }
178    
179            /**
180            * Returns the OSGi service identifier.
181            *
182            * @return the OSGi service identifier
183            */
184            @Override
185            public java.lang.String getOSGiServiceIdentifier() {
186                    return _socialActivityLimitLocalService.getOSGiServiceIdentifier();
187            }
188    
189            /**
190            * Performs a dynamic query on the database and returns the matching rows.
191            *
192            * @param dynamicQuery the dynamic query
193            * @return the matching rows
194            */
195            @Override
196            public <T> java.util.List<T> dynamicQuery(
197                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
198                    return _socialActivityLimitLocalService.dynamicQuery(dynamicQuery);
199            }
200    
201            /**
202            * Performs a dynamic query on the database and returns a range of the matching rows.
203            *
204            * <p>
205            * 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.
206            * </p>
207            *
208            * @param dynamicQuery the dynamic query
209            * @param start the lower bound of the range of model instances
210            * @param end the upper bound of the range of model instances (not inclusive)
211            * @return the range of matching rows
212            */
213            @Override
214            public <T> java.util.List<T> dynamicQuery(
215                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
216                    int end) {
217                    return _socialActivityLimitLocalService.dynamicQuery(dynamicQuery,
218                            start, end);
219            }
220    
221            /**
222            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
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.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.
226            * </p>
227            *
228            * @param dynamicQuery the dynamic query
229            * @param start the lower bound of the range of model instances
230            * @param end the upper bound of the range of model instances (not inclusive)
231            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
232            * @return the ordered range of matching rows
233            */
234            @Override
235            public <T> java.util.List<T> dynamicQuery(
236                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
237                    int end,
238                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
239                    return _socialActivityLimitLocalService.dynamicQuery(dynamicQuery,
240                            start, end, orderByComparator);
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.social.kernel.model.SocialActivityLimit> getSocialActivityLimits(
256                    int start, int end) {
257                    return _socialActivityLimitLocalService.getSocialActivityLimits(start,
258                            end);
259            }
260    
261            /**
262            * Returns the number of rows matching the dynamic query.
263            *
264            * @param dynamicQuery the dynamic query
265            * @return the number of rows matching the dynamic query
266            */
267            @Override
268            public long dynamicQueryCount(
269                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
270                    return _socialActivityLimitLocalService.dynamicQueryCount(dynamicQuery);
271            }
272    
273            /**
274            * Returns the number of rows matching the dynamic query.
275            *
276            * @param dynamicQuery the dynamic query
277            * @param projection the projection to apply to the query
278            * @return the number of rows matching the dynamic query
279            */
280            @Override
281            public long dynamicQueryCount(
282                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
283                    com.liferay.portal.kernel.dao.orm.Projection projection) {
284                    return _socialActivityLimitLocalService.dynamicQueryCount(dynamicQuery,
285                            projection);
286            }
287    
288            @Override
289            public SocialActivityLimitLocalService getWrappedService() {
290                    return _socialActivityLimitLocalService;
291            }
292    
293            @Override
294            public void setWrappedService(
295                    SocialActivityLimitLocalService socialActivityLimitLocalService) {
296                    _socialActivityLimitLocalService = socialActivityLimitLocalService;
297            }
298    
299            private SocialActivityLimitLocalService _socialActivityLimitLocalService;
300    }