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.portlet.social.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.service.ServiceWrapper;
020    
021    /**
022     * Provides a wrapper for {@link SocialRequestInterpreterLocalService}.
023     *
024     * @author Brian Wing Shun Chan
025     * @see SocialRequestInterpreterLocalService
026     * @generated
027     */
028    @ProviderType
029    public class SocialRequestInterpreterLocalServiceWrapper
030            implements SocialRequestInterpreterLocalService,
031                    ServiceWrapper<SocialRequestInterpreterLocalService> {
032            public SocialRequestInterpreterLocalServiceWrapper(
033                    SocialRequestInterpreterLocalService socialRequestInterpreterLocalService) {
034                    _socialRequestInterpreterLocalService = socialRequestInterpreterLocalService;
035            }
036    
037            /**
038            * Adds the social request interpreter to the list of available
039            * interpreters.
040            *
041            * @param requestInterpreter the social request interpreter
042            */
043            @Override
044            public void addRequestInterpreter(
045                    com.liferay.portlet.social.model.SocialRequestInterpreter requestInterpreter) {
046                    _socialRequestInterpreterLocalService.addRequestInterpreter(requestInterpreter);
047            }
048    
049            /**
050            * Removes the social request interpreter from the list of available
051            * interpreters.
052            *
053            * @param requestInterpreter the social request interpreter
054            */
055            @Override
056            public void deleteRequestInterpreter(
057                    com.liferay.portlet.social.model.SocialRequestInterpreter requestInterpreter) {
058                    _socialRequestInterpreterLocalService.deleteRequestInterpreter(requestInterpreter);
059            }
060    
061            /**
062            * Returns the Spring bean ID for this bean.
063            *
064            * @return the Spring bean ID for this bean
065            */
066            @Override
067            public java.lang.String getBeanIdentifier() {
068                    return _socialRequestInterpreterLocalService.getBeanIdentifier();
069            }
070    
071            /**
072            * Creates a human readable request feed entry for the social request using
073            * an available compatible request interpreter.
074            *
075            * <p>
076            * This method finds the appropriate interpreter for the request by going
077            * through the available interpreters to find one that can handle the asset
078            * type of the request.
079            * </p>
080            *
081            * @param request the social request to be translated to human readable
082            form
083            * @param themeDisplay the theme display needed by interpreters to create
084            links and get localized text fragments
085            * @return the social request feed entry
086            */
087            @Override
088            public com.liferay.portlet.social.model.SocialRequestFeedEntry interpret(
089                    com.liferay.portlet.social.model.SocialRequest request,
090                    com.liferay.portal.theme.ThemeDisplay themeDisplay) {
091                    return _socialRequestInterpreterLocalService.interpret(request,
092                            themeDisplay);
093            }
094    
095            /**
096            * Processes the confirmation of the social request.
097            *
098            * <p>
099            * Confirmations are handled by finding the appropriate social request
100            * interpreter and calling its processConfirmation() method. To find the
101            * appropriate interpreter this method goes through the available
102            * interpreters to find one that can handle the asset type of the request.
103            * </p>
104            *
105            * @param request the social request being confirmed
106            * @param themeDisplay the theme display needed by interpreters to create
107            links and get localized text fragments
108            */
109            @Override
110            public void processConfirmation(
111                    com.liferay.portlet.social.model.SocialRequest request,
112                    com.liferay.portal.theme.ThemeDisplay themeDisplay) {
113                    _socialRequestInterpreterLocalService.processConfirmation(request,
114                            themeDisplay);
115            }
116    
117            /**
118            * Processes the rejection of the social request.
119            *
120            * <p>
121            * Rejections are handled by finding the appropriate social request
122            * interpreters and calling their processRejection() methods. To find the
123            * appropriate interpreters this method goes through the available
124            * interpreters and asks them if they can handle the asset type of the
125            * request.
126            * </p>
127            *
128            * @param request the social request being rejected
129            * @param themeDisplay the theme display needed by interpreters to create
130            links and get localized text fragments
131            */
132            @Override
133            public void processRejection(
134                    com.liferay.portlet.social.model.SocialRequest request,
135                    com.liferay.portal.theme.ThemeDisplay themeDisplay) {
136                    _socialRequestInterpreterLocalService.processRejection(request,
137                            themeDisplay);
138            }
139    
140            /**
141            * Sets the Spring bean ID for this bean.
142            *
143            * @param beanIdentifier the Spring bean ID for this bean
144            */
145            @Override
146            public void setBeanIdentifier(java.lang.String beanIdentifier) {
147                    _socialRequestInterpreterLocalService.setBeanIdentifier(beanIdentifier);
148            }
149    
150            /**
151             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
152             */
153            @Deprecated
154            public SocialRequestInterpreterLocalService getWrappedSocialRequestInterpreterLocalService() {
155                    return _socialRequestInterpreterLocalService;
156            }
157    
158            /**
159             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
160             */
161            @Deprecated
162            public void setWrappedSocialRequestInterpreterLocalService(
163                    SocialRequestInterpreterLocalService socialRequestInterpreterLocalService) {
164                    _socialRequestInterpreterLocalService = socialRequestInterpreterLocalService;
165            }
166    
167            @Override
168            public SocialRequestInterpreterLocalService getWrappedService() {
169                    return _socialRequestInterpreterLocalService;
170            }
171    
172            @Override
173            public void setWrappedService(
174                    SocialRequestInterpreterLocalService socialRequestInterpreterLocalService) {
175                    _socialRequestInterpreterLocalService = socialRequestInterpreterLocalService;
176            }
177    
178            private SocialRequestInterpreterLocalService _socialRequestInterpreterLocalService;
179    }