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            public java.util.Map<java.lang.String, java.util.List<com.liferay.portlet.social.model.SocialActivityInterpreter>> getActivityInterpreters() {
075                    return _socialActivityInterpreterLocalService.getActivityInterpreters();
076            }
077    
078            /**
079            * @deprecated As of 6.2.0, replaced by {@link #interpret(String,
080            SocialActivity, ServiceContext)}
081            */
082            public com.liferay.portlet.social.model.SocialActivityFeedEntry interpret(
083                    com.liferay.portlet.social.model.SocialActivity activity,
084                    com.liferay.portal.theme.ThemeDisplay themeDisplay) {
085                    return _socialActivityInterpreterLocalService.interpret(activity,
086                            themeDisplay);
087            }
088    
089            /**
090            * Creates a human readable activity feed entry for the activity using an
091            * available compatible activity interpreter.
092            *
093            * <p>
094            * This method finds the appropriate interpreter for the activity by going
095            * through the available interpreters and asking them if they can handle the
096            * asset type of the activity.
097            * </p>
098            *
099            * @param activity the activity to be translated to human readable form
100            * @return the activity feed that is a human readable form of the activity
101            record or <code>null</code> if a compatible interpreter is not
102            found
103            */
104            public com.liferay.portlet.social.model.SocialActivityFeedEntry interpret(
105                    java.lang.String selector,
106                    com.liferay.portlet.social.model.SocialActivity activity,
107                    com.liferay.portal.service.ServiceContext serviceContext) {
108                    return _socialActivityInterpreterLocalService.interpret(selector,
109                            activity, serviceContext);
110            }
111    
112            public com.liferay.portlet.social.model.SocialActivityFeedEntry interpret(
113                    java.lang.String selector,
114                    com.liferay.portlet.social.model.SocialActivitySet activitySet,
115                    com.liferay.portal.service.ServiceContext serviceContext) {
116                    return _socialActivityInterpreterLocalService.interpret(selector,
117                            activitySet, serviceContext);
118            }
119    
120            public void updateActivitySet(long activityId)
121                    throws com.liferay.portal.kernel.exception.PortalException,
122                            com.liferay.portal.kernel.exception.SystemException {
123                    _socialActivityInterpreterLocalService.updateActivitySet(activityId);
124            }
125    
126            /**
127             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
128             */
129            public SocialActivityInterpreterLocalService getWrappedSocialActivityInterpreterLocalService() {
130                    return _socialActivityInterpreterLocalService;
131            }
132    
133            /**
134             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
135             */
136            public void setWrappedSocialActivityInterpreterLocalService(
137                    SocialActivityInterpreterLocalService socialActivityInterpreterLocalService) {
138                    _socialActivityInterpreterLocalService = socialActivityInterpreterLocalService;
139            }
140    
141            public SocialActivityInterpreterLocalService getWrappedService() {
142                    return _socialActivityInterpreterLocalService;
143            }
144    
145            public void setWrappedService(
146                    SocialActivityInterpreterLocalService socialActivityInterpreterLocalService) {
147                    _socialActivityInterpreterLocalService = socialActivityInterpreterLocalService;
148            }
149    
150            private SocialActivityInterpreterLocalService _socialActivityInterpreterLocalService;
151    }