예제 #1
0
 private void populateGenericValueFromComment(Comment updatedComment, GenericValue commentGV) {
   ApplicationUser updateAuthor = updatedComment.getUpdateAuthorApplicationUser();
   commentGV.setString("updateauthor", updateAuthor == null ? null : updateAuthor.getKey());
   commentGV.setString("body", updatedComment.getBody());
   commentGV.setString("level", updatedComment.getGroupLevel());
   commentGV.set("rolelevel", updatedComment.getRoleLevelId());
   commentGV.set(
       "updated", JiraDateUtils.copyOrCreateTimestampNullsafe(updatedComment.getUpdated()));
 }
예제 #2
0
 public MockComment(
     final Long id,
     final String author,
     final String updateAuthor,
     final String body,
     final String groupLevel,
     final Long roleLevelId,
     final Date created,
     final Date updated,
     final Issue issue) {
   this.id = id;
   this.author = author;
   this.updateAuthor = updateAuthor;
   this.body = body == null ? "" : body;
   this.groupLevel = groupLevel;
   this.roleLevelId = roleLevelId;
   final Date createdDate = JiraDateUtils.copyOrCreateDateNullsafe(created);
   this.created = createdDate;
   this.updated = (updated == null) ? createdDate : updated;
   this.issue = issue;
 }