Search in sources :

Example 1 with ToolGroupWithIssues

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;
}
Also used : ToolGroup(com.epam.pipeline.entity.pipeline.ToolGroup) ToolGroupWithIssues(com.epam.pipeline.entity.pipeline.ToolGroupWithIssues)

Aggregations

ToolGroup (com.epam.pipeline.entity.pipeline.ToolGroup)1 ToolGroupWithIssues (com.epam.pipeline.entity.pipeline.ToolGroupWithIssues)1