use of org.jboss.pnc.dto.Artifact in project pnc by project-ncl.
the class RepositoryManagerResultMapper method toDTO.
public RepositoryManagerResultRest toDTO(RepositoryManagerResult entity) {
List<Artifact> builtArtifacts = entity.getBuiltArtifacts().stream().map(artifact -> artifactMapper.toDTO(artifact)).collect(Collectors.toList());
List<Artifact> dependencies = entity.getDependencies().stream().map(artifact -> artifactMapper.toDTO(artifact)).collect(Collectors.toList());
String buildContentId = entity.getBuildContentId();
String log = entity.getLog();
CompletionStatus completionStatus = entity.getCompletionStatus();
return new RepositoryManagerResultRest(builtArtifacts, dependencies, buildContentId, log, completionStatus);
}
Aggregations