com.liferay.bookmarks.internal.ratings.BookmarksPortletRatingsDefinition 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.bookmarks.internal.ratings;
import com.liferay.bookmarks.constants.BookmarksPortletKeys;
import com.liferay.ratings.kernel.RatingsType;
import com.liferay.ratings.kernel.definition.PortletRatingsDefinition;
import org.osgi.service.component.annotations.Component;
/**
* @author Roberto Díaz
*/
@Component(
property = "model.class.name=com.liferay.bookmarks.model.BookmarksEntry",
service = PortletRatingsDefinition.class
)
public class BookmarksPortletRatingsDefinition
implements PortletRatingsDefinition {
@Override
public RatingsType getDefaultRatingsType() {
return RatingsType.STARS;
}
@Override
public String getPortletId() {
return BookmarksPortletKeys.BOOKMARKS;
}
}