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 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            @Override
038            public boolean isEnabled(long groupId, long classNameId) {
039                    return _socialActivitySettingLocalService.isEnabled(groupId, classNameId);
040            }
041    
042            @Override
043            public boolean isEnabled(long groupId, long classNameId, long classPK) {
044                    return _socialActivitySettingLocalService.isEnabled(groupId,
045                            classNameId, classPK);
046            }
047    
048            @Override
049            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
050                    return _socialActivitySettingLocalService.getActionableDynamicQuery();
051            }
052    
053            @Override
054            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
055                    return _socialActivitySettingLocalService.dynamicQuery();
056            }
057    
058            @Override
059            public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
060                    return _socialActivitySettingLocalService.getIndexableActionableDynamicQuery();
061            }
062    
063            /**
064            * @throws PortalException
065            */
066            @Override
067            public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(
068                    com.liferay.portal.kernel.model.PersistedModel persistedModel)
069                    throws com.liferay.portal.kernel.exception.PortalException {
070                    return _socialActivitySettingLocalService.deletePersistedModel(persistedModel);
071            }
072    
073            @Override
074            public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(
075                    java.io.Serializable primaryKeyObj)
076                    throws com.liferay.portal.kernel.exception.PortalException {
077                    return _socialActivitySettingLocalService.getPersistedModel(primaryKeyObj);
078            }
079    
080            @Override
081            public com.liferay.social.kernel.model.SocialActivityDefinition getActivityDefinition(
082                    long groupId, java.lang.String className, int activityType) {
083                    return _socialActivitySettingLocalService.getActivityDefinition(groupId,
084                            className, activityType);
085            }
086    
087            /**
088            * Adds the social activity setting to the database. Also notifies the appropriate model listeners.
089            *
090            * @param socialActivitySetting the social activity setting
091            * @return the social activity setting that was added
092            */
093            @Override
094            public com.liferay.social.kernel.model.SocialActivitySetting addSocialActivitySetting(
095                    com.liferay.social.kernel.model.SocialActivitySetting socialActivitySetting) {
096                    return _socialActivitySettingLocalService.addSocialActivitySetting(socialActivitySetting);
097            }
098    
099            /**
100            * Creates a new social activity setting with the primary key. Does not add the social activity setting to the database.
101            *
102            * @param activitySettingId the primary key for the new social activity setting
103            * @return the new social activity setting
104            */
105            @Override
106            public com.liferay.social.kernel.model.SocialActivitySetting createSocialActivitySetting(
107                    long activitySettingId) {
108                    return _socialActivitySettingLocalService.createSocialActivitySetting(activitySettingId);
109            }
110    
111            /**
112            * Deletes the social activity setting from the database. Also notifies the appropriate model listeners.
113            *
114            * @param socialActivitySetting the social activity setting
115            * @return the social activity setting that was removed
116            */
117            @Override
118            public com.liferay.social.kernel.model.SocialActivitySetting deleteSocialActivitySetting(
119                    com.liferay.social.kernel.model.SocialActivitySetting socialActivitySetting) {
120                    return _socialActivitySettingLocalService.deleteSocialActivitySetting(socialActivitySetting);
121            }
122    
123            /**
124            * Deletes the social activity setting with the primary key from the database. Also notifies the appropriate model listeners.
125            *
126            * @param activitySettingId the primary key of the social activity setting
127            * @return the social activity setting that was removed
128            * @throws PortalException if a social activity setting with the primary key could not be found
129            */
130            @Override
131            public com.liferay.social.kernel.model.SocialActivitySetting deleteSocialActivitySetting(
132                    long activitySettingId)
133                    throws com.liferay.portal.kernel.exception.PortalException {
134                    return _socialActivitySettingLocalService.deleteSocialActivitySetting(activitySettingId);
135            }
136    
137            @Override
138            public com.liferay.social.kernel.model.SocialActivitySetting fetchSocialActivitySetting(
139                    long activitySettingId) {
140                    return _socialActivitySettingLocalService.fetchSocialActivitySetting(activitySettingId);
141            }
142    
143            /**
144            * Returns the social activity setting with the primary key.
145            *
146            * @param activitySettingId the primary key of the social activity setting
147            * @return the social activity setting
148            * @throws PortalException if a social activity setting with the primary key could not be found
149            */
150            @Override
151            public com.liferay.social.kernel.model.SocialActivitySetting getSocialActivitySetting(
152                    long activitySettingId)
153                    throws com.liferay.portal.kernel.exception.PortalException {
154                    return _socialActivitySettingLocalService.getSocialActivitySetting(activitySettingId);
155            }
156    
157            /**
158            * Updates the social activity setting in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
159            *
160            * @param socialActivitySetting the social activity setting
161            * @return the social activity setting that was updated
162            */
163            @Override
164            public com.liferay.social.kernel.model.SocialActivitySetting updateSocialActivitySetting(
165                    com.liferay.social.kernel.model.SocialActivitySetting socialActivitySetting) {
166                    return _socialActivitySettingLocalService.updateSocialActivitySetting(socialActivitySetting);
167            }
168    
169            /**
170            * Returns the number of social activity settings.
171            *
172            * @return the number of social activity settings
173            */
174            @Override
175            public int getSocialActivitySettingsCount() {
176                    return _socialActivitySettingLocalService.getSocialActivitySettingsCount();
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 _socialActivitySettingLocalService.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 _socialActivitySettingLocalService.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.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.
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 _socialActivitySettingLocalService.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.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.
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 _socialActivitySettingLocalService.dynamicQuery(dynamicQuery,
240                            start, end, orderByComparator);
241            }
242    
243            @Override
244            public java.util.List<com.liferay.social.kernel.model.SocialActivityDefinition> getActivityDefinitions(
245                    long groupId, java.lang.String className) {
246                    return _socialActivitySettingLocalService.getActivityDefinitions(groupId,
247                            className);
248            }
249    
250            @Override
251            public java.util.List<com.liferay.social.kernel.model.SocialActivitySetting> getActivitySettings(
252                    long groupId) {
253                    return _socialActivitySettingLocalService.getActivitySettings(groupId);
254            }
255    
256            /**
257            * Returns a range of all the social activity settings.
258            *
259            * <p>
260            * 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.
261            * </p>
262            *
263            * @param start the lower bound of the range of social activity settings
264            * @param end the upper bound of the range of social activity settings (not inclusive)
265            * @return the range of social activity settings
266            */
267            @Override
268            public java.util.List<com.liferay.social.kernel.model.SocialActivitySetting> getSocialActivitySettings(
269                    int start, int end) {
270                    return _socialActivitySettingLocalService.getSocialActivitySettings(start,
271                            end);
272            }
273    
274            /**
275            * Returns the number of rows matching the dynamic query.
276            *
277            * @param dynamicQuery the dynamic 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                    return _socialActivitySettingLocalService.dynamicQueryCount(dynamicQuery);
284            }
285    
286            /**
287            * Returns the number of rows matching the dynamic query.
288            *
289            * @param dynamicQuery the dynamic query
290            * @param projection the projection to apply to the query
291            * @return the number of rows matching the dynamic query
292            */
293            @Override
294            public long dynamicQueryCount(
295                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
296                    com.liferay.portal.kernel.dao.orm.Projection projection) {
297                    return _socialActivitySettingLocalService.dynamicQueryCount(dynamicQuery,
298                            projection);
299            }
300    
301            @Override
302            public void deleteActivitySetting(long groupId, java.lang.String className,
303                    long classPK) {
304                    _socialActivitySettingLocalService.deleteActivitySetting(groupId,
305                            className, classPK);
306            }
307    
308            @Override
309            public void deleteActivitySettings(long groupId) {
310                    _socialActivitySettingLocalService.deleteActivitySettings(groupId);
311            }
312    
313            @Override
314            public void updateActivitySetting(long groupId, java.lang.String className,
315                    boolean enabled)
316                    throws com.liferay.portal.kernel.exception.PortalException {
317                    _socialActivitySettingLocalService.updateActivitySetting(groupId,
318                            className, enabled);
319            }
320    
321            @Override
322            public void updateActivitySetting(long groupId, java.lang.String className,
323                    int activityType,
324                    com.liferay.social.kernel.model.SocialActivityCounterDefinition activityCounterDefinition)
325                    throws com.liferay.portal.kernel.exception.PortalException {
326                    _socialActivitySettingLocalService.updateActivitySetting(groupId,
327                            className, activityType, activityCounterDefinition);
328            }
329    
330            @Override
331            public void updateActivitySetting(long groupId, java.lang.String className,
332                    long classPK, boolean enabled)
333                    throws com.liferay.portal.kernel.exception.PortalException {
334                    _socialActivitySettingLocalService.updateActivitySetting(groupId,
335                            className, classPK, enabled);
336            }
337    
338            @Override
339            public void updateActivitySettings(long groupId,
340                    java.lang.String className, int activityType,
341                    java.util.List<com.liferay.social.kernel.model.SocialActivityCounterDefinition> activityCounterDefinitions)
342                    throws com.liferay.portal.kernel.exception.PortalException {
343                    _socialActivitySettingLocalService.updateActivitySettings(groupId,
344                            className, activityType, activityCounterDefinitions);
345            }
346    
347            @Override
348            public SocialActivitySettingLocalService getWrappedService() {
349                    return _socialActivitySettingLocalService;
350            }
351    
352            @Override
353            public void setWrappedService(
354                    SocialActivitySettingLocalService socialActivitySettingLocalService) {
355                    _socialActivitySettingLocalService = socialActivitySettingLocalService;
356            }
357    
358            private SocialActivitySettingLocalService _socialActivitySettingLocalService;
359    }