001
014
015 package com.liferay.portal.subscription.social;
016
017 import com.liferay.portal.kernel.bean.BeanReference;
018 import com.liferay.portal.kernel.social.BaseSocialActivityManager;
019 import com.liferay.portal.kernel.social.SocialActivityManager;
020 import com.liferay.portal.kernel.spring.osgi.OSGiBeanProperties;
021 import com.liferay.portal.model.Subscription;
022 import com.liferay.portlet.social.service.SocialActivityLocalService;
023
024
027 @OSGiBeanProperties(
028 property = "model.class.name=com.liferay.portal.model.Subscription",
029 service = SocialActivityManager.class
030 )
031 public class SubscriptionSocialActivityManager
032 extends BaseSocialActivityManager<Subscription> {
033
034 @Override
035 protected String getClassName(Subscription subscription) {
036 return subscription.getClassName();
037 }
038
039 @Override
040 protected long getPrimaryKey(Subscription subscription) {
041 return subscription.getClassPK();
042 }
043
044 @Override
045 protected SocialActivityLocalService getSocialActivityLocalService() {
046 return socialActivityLocalService;
047 }
048
049 @BeanReference(type = SocialActivityLocalService.class)
050 protected SocialActivityLocalService socialActivityLocalService;
051
052 }