掲示板

Retrieving and Saving Blog Rating

thumbnail
12年前 に Kamesh Sampath によって更新されました。

Retrieving and Saving Blog Rating

Regular Member 投稿: 158 参加年月日: 10/05/27 最新の投稿
Hi,

I am trying to figure out how to pull ratings, comments and any other metadata associated with the a particular Blog Entry . I have the handle BlogEntry and AssetEntry objects.

--Kamesh
thumbnail
12年前 に Juan Fernández によって更新されました。

RE: Retrieving and Saving Blog Rating

Liferay Legend 投稿: 1261 参加年月日: 08/10/02 最新の投稿
Hi Kamesh:
in order to get info about the ratings you have in a blog entry, I recommend you to see ratings/page.jsp
There you can see the usage of the most important services here:


	ratingsEntry = RatingsEntryLocalServiceUtil.fetchEntry(themeDisplay.getUserId(), className, classPK);
	ratingsStats = RatingsStatsLocalServiceUtil.getStats(className, classPK);


In your case, className = BlogsEntry.class.getName() and classPk = entryId
Tell me if you need more info
Regards,
Juan Fernández
thumbnail
12年前 に Kamesh Sampath によって更新されました。

RE: Retrieving and Saving Blog Rating

Regular Member 投稿: 158 参加年月日: 10/05/27 最新の投稿
Thanks Juan, let me try and keep you posted