Package org.zanata.webtrans.shared.model

Examples of org.zanata.webtrans.shared.model.ReviewCommentId


        return Lists.transform(hComments,
                new Function<HTextFlowTargetReviewComment, ReviewComment>() {
                    @Override
                    public ReviewComment apply(
                            HTextFlowTargetReviewComment input) {
                        return new ReviewComment(new ReviewCommentId(input
                                .getId()), input.getComment(), input
                                .getCommenterName(), input.getCreationDate(),
                                input.getTargetVersion());
                    }
                });
View Full Code Here


            throw new ActionException("comment can not be blank");
        }
    }

    private static ReviewComment toDTO(HTextFlowTargetReviewComment hComment) {
        return new ReviewComment(new ReviewCommentId(hComment.getId()),
                hComment.getComment(), hComment.getCommenterName(),
                hComment.getCreationDate(), hComment.getTargetVersion());
    }
View Full Code Here

                hPerson);
        inOrder.verify(textFlowTargetReviewCommentsDAO).flush();
        inOrder.verify(workspace).publish(isA(AddReviewComment.class));

        assertThat(result.getComment().getId(),
                Matchers.equalTo(new ReviewCommentId(1L)));
    }
View Full Code Here

                        ContentState.Approved, "admin", new Date(now - 1000));
        TransHistoryItem item =
                new TransHistoryItem("4", Lists.newArrayList("a"),
                        ContentState.Approved, "admin", new Date(now - 2000));
        ReviewComment comment =
                new ReviewComment(new ReviewCommentId(1L), "comment", "admin",
                        new Date(now), 5);

        presenter.displayEntries(latest, Lists.newArrayList(item),
                Lists.newArrayList(comment));
View Full Code Here

TOP

Related Classes of org.zanata.webtrans.shared.model.ReviewCommentId

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.