* - eurekastreams ActivityDTO to be converted.
* @return converted OpenSocial Activity object.
*/
private Activity convertActivityFromEurekaActivityDTOToOS(final ActivityDTO inEurekaActivityDTO)
{
Activity osActivity = new ActivityImpl();
// TODO: this code needs to be refactor when new message object rearch is done.
// Populate the OpenSocial Activity properties.
// osActivity.setAppId(inEurekaActivity.getAppId());
// osActivity.setBody(inEurekaActivity.getBody());
// osActivity.setBodyId(inEurekaActivity.getBodyId());
osActivity.setExternalId(String.valueOf(inEurekaActivityDTO.getId()));
// osActivity.setId(String.valueOf(inEurekaActivityDTO.getEntityId()));
osActivity.setUpdated(inEurekaActivityDTO.getPostedTime());
// osActivity.setPriority(inEurekaActivity.getPriority());
// osActivity.setStreamFaviconUrl(inEurekaActivity.getStreamFaviconUrl());
// osActivity.setStreamSourceUrl(inEurekaActivity.getStreamSourceUrl());
osActivity.setStreamTitle(inEurekaActivityDTO.getDestinationStream().getDisplayName());
// osActivity.setStreamUrl(inEurekaActivity.getStreamUrl());
// osActivity.setTemplateParams(inEurekaActivity.getTemplateParams());
osActivity.setTitle(inEurekaActivityDTO.getBaseObjectProperties().get("Content"));
// osActivity.setTitleId(inEurekaActivity.getTitleId());
// osActivity.setUrl(inEurekaActivity.getUrl());
osActivity.setUserId(inEurekaActivityDTO.getActor().getUniqueIdentifier());
return osActivity;
}