001    /**
002     * Copyright (c) 2000-2013 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 com.liferay.portal.service.ServiceWrapper;
018    
019    /**
020     * Provides a wrapper for {@link SocialActivityInterpreterLocalService}.
021     *
022     * @author Brian Wing Shun Chan
023     * @see SocialActivityInterpreterLocalService
024     * @generated
025     */
026    public class SocialActivityInterpreterLocalServiceWrapper
027            implements SocialActivityInterpreterLocalService,
028                    ServiceWrapper<SocialActivityInterpreterLocalService> {
029            public SocialActivityInterpreterLocalServiceWrapper(
030                    SocialActivityInterpreterLocalService socialActivityInterpreterLocalService) {
031                    _socialActivityInterpreterLocalService = socialActivityInterpreterLocalService;
032            }
033    
034            /**
035            * Returns the Spring bean ID for this bean.
036            *
037            * @return the Spring bean ID for this bean
038            */
039            @Override
040            public java.lang.String getBeanIdentifier() {
041                    return _socialActivityInterpreterLocalService.getBeanIdentifier();
042            }
043    
044            /**
045            * Sets the Spring bean ID for this bean.
046            *
047            * @param beanIdentifier the Spring bean ID for this bean
048            */
049            @Override
050            public void setBeanIdentifier(java.lang.String beanIdentifier) {
051                    _socialActivityInterpreterLocalService.setBeanIdentifier(beanIdentifier);
052            }
053    
054            /**
055            * Adds the activity interpreter to the list of available interpreters.
056            *
057            * @param activityInterpreter the activity interpreter
058            */
059            @Override
060            public void addActivityInterpreter(
061                    com.liferay.portlet.social.model.SocialActivityInterpreter activityInterpreter) {
062                    _socialActivityInterpreterLocalService.addActivityInterpreter(activityInterpreter);
063            }
064    
065            /**
066            * Removes the activity interpreter from the list of available interpreters.
067            *
068            * @param activityInterpreter the activity interpreter
069            */
070            @Override
071            public void deleteActivityInterpreter(
072                    com.liferay.portlet.social.model.SocialActivityInterpreter activityInterpreter) {
073                    _socialActivityInterpreterLocalService.deleteActivityInterpreter(activityInterpreter);
074            }
075    
076            @Override
077            public java.util.Map<java.lang.String, java.util.List<com.liferay.portlet.social.model.SocialActivityInterpreter>> getActivityInterpreters() {
078                    return _socialActivityInterpreterLocalService.getActivityInterpreters();
079            }
080    
081            @Override
082            public java.util.List<com.liferay.portlet.social.model.SocialActivityInterpreter> getActivityInterpreters(
083                    java.lang.String selector) {
084                    return _socialActivityInterpreterLocalService.getActivityInterpreters(selector);
085            }
086    
087            /**
088            * @deprecated As of 6.2.0, replaced by {@link #interpret(String,
089            SocialActivity, ServiceContext)}
090            */
091            @Override
092            public com.liferay.portlet.social.model.SocialActivityFeedEntry interpret(
093                    com.liferay.portlet.social.model.SocialActivity activity,
094                    com.liferay.portal.theme.ThemeDisplay themeDisplay) {
095                    return _socialActivityInterpreterLocalService.interpret(activity,
096                            themeDisplay);
097            }
098    
099            /**
100            * Creates a human readable activity feed entry for the activity using an
101            * available compatible activity interpreter.
102            *
103            * <p>
104            * This method finds the appropriate interpreter for the activity by going
105            * through the available interpreters and asking them if they can handle the
106            * asset type of the activity.
107            * </p>
108            *
109            * @param activity the activity to be translated to human readable form
110            * @return the activity feed that is a human readable form of the activity
111            record or <code>null</code> if a compatible interpreter is not
112            found
113            */
114            @Override
115            public com.liferay.portlet.social.model.SocialActivityFeedEntry interpret(
116                    java.lang.String selector,
117                    com.liferay.portlet.social.model.SocialActivity activity,
118                    com.liferay.portal.service.ServiceContext serviceContext) {
119                    return _socialActivityInterpreterLocalService.interpret(selector,
120                            activity, serviceContext);
121            }
122    
123            @Override
124            public com.liferay.portlet.social.model.SocialActivityFeedEntry interpret(
125                    java.lang.String selector,
126                    com.liferay.portlet.social.model.SocialActivitySet activitySet,
127                    com.liferay.portal.service.ServiceContext serviceContext) {
128                    return _socialActivityInterpreterLocalService.interpret(selector,
129                            activitySet, serviceContext);
130            }
131    
132            @Override
133            public void updateActivitySet(long activityId)
134                    throws com.liferay.portal.kernel.exception.PortalException,
135                            com.liferay.portal.kernel.exception.SystemException {
136                    _socialActivityInterpreterLocalService.updateActivitySet(activityId);
137            }
138    
139            /**
140             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
141             */
142            public SocialActivityInterpreterLocalService getWrappedSocialActivityInterpreterLocalService() {
143                    return _socialActivityInterpreterLocalService;
144            }
145    
146            /**
147             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
148             */
149            public void setWrappedSocialActivityInterpreterLocalService(
150                    SocialActivityInterpreterLocalService socialActivityInterpreterLocalService) {
151                    _socialActivityInterpreterLocalService = socialActivityInterpreterLocalService;
152            }
153    
154            @Override
155            public SocialActivityInterpreterLocalService getWrappedService() {
156                    return _socialActivityInterpreterLocalService;
157            }
158    
159            @Override
160            public void setWrappedService(
161                    SocialActivityInterpreterLocalService socialActivityInterpreterLocalService) {
162                    _socialActivityInterpreterLocalService = socialActivityInterpreterLocalService;
163            }
164    
165            private SocialActivityInterpreterLocalService _socialActivityInterpreterLocalService;
166    }