Hi Zankar & Corné thanks for a quick replay.
I have manage to write a Notification-Hook for the SocialActivity Model. I have created
SocailActivityListener class & in this class onAfterCreate(Object arg0) method gives us SocialActivity object. With this object I am able to access all the details like groupId, userId, classname etc.
Now the problem is that how should I create the message body text for email notification which is similar to Activities portlet.
e.g. Blogs
Pravin wrote a new blog entry, How a SaaS Model Is Effective for Design, Develop and Market.
1:36 PM
I am unable to get the code for creating such messages according to the type of activity.
In activities portlet view.jsp following code is written for showing the activities.
1<liferay-ui:social-activities
2 activities="<%= activities %>"
3 feedEnabled="<%= true %>"
4 feedTitle='<%= LanguageUtil.format(pageContext, "subscribe-to-these-activities", user.getFirstName()) %>'
5 feedLink="<%= rssURL.toString() %>"
6 feedLinkMessage='<%= LanguageUtil.format(pageContext, "subscribe-to-these-activities", user.getFirstName()) %>'
7/>
Please sign in to flag this as inappropriate.