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 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.portlet.social.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.portlet.social.model.SocialActivityInterpreter activityInterpreter) {
056                    _socialActivityInterpreterLocalService.deleteActivityInterpreter(activityInterpreter);
057            }
058    
059            @Override
060            public java.util.Map<java.lang.String, java.util.List<com.liferay.portlet.social.model.SocialActivityInterpreter>> getActivityInterpreters() {
061                    return _socialActivityInterpreterLocalService.getActivityInterpreters();
062            }
063    
064            @Override
065            public java.util.List<com.liferay.portlet.social.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            * @deprecated As of 6.2.0, replaced by {@link #interpret(String,
082            SocialActivity, ServiceContext)}
083            */
084            @Deprecated
085            @Override
086            public com.liferay.portlet.social.model.SocialActivityFeedEntry interpret(
087                    com.liferay.portlet.social.model.SocialActivity activity,
088                    com.liferay.portal.theme.ThemeDisplay themeDisplay) {
089                    return _socialActivityInterpreterLocalService.interpret(activity,
090                            themeDisplay);
091            }
092    
093            /**
094            * Creates a human readable activity feed entry for the activity using an
095            * available compatible activity interpreter.
096            *
097            * <p>
098            * This method finds the appropriate interpreter for the activity by going
099            * through the available interpreters and asking them if they can handle the
100            * asset type of the activity.
101            * </p>
102            *
103            * @param selector the context in which the activity interpreter is used
104            * @param activity the activity to be translated to human readable form
105            * @param serviceContext the service context to be applied
106            * @return the activity feed that is a human readable form of the activity
107            record or <code>null</code> if a compatible interpreter is not
108            found
109            */
110            @Override
111            public com.liferay.portlet.social.model.SocialActivityFeedEntry interpret(
112                    java.lang.String selector,
113                    com.liferay.portlet.social.model.SocialActivity activity,
114                    com.liferay.portal.service.ServiceContext serviceContext) {
115                    return _socialActivityInterpreterLocalService.interpret(selector,
116                            activity, serviceContext);
117            }
118    
119            @Override
120            public com.liferay.portlet.social.model.SocialActivityFeedEntry interpret(
121                    java.lang.String selector,
122                    com.liferay.portlet.social.model.SocialActivitySet activitySet,
123                    com.liferay.portal.service.ServiceContext serviceContext) {
124                    return _socialActivityInterpreterLocalService.interpret(selector,
125                            activitySet, serviceContext);
126            }
127    
128            @Override
129            public void updateActivitySet(long activityId)
130                    throws com.liferay.portal.kernel.exception.PortalException {
131                    _socialActivityInterpreterLocalService.updateActivitySet(activityId);
132            }
133    
134            @Override
135            public SocialActivityInterpreterLocalService getWrappedService() {
136                    return _socialActivityInterpreterLocalService;
137            }
138    
139            @Override
140            public void setWrappedService(
141                    SocialActivityInterpreterLocalService socialActivityInterpreterLocalService) {
142                    _socialActivityInterpreterLocalService = socialActivityInterpreterLocalService;
143            }
144    
145            private SocialActivityInterpreterLocalService _socialActivityInterpreterLocalService;
146    }