com.liferay.wiki.web.internal.social.WikiPageSocialActivityManager Maven / Gradle / Ivy
/**
* 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.wiki.web.internal.social;
import com.liferay.portal.kernel.social.BaseSocialActivityManager;
import com.liferay.portal.kernel.social.SocialActivityManager;
import com.liferay.social.kernel.service.SocialActivityLocalService;
import com.liferay.wiki.model.WikiPage;
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.wiki.model.WikiPage",
service = SocialActivityManager.class
)
public class WikiPageSocialActivityManager
extends BaseSocialActivityManager {
@Override
protected long getPrimaryKey(WikiPage wikiPage) {
return wikiPage.getResourcePrimKey();
}
@Override
protected SocialActivityLocalService getSocialActivityLocalService() {
return _socialActivityLocalService;
}
@Reference
private SocialActivityLocalService _socialActivityLocalService;
}