use of com.epam.pipeline.entity.pipeline.ToolGroupWithIssues in project cloud-pipeline by epam.
the class ToolGroupManager method loadToolsWithIssuesCount.
public ToolGroupWithIssues loadToolsWithIssuesCount(Long id) {
ToolGroup group = toolGroupDao.loadToolGroup(id).orElseThrow(() -> new IllegalArgumentException(messageHelper.getMessage(MessageConstants.ERROR_TOOL_GROUP_NOT_FOUND, id)));
group.setPrivateGroup(group.getName().equalsIgnoreCase(makePrivateGroupName()));
ToolGroupWithIssues groupWithIssues = toolGroupWithIssuesMapper.toToolGroupWithIssues(group);
groupWithIssues.setToolsWithIssues(toolManager.loadToolsWithIssuesCountByGroup(id));
return groupWithIssues;
}
Aggregations