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