Package org.zanata.webtrans.shared.rpc

Examples of org.zanata.webtrans.shared.rpc.AddReviewComment


                        }
                    });
            factories.put(AddReviewComment.class, new EventFactory<CommentChangedEvent>() {
                @Override
                public CommentChangedEvent create(SessionEventData event) {
                    AddReviewComment comment = (AddReviewComment) event;
                    return new CommentChangedEvent(comment.getTransUnitId(), comment.getCommentCount());
                }
            });

        }
View Full Code Here


                hTextFlowTarget.addReviewComment(action.getContent(),
                        authenticatedAccount.getPerson());
        textFlowTargetReviewCommentsDAO.makePersistent(hComment);
        textFlowTargetReviewCommentsDAO.flush();

        AddReviewComment commentEvent = new AddReviewComment(
                new TransUnitId(hTextFlowTarget.getTextFlow().getId()),
                hTextFlowTarget.getReviewComments().size());
        workspace.publish(commentEvent);
        return new AddReviewCommentResult(toDTO(hComment));
    }
View Full Code Here

TOP

Related Classes of org.zanata.webtrans.shared.rpc.AddReviewComment

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.