use of org.apache.shindig.social.opensocial.model.Activity in project liferay-ide by liferay.
the class LiferayActivityService method getExternalActivity.
protected Activity getExternalActivity(SocialActivity socialActivity) throws Exception {
Activity activity = new ActivityImpl(String.valueOf(socialActivity.getClassPK()), String.valueOf(socialActivity.getUserId()));
JSONObject extraDataJSONObject = JSONFactoryUtil.createJSONObject(socialActivity.getExtraData());
SerializerUtil.copyProperties(extraDataJSONObject, activity, _ACTIVITY_FIELDS);
return activity;
}
Aggregations