001    /**
002     * Copyright (c) 2000-2011 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    /**
018     * <p>
019     * This class is a wrapper for {@link SocialActivityInterpreterLocalService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       SocialActivityInterpreterLocalService
024     * @generated
025     */
026    public class SocialActivityInterpreterLocalServiceWrapper
027            implements SocialActivityInterpreterLocalService {
028            public SocialActivityInterpreterLocalServiceWrapper(
029                    SocialActivityInterpreterLocalService socialActivityInterpreterLocalService) {
030                    _socialActivityInterpreterLocalService = socialActivityInterpreterLocalService;
031            }
032    
033            /**
034            * Returns the Spring bean ID for this bean.
035            *
036            * @return the Spring bean ID for this bean
037            */
038            public java.lang.String getBeanIdentifier() {
039                    return _socialActivityInterpreterLocalService.getBeanIdentifier();
040            }
041    
042            /**
043            * Sets the Spring bean ID for this bean.
044            *
045            * @param beanIdentifier the Spring bean ID for this bean
046            */
047            public void setBeanIdentifier(java.lang.String beanIdentifier) {
048                    _socialActivityInterpreterLocalService.setBeanIdentifier(beanIdentifier);
049            }
050    
051            /**
052            * Adds the activity interpreter to the list of available interpreters.
053            *
054            * @param activityInterpreter the activity interpreter
055            */
056            public void addActivityInterpreter(
057                    com.liferay.portlet.social.model.SocialActivityInterpreter activityInterpreter) {
058                    _socialActivityInterpreterLocalService.addActivityInterpreter(activityInterpreter);
059            }
060    
061            /**
062            * Removes the activity interpreter from the list of available
063            * interpreters.
064            *
065            * @param activityInterpreter the activity interpreter
066            */
067            public void deleteActivityInterpreter(
068                    com.liferay.portlet.social.model.SocialActivityInterpreter activityInterpreter) {
069                    _socialActivityInterpreterLocalService.deleteActivityInterpreter(activityInterpreter);
070            }
071    
072            /**
073            * Creates a human readable activity feed entry for the activity using an
074            * available compatible activity interpreter.
075            *
076            * <p>
077            * This method finds the appropriate interpreter for the activity by going
078            * through the available interpreters and asking them if they can handle
079            * the asset type of the activity.
080            * </p>
081            *
082            * @param activity the activity to be translated to human readable form
083            * @param themeDisplay the theme display needed by interpreters to create
084            links and get localized text fragments
085            * @return the activity feed that is a human readable form of the activity
086            record or <code>null</code> if a compatible interpreter is not
087            found
088            */
089            public com.liferay.portlet.social.model.SocialActivityFeedEntry interpret(
090                    com.liferay.portlet.social.model.SocialActivity activity,
091                    com.liferay.portal.theme.ThemeDisplay themeDisplay) {
092                    return _socialActivityInterpreterLocalService.interpret(activity,
093                            themeDisplay);
094            }
095    
096            public SocialActivityInterpreterLocalService getWrappedSocialActivityInterpreterLocalService() {
097                    return _socialActivityInterpreterLocalService;
098            }
099    
100            public void setWrappedSocialActivityInterpreterLocalService(
101                    SocialActivityInterpreterLocalService socialActivityInterpreterLocalService) {
102                    _socialActivityInterpreterLocalService = socialActivityInterpreterLocalService;
103            }
104    
105            private SocialActivityInterpreterLocalService _socialActivityInterpreterLocalService;
106    }