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 SocialActivityInterpreterLocalService}.
023     *
024     * @author Brian Wing Shun Chan
025     * @see SocialActivityInterpreterLocalService
026     * @generated
027     */
028    @ProviderType
029    public class SocialActivityInterpreterLocalServiceWrapper
030            implements SocialActivityInterpreterLocalService,
031                    ServiceWrapper<SocialActivityInterpreterLocalService> {
032            public SocialActivityInterpreterLocalServiceWrapper(
033                    SocialActivityInterpreterLocalService socialActivityInterpreterLocalService) {
034                    _socialActivityInterpreterLocalService = socialActivityInterpreterLocalService;
035            }
036    
037            /**
038            * Adds the activity interpreter to the list of available interpreters.
039            *
040            * @param activityInterpreter the activity interpreter
041            */
042            @Override
043            public void addActivityInterpreter(
044                    com.liferay.social.kernel.model.SocialActivityInterpreter activityInterpreter) {
045                    _socialActivityInterpreterLocalService.addActivityInterpreter(activityInterpreter);
046            }
047    
048            /**
049            * Removes the activity interpreter from the list of available interpreters.
050            *
051            * @param activityInterpreter the activity interpreter
052            */
053            @Override
054            public void deleteActivityInterpreter(
055                    com.liferay.social.kernel.model.SocialActivityInterpreter activityInterpreter) {
056                    _socialActivityInterpreterLocalService.deleteActivityInterpreter(activityInterpreter);
057            }
058    
059            @Override
060            public java.util.Map<java.lang.String, java.util.List<com.liferay.social.kernel.model.SocialActivityInterpreter>> getActivityInterpreters() {
061                    return _socialActivityInterpreterLocalService.getActivityInterpreters();
062            }
063    
064            @Override
065            public java.util.List<com.liferay.social.kernel.model.SocialActivityInterpreter> getActivityInterpreters(
066                    java.lang.String selector) {
067                    return _socialActivityInterpreterLocalService.getActivityInterpreters(selector);
068            }
069    
070            /**
071            * Returns the OSGi service identifier.
072            *
073            * @return the OSGi service identifier
074            */
075            @Override
076            public java.lang.String getOSGiServiceIdentifier() {
077                    return _socialActivityInterpreterLocalService.getOSGiServiceIdentifier();
078            }
079    
080            /**
081            * Creates a human readable activity feed entry for the activity using an
082            * available compatible activity interpreter.
083            *
084            * <p>
085            * This method finds the appropriate interpreter for the activity by going
086            * through the available interpreters and asking them if they can handle the
087            * asset type of the activity.
088            * </p>
089            *
090            * @param selector the context in which the activity interpreter is used
091            * @param activity the activity to be translated to human readable form
092            * @param serviceContext the service context to be applied
093            * @return the activity feed that is a human readable form of the activity
094            record or <code>null</code> if a compatible interpreter is not
095            found
096            */
097            @Override
098            public com.liferay.social.kernel.model.SocialActivityFeedEntry interpret(
099                    java.lang.String selector,
100                    com.liferay.social.kernel.model.SocialActivity activity,
101                    com.liferay.portal.kernel.service.ServiceContext serviceContext) {
102                    return _socialActivityInterpreterLocalService.interpret(selector,
103                            activity, serviceContext);
104            }
105    
106            @Override
107            public com.liferay.social.kernel.model.SocialActivityFeedEntry interpret(
108                    java.lang.String selector,
109                    com.liferay.social.kernel.model.SocialActivitySet activitySet,
110                    com.liferay.portal.kernel.service.ServiceContext serviceContext) {
111                    return _socialActivityInterpreterLocalService.interpret(selector,
112                            activitySet, serviceContext);
113            }
114    
115            @Override
116            public void updateActivitySet(long activityId)
117                    throws com.liferay.portal.kernel.exception.PortalException {
118                    _socialActivityInterpreterLocalService.updateActivitySet(activityId);
119            }
120    
121            @Override
122            public SocialActivityInterpreterLocalService getWrappedService() {
123                    return _socialActivityInterpreterLocalService;
124            }
125    
126            @Override
127            public void setWrappedService(
128                    SocialActivityInterpreterLocalService socialActivityInterpreterLocalService) {
129                    _socialActivityInterpreterLocalService = socialActivityInterpreterLocalService;
130            }
131    
132            private SocialActivityInterpreterLocalService _socialActivityInterpreterLocalService;
133    }