com.liferay.subscription.web.internal.social.SubscriptionSocialActivityManager Maven / Gradle / Ivy
The newest version!
/**
* SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
* SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
*/
package com.liferay.subscription.web.internal.social;
import com.liferay.portal.kernel.model.Subscription;
import com.liferay.portal.kernel.social.BaseSocialActivityManager;
import com.liferay.portal.kernel.social.SocialActivityManager;
import com.liferay.social.kernel.service.SocialActivityLocalService;
import org.osgi.service.component.annotations.Component;
import org.osgi.service.component.annotations.Reference;
/**
* @author Adolfo Pérez
*/
@Component(
property = "model.class.name=com.liferay.portal.kernel.model.Subscription",
service = SocialActivityManager.class
)
public class SubscriptionSocialActivityManager
extends BaseSocialActivityManager {
@Override
protected String getClassName(Subscription subscription) {
return subscription.getClassName();
}
@Override
protected long getPrimaryKey(Subscription subscription) {
return subscription.getClassPK();
}
@Override
protected SocialActivityLocalService getSocialActivityLocalService() {
return _socialActivityLocalService;
}
@Reference
private SocialActivityLocalService _socialActivityLocalService;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy