package com.lostsys.activity;

import com.liferay.portlet.social.model.BaseSocialActivityInterpreter;
import com.liferay.portlet.social.model.SocialActivityFeedEntry;
import com.liferay.portlet.social.model.SocialActivity;
import com.liferay.portal.theme.ThemeDisplay;

public class ActivityClass extends BaseSocialActivityInterpreter {

	private static final String[] _CLASS_NAMES = new String[] {
		Controller.class.getName()
		};

	public String[] getClassNames() {
		return _CLASS_NAMES;
		}

	protected SocialActivityFeedEntry doInterpret( SocialActivity activity, ThemeDisplay themeDisplay ) throws Exception {
		// parse activity

		String link = "#";
		String title = "YYY --- <a href='http://www.lostsys.com' target='_blank'>Lostsys</a>";
		String body = "XXXXXXX";

		return new SocialActivityFeedEntry(link, title, body);
		}	

	}