001    /**
002     * Copyright (c) 2000-present 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.social.kernel.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.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            * Creates a human readable activity feed entry for the activity using an
039            * available compatible activity interpreter.
040            *
041            * <p>
042            * This method finds the appropriate interpreter for the activity by going
043            * through the available interpreters and asking them if they can handle the
044            * asset type of the activity.
045            * </p>
046            *
047            * @param selector the context in which the activity interpreter is used
048            * @param activity the activity to be translated to human readable form
049            * @param serviceContext the service context to be applied
050            * @return the activity feed that is a human readable form of the activity
051            record or <code>null</code> if a compatible interpreter is not
052            found
053            */
054            @Override
055            public com.liferay.social.kernel.model.SocialActivityFeedEntry interpret(
056                    java.lang.String selector,
057                    com.liferay.social.kernel.model.SocialActivity activity,
058                    com.liferay.portal.kernel.service.ServiceContext serviceContext) {
059                    return _socialActivityInterpreterLocalService.interpret(selector,
060                            activity, serviceContext);
061            }
062    
063            @Override
064            public com.liferay.social.kernel.model.SocialActivityFeedEntry interpret(
065                    java.lang.String selector,
066                    com.liferay.social.kernel.model.SocialActivitySet activitySet,
067                    com.liferay.portal.kernel.service.ServiceContext serviceContext) {
068                    return _socialActivityInterpreterLocalService.interpret(selector,
069                            activitySet, serviceContext);
070            }
071    
072            /**
073            * Returns the OSGi service identifier.
074            *
075            * @return the OSGi service identifier
076            */
077            @Override
078            public java.lang.String getOSGiServiceIdentifier() {
079                    return _socialActivityInterpreterLocalService.getOSGiServiceIdentifier();
080            }
081    
082            @Override
083            public java.util.List<com.liferay.social.kernel.model.SocialActivityInterpreter> getActivityInterpreters(
084                    java.lang.String selector) {
085                    return _socialActivityInterpreterLocalService.getActivityInterpreters(selector);
086            }
087    
088            @Override
089            public java.util.Map<java.lang.String, java.util.List<com.liferay.social.kernel.model.SocialActivityInterpreter>> getActivityInterpreters() {
090                    return _socialActivityInterpreterLocalService.getActivityInterpreters();
091            }
092    
093            /**
094            * Adds the activity interpreter to the list of available interpreters.
095            *
096            * @param activityInterpreter the activity interpreter
097            */
098            @Override
099            public void addActivityInterpreter(
100                    com.liferay.social.kernel.model.SocialActivityInterpreter activityInterpreter) {
101                    _socialActivityInterpreterLocalService.addActivityInterpreter(activityInterpreter);
102            }
103    
104            /**
105            * Removes the activity interpreter from the list of available interpreters.
106            *
107            * @param activityInterpreter the activity interpreter
108            */
109            @Override
110            public void deleteActivityInterpreter(
111                    com.liferay.social.kernel.model.SocialActivityInterpreter activityInterpreter) {
112                    _socialActivityInterpreterLocalService.deleteActivityInterpreter(activityInterpreter);
113            }
114    
115            @Override
116            public void updateActivitySet(long activityId)
117                    throws com.liferay.portal.kernel.exception.PortalException {
118                    _socialActivityInterpreterLocalService.updateActivitySet(activityId);
119            }
120    
121            @Override
122            public SocialActivityInterpreterLocalService getWrappedService() {
123                    return _socialActivityInterpreterLocalService;
124            }
125    
126            @Override
127            public void setWrappedService(
128                    SocialActivityInterpreterLocalService socialActivityInterpreterLocalService) {
129                    _socialActivityInterpreterLocalService = socialActivityInterpreterLocalService;
130            }
131    
132            private SocialActivityInterpreterLocalService _socialActivityInterpreterLocalService;
133    }