001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portlet.social.service;
016    
017    import com.liferay.portal.service.ServiceWrapper;
018    
019    /**
020     * <p>
021     * This class is a wrapper for {@link SocialActivityInterpreterLocalService}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       SocialActivityInterpreterLocalService
026     * @generated
027     */
028    public class SocialActivityInterpreterLocalServiceWrapper
029            implements SocialActivityInterpreterLocalService,
030                    ServiceWrapper<SocialActivityInterpreterLocalService> {
031            public SocialActivityInterpreterLocalServiceWrapper(
032                    SocialActivityInterpreterLocalService socialActivityInterpreterLocalService) {
033                    _socialActivityInterpreterLocalService = socialActivityInterpreterLocalService;
034            }
035    
036            /**
037            * Returns the Spring bean ID for this bean.
038            *
039            * @return the Spring bean ID for this bean
040            */
041            public java.lang.String getBeanIdentifier() {
042                    return _socialActivityInterpreterLocalService.getBeanIdentifier();
043            }
044    
045            /**
046            * Sets the Spring bean ID for this bean.
047            *
048            * @param beanIdentifier the Spring bean ID for this bean
049            */
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            public void addActivityInterpreter(
060                    com.liferay.portlet.social.model.SocialActivityInterpreter activityInterpreter) {
061                    _socialActivityInterpreterLocalService.addActivityInterpreter(activityInterpreter);
062            }
063    
064            /**
065            * Removes the activity interpreter from the list of available
066            * interpreters.
067            *
068            * @param activityInterpreter the activity interpreter
069            */
070            public void deleteActivityInterpreter(
071                    com.liferay.portlet.social.model.SocialActivityInterpreter activityInterpreter) {
072                    _socialActivityInterpreterLocalService.deleteActivityInterpreter(activityInterpreter);
073            }
074    
075            /**
076            * Creates a human readable activity feed entry for the activity using an
077            * available compatible activity interpreter.
078            *
079            * <p>
080            * This method finds the appropriate interpreter for the activity by going
081            * through the available interpreters and asking them if they can handle
082            * the asset type of the activity.
083            * </p>
084            *
085            * @param activity the activity to be translated to human readable form
086            * @param themeDisplay the theme display needed by interpreters to create
087            links and get localized text fragments
088            * @return the activity feed that is a human readable form of the activity
089            record or <code>null</code> if a compatible interpreter is not
090            found
091            */
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             * @deprecated Renamed to {@link #getWrappedService}
101             */
102            public SocialActivityInterpreterLocalService getWrappedSocialActivityInterpreterLocalService() {
103                    return _socialActivityInterpreterLocalService;
104            }
105    
106            /**
107             * @deprecated Renamed to {@link #setWrappedService}
108             */
109            public void setWrappedSocialActivityInterpreterLocalService(
110                    SocialActivityInterpreterLocalService socialActivityInterpreterLocalService) {
111                    _socialActivityInterpreterLocalService = socialActivityInterpreterLocalService;
112            }
113    
114            public SocialActivityInterpreterLocalService getWrappedService() {
115                    return _socialActivityInterpreterLocalService;
116            }
117    
118            public void setWrappedService(
119                    SocialActivityInterpreterLocalService socialActivityInterpreterLocalService) {
120                    _socialActivityInterpreterLocalService = socialActivityInterpreterLocalService;
121            }
122    
123            private SocialActivityInterpreterLocalService _socialActivityInterpreterLocalService;
124    }