Package org.apache.shindig.social.opensocial.model

Examples of org.apache.shindig.social.opensocial.model.Activity


     *            - 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;
    }
View Full Code Here

TOP

Related Classes of org.apache.shindig.social.opensocial.model.Activity

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.