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     * <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 interpreters.
066            *
067            * @param activityInterpreter the activity interpreter
068            */
069            public void deleteActivityInterpreter(
070                    com.liferay.portlet.social.model.SocialActivityInterpreter activityInterpreter) {
071                    _socialActivityInterpreterLocalService.deleteActivityInterpreter(activityInterpreter);
072            }
073    
074            /**
075            * Creates a human readable activity feed entry for the activity using an
076            * available compatible activity interpreter.
077            *
078            * <p>
079            * This method finds the appropriate interpreter for the activity by going
080            * through the available interpreters and asking them if they can handle the
081            * asset type of the activity.
082            * </p>
083            *
084            * @param activity the activity to be translated to human readable form
085            * @param themeDisplay the theme display needed by interpreters to create
086            links and get localized text fragments
087            * @return the activity feed that is a human readable form of the activity
088            record or <code>null</code> if a compatible interpreter is not
089            found
090            */
091            public com.liferay.portlet.social.model.SocialActivityFeedEntry interpret(
092                    com.liferay.portlet.social.model.SocialActivity activity,
093                    com.liferay.portal.theme.ThemeDisplay themeDisplay) {
094                    return _socialActivityInterpreterLocalService.interpret(activity,
095                            themeDisplay);
096            }
097    
098            /**
099             * @deprecated Renamed to {@link #getWrappedService}
100             */
101            public SocialActivityInterpreterLocalService getWrappedSocialActivityInterpreterLocalService() {
102                    return _socialActivityInterpreterLocalService;
103            }
104    
105            /**
106             * @deprecated Renamed to {@link #setWrappedService}
107             */
108            public void setWrappedSocialActivityInterpreterLocalService(
109                    SocialActivityInterpreterLocalService socialActivityInterpreterLocalService) {
110                    _socialActivityInterpreterLocalService = socialActivityInterpreterLocalService;
111            }
112    
113            public SocialActivityInterpreterLocalService getWrappedService() {
114                    return _socialActivityInterpreterLocalService;
115            }
116    
117            public void setWrappedService(
118                    SocialActivityInterpreterLocalService socialActivityInterpreterLocalService) {
119                    _socialActivityInterpreterLocalService = socialActivityInterpreterLocalService;
120            }
121    
122            private SocialActivityInterpreterLocalService _socialActivityInterpreterLocalService;
123    }