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