public void store ( String gavc , String action , String commentText , DbCredential credential , String entityType ) { DbComment comment = new DbComment ( ) ; comment . setEntityId ( gavc ) ; comment . setEntityType ( entityType ) ; comment . setDbCommentedBy ( credential . getUser ( ) ) ; comment . setAction ( action ) ; if ( ! commentText . isEmpty ( ) ) { comment . setDbCommentText ( commentText ) ; } comment . setDbCreatedDateTime ( new Date ( ) ) ; repositoryHandler . store ( comment ) ; }
Store a comment based on comment text gavc and user information