/** * Copyright (c) 2000-present Liferay, Inc. All rights reserved. * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2.1 of the License, or (at your option) * any later version. * * This library is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more * details. */ package com.liferay.social.networking.web.internal.friends.social; import com.liferay.portal.kernel.service.UserLocalService; import com.liferay.social.kernel.model.SocialRequestInterpreter; import com.liferay.social.kernel.service.SocialActivityLocalService; import com.liferay.social.kernel.service.SocialRelationLocalService; import com.liferay.social.networking.constants.SocialNetworkingPortletKeys; import com.liferay.social.networking.web.internal.social.BaseSocialNetworkingRequestInterpreter; import org.osgi.service.component.annotations.Component; import org.osgi.service.component.annotations.Reference; /** * @author Brian Wing Shun Chan */ @Component( property = {"javax.portlet.name=" + SocialNetworkingPortletKeys.FRIENDS}, service = SocialRequestInterpreter.class ) public class FriendsRequestInterpreter extends BaseSocialNetworkingRequestInterpreter { @Override protected SocialActivityLocalService getSocialActivityLocalService() { return _socialActivityLocalService; } @Override protected SocialRelationLocalService getSocialRelationLocalService() { return _socialRelationLocalService; } @Override protected UserLocalService getUserLocalService() { return _userLocalService; } @Reference(unbind = "-") protected void setSocialActivityLocalService( SocialActivityLocalService socialActivityLocalService) { _socialActivityLocalService = socialActivityLocalService; } @Reference(unbind = "-") protected void setSocialRelationLocalService( SocialRelationLocalService socialRelationLocalService) { _socialRelationLocalService = socialRelationLocalService; } @Reference(unbind = "-") protected void setUserLocalService(UserLocalService userLocalService) { _userLocalService = userLocalService; } private SocialActivityLocalService _socialActivityLocalService; private SocialRelationLocalService _socialRelationLocalService; private UserLocalService _userLocalService; }