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 SocialActivitySettingLocalService}.
023     *
024     * @author Brian Wing Shun Chan
025     * @see SocialActivitySettingLocalService
026     * @generated
027     */
028    @ProviderType
029    public class SocialActivitySettingLocalServiceWrapper
030            implements SocialActivitySettingLocalService,
031                    ServiceWrapper<SocialActivitySettingLocalService> {
032            public SocialActivitySettingLocalServiceWrapper(
033                    SocialActivitySettingLocalService socialActivitySettingLocalService) {
034                    _socialActivitySettingLocalService = socialActivitySettingLocalService;
035            }
036    
037            /**
038            * Adds the social activity setting to the database. Also notifies the appropriate model listeners.
039            *
040            * @param socialActivitySetting the social activity setting
041            * @return the social activity setting that was added
042            */
043            @Override
044            public com.liferay.portlet.social.model.SocialActivitySetting addSocialActivitySetting(
045                    com.liferay.portlet.social.model.SocialActivitySetting socialActivitySetting) {
046                    return _socialActivitySettingLocalService.addSocialActivitySetting(socialActivitySetting);
047            }
048    
049            /**
050            * Creates a new social activity setting with the primary key. Does not add the social activity setting to the database.
051            *
052            * @param activitySettingId the primary key for the new social activity setting
053            * @return the new social activity setting
054            */
055            @Override
056            public com.liferay.portlet.social.model.SocialActivitySetting createSocialActivitySetting(
057                    long activitySettingId) {
058                    return _socialActivitySettingLocalService.createSocialActivitySetting(activitySettingId);
059            }
060    
061            @Override
062            public void deleteActivitySetting(long groupId, java.lang.String className,
063                    long classPK) {
064                    _socialActivitySettingLocalService.deleteActivitySetting(groupId,
065                            className, classPK);
066            }
067    
068            @Override
069            public void deleteActivitySettings(long groupId) {
070                    _socialActivitySettingLocalService.deleteActivitySettings(groupId);
071            }
072    
073            /**
074            * @throws PortalException
075            */
076            @Override
077            public com.liferay.portal.model.PersistedModel deletePersistedModel(
078                    com.liferay.portal.model.PersistedModel persistedModel)
079                    throws com.liferay.portal.kernel.exception.PortalException {
080                    return _socialActivitySettingLocalService.deletePersistedModel(persistedModel);
081            }
082    
083            /**
084            * Deletes the social activity setting with the primary key from the database. Also notifies the appropriate model listeners.
085            *
086            * @param activitySettingId the primary key of the social activity setting
087            * @return the social activity setting that was removed
088            * @throws PortalException if a social activity setting with the primary key could not be found
089            */
090            @Override
091            public com.liferay.portlet.social.model.SocialActivitySetting deleteSocialActivitySetting(
092                    long activitySettingId)
093                    throws com.liferay.portal.kernel.exception.PortalException {
094                    return _socialActivitySettingLocalService.deleteSocialActivitySetting(activitySettingId);
095            }
096    
097            /**
098            * Deletes the social activity setting from the database. Also notifies the appropriate model listeners.
099            *
100            * @param socialActivitySetting the social activity setting
101            * @return the social activity setting that was removed
102            */
103            @Override
104            public com.liferay.portlet.social.model.SocialActivitySetting deleteSocialActivitySetting(
105                    com.liferay.portlet.social.model.SocialActivitySetting socialActivitySetting) {
106                    return _socialActivitySettingLocalService.deleteSocialActivitySetting(socialActivitySetting);
107            }
108    
109            @Override
110            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
111                    return _socialActivitySettingLocalService.dynamicQuery();
112            }
113    
114            /**
115            * Performs a dynamic query on the database and returns the matching rows.
116            *
117            * @param dynamicQuery the dynamic query
118            * @return the matching rows
119            */
120            @Override
121            public <T> java.util.List<T> dynamicQuery(
122                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
123                    return _socialActivitySettingLocalService.dynamicQuery(dynamicQuery);
124            }
125    
126            /**
127            * Performs a dynamic query on the database and returns a range of the matching rows.
128            *
129            * <p>
130            * 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.SocialActivitySettingModelImpl}. 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.
131            * </p>
132            *
133            * @param dynamicQuery the dynamic query
134            * @param start the lower bound of the range of model instances
135            * @param end the upper bound of the range of model instances (not inclusive)
136            * @return the range of matching rows
137            */
138            @Override
139            public <T> java.util.List<T> dynamicQuery(
140                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
141                    int end) {
142                    return _socialActivitySettingLocalService.dynamicQuery(dynamicQuery,
143                            start, end);
144            }
145    
146            /**
147            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
148            *
149            * <p>
150            * 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.SocialActivitySettingModelImpl}. 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.
151            * </p>
152            *
153            * @param dynamicQuery the dynamic query
154            * @param start the lower bound of the range of model instances
155            * @param end the upper bound of the range of model instances (not inclusive)
156            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
157            * @return the ordered range of matching rows
158            */
159            @Override
160            public <T> java.util.List<T> dynamicQuery(
161                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
162                    int end,
163                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
164                    return _socialActivitySettingLocalService.dynamicQuery(dynamicQuery,
165                            start, end, orderByComparator);
166            }
167    
168            /**
169            * Returns the number of rows matching the dynamic query.
170            *
171            * @param dynamicQuery the dynamic query
172            * @return the number of rows matching the dynamic query
173            */
174            @Override
175            public long dynamicQueryCount(
176                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
177                    return _socialActivitySettingLocalService.dynamicQueryCount(dynamicQuery);
178            }
179    
180            /**
181            * Returns the number of rows matching the dynamic query.
182            *
183            * @param dynamicQuery the dynamic query
184            * @param projection the projection to apply to the query
185            * @return the number of rows matching the dynamic query
186            */
187            @Override
188            public long dynamicQueryCount(
189                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
190                    com.liferay.portal.kernel.dao.orm.Projection projection) {
191                    return _socialActivitySettingLocalService.dynamicQueryCount(dynamicQuery,
192                            projection);
193            }
194    
195            @Override
196            public com.liferay.portlet.social.model.SocialActivitySetting fetchSocialActivitySetting(
197                    long activitySettingId) {
198                    return _socialActivitySettingLocalService.fetchSocialActivitySetting(activitySettingId);
199            }
200    
201            @Override
202            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
203                    return _socialActivitySettingLocalService.getActionableDynamicQuery();
204            }
205    
206            @Override
207            public com.liferay.portlet.social.model.SocialActivityDefinition getActivityDefinition(
208                    long groupId, java.lang.String className, int activityType) {
209                    return _socialActivitySettingLocalService.getActivityDefinition(groupId,
210                            className, activityType);
211            }
212    
213            @Override
214            public java.util.List<com.liferay.portlet.social.model.SocialActivityDefinition> getActivityDefinitions(
215                    long groupId, java.lang.String className) {
216                    return _socialActivitySettingLocalService.getActivityDefinitions(groupId,
217                            className);
218            }
219    
220            @Override
221            public java.util.List<com.liferay.portlet.social.model.SocialActivitySetting> getActivitySettings(
222                    long groupId) {
223                    return _socialActivitySettingLocalService.getActivitySettings(groupId);
224            }
225    
226            /**
227            * Returns the Spring bean ID for this bean.
228            *
229            * @return the Spring bean ID for this bean
230            */
231            @Override
232            public java.lang.String getBeanIdentifier() {
233                    return _socialActivitySettingLocalService.getBeanIdentifier();
234            }
235    
236            @Override
237            public com.liferay.portal.model.PersistedModel getPersistedModel(
238                    java.io.Serializable primaryKeyObj)
239                    throws com.liferay.portal.kernel.exception.PortalException {
240                    return _socialActivitySettingLocalService.getPersistedModel(primaryKeyObj);
241            }
242    
243            /**
244            * Returns the social activity setting with the primary key.
245            *
246            * @param activitySettingId the primary key of the social activity setting
247            * @return the social activity setting
248            * @throws PortalException if a social activity setting with the primary key could not be found
249            */
250            @Override
251            public com.liferay.portlet.social.model.SocialActivitySetting getSocialActivitySetting(
252                    long activitySettingId)
253                    throws com.liferay.portal.kernel.exception.PortalException {
254                    return _socialActivitySettingLocalService.getSocialActivitySetting(activitySettingId);
255            }
256    
257            /**
258            * Returns a range of all the social activity settings.
259            *
260            * <p>
261            * 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.SocialActivitySettingModelImpl}. 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.
262            * </p>
263            *
264            * @param start the lower bound of the range of social activity settings
265            * @param end the upper bound of the range of social activity settings (not inclusive)
266            * @return the range of social activity settings
267            */
268            @Override
269            public java.util.List<com.liferay.portlet.social.model.SocialActivitySetting> getSocialActivitySettings(
270                    int start, int end) {
271                    return _socialActivitySettingLocalService.getSocialActivitySettings(start,
272                            end);
273            }
274    
275            /**
276            * Returns the number of social activity settings.
277            *
278            * @return the number of social activity settings
279            */
280            @Override
281            public int getSocialActivitySettingsCount() {
282                    return _socialActivitySettingLocalService.getSocialActivitySettingsCount();
283            }
284    
285            @Override
286            public boolean isEnabled(long groupId, long classNameId) {
287                    return _socialActivitySettingLocalService.isEnabled(groupId, classNameId);
288            }
289    
290            @Override
291            public boolean isEnabled(long groupId, long classNameId, long classPK) {
292                    return _socialActivitySettingLocalService.isEnabled(groupId,
293                            classNameId, classPK);
294            }
295    
296            /**
297            * Sets the Spring bean ID for this bean.
298            *
299            * @param beanIdentifier the Spring bean ID for this bean
300            */
301            @Override
302            public void setBeanIdentifier(java.lang.String beanIdentifier) {
303                    _socialActivitySettingLocalService.setBeanIdentifier(beanIdentifier);
304            }
305    
306            @Override
307            public void updateActivitySetting(long groupId, java.lang.String className,
308                    int activityType,
309                    com.liferay.portlet.social.model.SocialActivityCounterDefinition activityCounterDefinition)
310                    throws com.liferay.portal.kernel.exception.PortalException {
311                    _socialActivitySettingLocalService.updateActivitySetting(groupId,
312                            className, activityType, activityCounterDefinition);
313            }
314    
315            @Override
316            public void updateActivitySetting(long groupId, java.lang.String className,
317                    long classPK, boolean enabled)
318                    throws com.liferay.portal.kernel.exception.PortalException {
319                    _socialActivitySettingLocalService.updateActivitySetting(groupId,
320                            className, classPK, enabled);
321            }
322    
323            @Override
324            public void updateActivitySetting(long groupId, java.lang.String className,
325                    boolean enabled)
326                    throws com.liferay.portal.kernel.exception.PortalException {
327                    _socialActivitySettingLocalService.updateActivitySetting(groupId,
328                            className, enabled);
329            }
330    
331            @Override
332            public void updateActivitySettings(long groupId,
333                    java.lang.String className, int activityType,
334                    java.util.List<com.liferay.portlet.social.model.SocialActivityCounterDefinition> activityCounterDefinitions)
335                    throws com.liferay.portal.kernel.exception.PortalException {
336                    _socialActivitySettingLocalService.updateActivitySettings(groupId,
337                            className, activityType, activityCounterDefinitions);
338            }
339    
340            /**
341            * Updates the social activity setting in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
342            *
343            * @param socialActivitySetting the social activity setting
344            * @return the social activity setting that was updated
345            */
346            @Override
347            public com.liferay.portlet.social.model.SocialActivitySetting updateSocialActivitySetting(
348                    com.liferay.portlet.social.model.SocialActivitySetting socialActivitySetting) {
349                    return _socialActivitySettingLocalService.updateSocialActivitySetting(socialActivitySetting);
350            }
351    
352            /**
353             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
354             */
355            @Deprecated
356            public SocialActivitySettingLocalService getWrappedSocialActivitySettingLocalService() {
357                    return _socialActivitySettingLocalService;
358            }
359    
360            /**
361             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
362             */
363            @Deprecated
364            public void setWrappedSocialActivitySettingLocalService(
365                    SocialActivitySettingLocalService socialActivitySettingLocalService) {
366                    _socialActivitySettingLocalService = socialActivitySettingLocalService;
367            }
368    
369            @Override
370            public SocialActivitySettingLocalService getWrappedService() {
371                    return _socialActivitySettingLocalService;
372            }
373    
374            @Override
375            public void setWrappedService(
376                    SocialActivitySettingLocalService socialActivitySettingLocalService) {
377                    _socialActivitySettingLocalService = socialActivitySettingLocalService;
378            }
379    
380            private SocialActivitySettingLocalService _socialActivitySettingLocalService;
381    }