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 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            * Creates a human readable request feed entry for the social request using
039            * an available compatible request interpreter.
040            *
041            * <p>
042            * This method finds the appropriate interpreter for the request by going
043            * through the available interpreters to find one that can handle the asset
044            * type of the request.
045            * </p>
046            *
047            * @param request the social request to be translated to human readable
048            form
049            * @param themeDisplay the theme display needed by interpreters to create
050            links and get localized text fragments
051            * @return the social request feed entry
052            */
053            @Override
054            public com.liferay.social.kernel.model.SocialRequestFeedEntry interpret(
055                    com.liferay.social.kernel.model.SocialRequest request,
056                    com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) {
057                    return _socialRequestInterpreterLocalService.interpret(request,
058                            themeDisplay);
059            }
060    
061            /**
062            * Returns the OSGi service identifier.
063            *
064            * @return the OSGi service identifier
065            */
066            @Override
067            public java.lang.String getOSGiServiceIdentifier() {
068                    return _socialRequestInterpreterLocalService.getOSGiServiceIdentifier();
069            }
070    
071            /**
072            * Adds the social request interpreter to the list of available
073            * interpreters.
074            *
075            * @param requestInterpreter the social request interpreter
076            */
077            @Override
078            public void addRequestInterpreter(
079                    com.liferay.social.kernel.model.SocialRequestInterpreter requestInterpreter) {
080                    _socialRequestInterpreterLocalService.addRequestInterpreter(requestInterpreter);
081            }
082    
083            /**
084            * Removes the social request interpreter from the list of available
085            * interpreters.
086            *
087            * @param requestInterpreter the social request interpreter
088            */
089            @Override
090            public void deleteRequestInterpreter(
091                    com.liferay.social.kernel.model.SocialRequestInterpreter requestInterpreter) {
092                    _socialRequestInterpreterLocalService.deleteRequestInterpreter(requestInterpreter);
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.social.kernel.model.SocialRequest request,
112                    com.liferay.portal.kernel.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.social.kernel.model.SocialRequest request,
135                    com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) {
136                    _socialRequestInterpreterLocalService.processRejection(request,
137                            themeDisplay);
138            }
139    
140            @Override
141            public SocialRequestInterpreterLocalService getWrappedService() {
142                    return _socialRequestInterpreterLocalService;
143            }
144    
145            @Override
146            public void setWrappedService(
147                    SocialRequestInterpreterLocalService socialRequestInterpreterLocalService) {
148                    _socialRequestInterpreterLocalService = socialRequestInterpreterLocalService;
149            }
150    
151            private SocialRequestInterpreterLocalService _socialRequestInterpreterLocalService;
152    }