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