Package org.eurekastreams.server.search.modelview

Examples of org.eurekastreams.server.search.modelview.CommentDTO


        // loop old-school style so no dependency on list iterator order.
        int numRequested = requestedIds.size();
        for (int x = 0; x < numRequested; x++)
        {
            CommentDTO temp = commentDTOMap.get(requestedIds.get(x));
            if (temp != null)
            {
                orderedResults.add(temp);
            }
        }
View Full Code Here


     *
     */
    @Override
    public CommentDTO execute(final TaskHandlerActionContext<PrincipalActionContext> inActionContext)
    {
        CommentDTO inRequest = (CommentDTO) inActionContext.getActionContext().getParams();

        long personId = inActionContext.getActionContext().getPrincipal().getId();
        long activityId = inRequest.getActivityId();
        CommentDTO results = insertCommentDAO.execute(new InsertActivityCommentRequest(personId, activityId, inRequest
                .getBody()));

        getNotificationUserRequests(personId, activityId, results.getId(), inActionContext.getUserActionRequests());

        return results;
    }
View Full Code Here

     * @return a new CommentDTO object.
     */
    @Override
    public CommentDTO buildModelView()
    {
        return new CommentDTO();
    }
View Full Code Here

     */
    @Override
    public Serializable execute(final TaskHandlerActionContext<PrincipalActionContext> inActionContext)
    {
        // use a CommentDTO as input so this action can use the same authorizer as postActivityCommentAction
        CommentDTO inputComment = (CommentDTO) inActionContext.getActionContext().getParams();
        String inputText = inputComment.getBody();

        for (String piece : textSplitter.split(inputText))
        {
            CommentDTO thisComment = new CommentDTO();
            thisComment.setBody(piece);
            thisComment.setActivityId(inputComment.getActivityId());
            executor.execute(postCommentAction, inActionContext, thisComment);
        }
        return null;
    }
View Full Code Here

                new PostActivityRequest(activityToPost));

        // post the comments
        for (String piece : pieces.subList(1, pieces.size()))
        {
            CommentDTO thisComment = new CommentDTO();
            thisComment.setBody(piece);
            thisComment.setActivityId(postedActivity.getId());
            executor.execute(postCommentAction, inActionContext, thisComment);
        }

        return postedActivity.getId();
    }
View Full Code Here

TOP

Related Classes of org.eurekastreams.server.search.modelview.CommentDTO

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.