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