Map<String, Object> row = (Map<String, Object>) context.getResultObject();
String project = (String) row.get("project");
String user = (String) row.get("permissionUser");
String group = (String) row.get("permissionGroup");
Date updatedAt = (Date) row.get("updatedAt");
IssueAuthorizationDto issueAuthorizationDto = authorizationDtoMap.get(project);
if (issueAuthorizationDto == null) {
issueAuthorizationDto = new IssueAuthorizationDto()
.setProjectUuid(project);
issueAuthorizationDto.setUpdatedAt(updatedAt);
}
if (group != null) {
issueAuthorizationDto.addGroup(group);
}
if (user != null) {
issueAuthorizationDto.addUser(user);
}
authorizationDtoMap.put(project, issueAuthorizationDto);
}
@Override