001    /**
002     * Copyright (c) 2000-2011 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    /**
018     * <p>
019     * This class is a wrapper for {@link SocialRequestInterpreterLocalService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       SocialRequestInterpreterLocalService
024     * @generated
025     */
026    public class SocialRequestInterpreterLocalServiceWrapper
027            implements SocialRequestInterpreterLocalService {
028            public SocialRequestInterpreterLocalServiceWrapper(
029                    SocialRequestInterpreterLocalService socialRequestInterpreterLocalService) {
030                    _socialRequestInterpreterLocalService = socialRequestInterpreterLocalService;
031            }
032    
033            /**
034            * Returns the Spring bean ID for this bean.
035            *
036            * @return the Spring bean ID for this bean
037            */
038            public java.lang.String getBeanIdentifier() {
039                    return _socialRequestInterpreterLocalService.getBeanIdentifier();
040            }
041    
042            /**
043            * Sets the Spring bean ID for this bean.
044            *
045            * @param beanIdentifier the Spring bean ID for this bean
046            */
047            public void setBeanIdentifier(java.lang.String beanIdentifier) {
048                    _socialRequestInterpreterLocalService.setBeanIdentifier(beanIdentifier);
049            }
050    
051            /**
052            * Adds the social request interpreter to the list of available
053            * interpreters.
054            *
055            * @param requestInterpreter the social request interpreter
056            */
057            public void addRequestInterpreter(
058                    com.liferay.portlet.social.model.SocialRequestInterpreter requestInterpreter) {
059                    _socialRequestInterpreterLocalService.addRequestInterpreter(requestInterpreter);
060            }
061    
062            /**
063            * Removes the social request interpreter from the list of available
064            * interpreters.
065            *
066            * @param requestInterpreter the social request interpreter
067            */
068            public void deleteRequestInterpreter(
069                    com.liferay.portlet.social.model.SocialRequestInterpreter requestInterpreter) {
070                    _socialRequestInterpreterLocalService.deleteRequestInterpreter(requestInterpreter);
071            }
072    
073            /**
074            * Creates a human readable request feed entry for the social request using
075            * an available compatible request interpreter.
076            *
077            * <p>
078            * This method finds the appropriate interpreter for the request by going
079            * through the available interpreters to find one that can handle the asset
080            * type of the request.
081            * </p>
082            *
083            * @param request the social request to be translated to human readable
084            form
085            * @param themeDisplay the theme display needed by interpreters to create
086            links and get localized text fragments
087            * @return the social request feed entry
088            */
089            public com.liferay.portlet.social.model.SocialRequestFeedEntry interpret(
090                    com.liferay.portlet.social.model.SocialRequest request,
091                    com.liferay.portal.theme.ThemeDisplay themeDisplay) {
092                    return _socialRequestInterpreterLocalService.interpret(request,
093                            themeDisplay);
094            }
095    
096            /**
097            * Processes the confirmation of the social request.
098            *
099            * <p>
100            * Confirmations are handled by finding the appropriate social request
101            * interpreter and calling its processConfirmation() method. To find the
102            * appropriate interpreter this method goes through the available
103            * interpreters to find one that can handle the asset type of the request.
104            * </p>
105            *
106            * @param request the social request being confirmed
107            * @param themeDisplay the theme display needed by interpreters to create
108            links and get localized text fragments
109            */
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            public void processRejection(
133                    com.liferay.portlet.social.model.SocialRequest request,
134                    com.liferay.portal.theme.ThemeDisplay themeDisplay) {
135                    _socialRequestInterpreterLocalService.processRejection(request,
136                            themeDisplay);
137            }
138    
139            public SocialRequestInterpreterLocalService getWrappedSocialRequestInterpreterLocalService() {
140                    return _socialRequestInterpreterLocalService;
141            }
142    
143            public void setWrappedSocialRequestInterpreterLocalService(
144                    SocialRequestInterpreterLocalService socialRequestInterpreterLocalService) {
145                    _socialRequestInterpreterLocalService = socialRequestInterpreterLocalService;
146            }
147    
148            private SocialRequestInterpreterLocalService _socialRequestInterpreterLocalService;
149    }