Package org.eurekastreams.server.action.request.stream

Examples of org.eurekastreams.server.action.request.stream.PostActivityRequest


        activityToPost.setDestinationStream(new StreamEntityDTO(request.getEntityType(), uniqueId));
        activityToPost.setBaseObjectProperties(new HashMap<String, String>(Collections.singletonMap("content",
                pieces.get(0))));
        TaskHandlerAction postActivityAction = postActivityActions.get(request.getEntityType());
        ActivityDTO postedActivity = (ActivityDTO) executor.execute(postActivityAction, inActionContext,
                new PostActivityRequest(activityToPost));

        // post the comments
        for (String piece : pieces.subList(1, pieces.size()))
        {
            CommentDTO thisComment = new CommentDTO();
View Full Code Here


                // Note: create a principal for the follower: we want to post on the follower's stream as the
                // follower.
                // The current principal will be different from the follower in some cases, namely when following a
                // private group (the current principal / actor is the coordinator who approved access).
                new InlineExecutionStrategyExecutor().execute(postActivityExecutor, new PostActivityRequest(activity),
                        new DefaultPrincipal(followerAccountId, null, followerId),
                        inActionContext.getUserActionRequests());
            }
            break;
View Full Code Here

TOP

Related Classes of org.eurekastreams.server.action.request.stream.PostActivityRequest

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.