public static Comment createComment ( final String entityId , final String entityType , final String action , final String commentedText , final String user , final Date date ) { final Comment comment = new Comment ( ) ; comment . setEntityId ( entityId ) ; comment . setEntityType ( entityType ) ; comment . setAction ( action ) ; comment . setCommentText ( commentedText ) ; comment . setCommentedBy ( user ) ; comment . setCreatedDateTime ( date ) ; return comment ; }
Generates a comment regarding the parameters .