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            /**
082            * @deprecated As of 6.2.0, replaced by {@link #interpret(String,
083            SocialActivity, ServiceContext)}
084            */
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 activity the activity to be translated to human readable form
104            * @return the activity feed that is a human readable form of the activity
105            record or <code>null</code> if a compatible interpreter is not
106            found
107            */
108            @Override
109            public com.liferay.portlet.social.model.SocialActivityFeedEntry interpret(
110                    java.lang.String selector,
111                    com.liferay.portlet.social.model.SocialActivity activity,
112                    com.liferay.portal.service.ServiceContext serviceContext) {
113                    return _socialActivityInterpreterLocalService.interpret(selector,
114                            activity, serviceContext);
115            }
116    
117            @Override
118            public com.liferay.portlet.social.model.SocialActivityFeedEntry interpret(
119                    java.lang.String selector,
120                    com.liferay.portlet.social.model.SocialActivitySet activitySet,
121                    com.liferay.portal.service.ServiceContext serviceContext) {
122                    return _socialActivityInterpreterLocalService.interpret(selector,
123                            activitySet, serviceContext);
124            }
125    
126            @Override
127            public void updateActivitySet(long activityId)
128                    throws com.liferay.portal.kernel.exception.PortalException,
129                            com.liferay.portal.kernel.exception.SystemException {
130                    _socialActivityInterpreterLocalService.updateActivitySet(activityId);
131            }
132    
133            /**
134             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
135             */
136            public SocialActivityInterpreterLocalService getWrappedSocialActivityInterpreterLocalService() {
137                    return _socialActivityInterpreterLocalService;
138            }
139    
140            /**
141             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
142             */
143            public void setWrappedSocialActivityInterpreterLocalService(
144                    SocialActivityInterpreterLocalService socialActivityInterpreterLocalService) {
145                    _socialActivityInterpreterLocalService = socialActivityInterpreterLocalService;
146            }
147    
148            @Override
149            public SocialActivityInterpreterLocalService getWrappedService() {
150                    return _socialActivityInterpreterLocalService;
151            }
152    
153            @Override
154            public void setWrappedService(
155                    SocialActivityInterpreterLocalService socialActivityInterpreterLocalService) {
156                    _socialActivityInterpreterLocalService = socialActivityInterpreterLocalService;
157            }
158    
159            private SocialActivityInterpreterLocalService _socialActivityInterpreterLocalService;
160    }