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