public List<VersionSummaryDto> getVersionSummaryInBatch(final List<RepositoryFileDto> files) { List<VersionSummaryDto> versions = new ArrayList<VersionSummaryDto>(files.size()); for (RepositoryFileDto file : files) { versions.add( versionSummaryAdapter.marshal(repo.getVersionSummary(file.getId(), file.getVersionId()))); } return versions; }
public VersionSummaryDto getVersionSummary(String fileId, String versionId) { return versionSummaryAdapter.marshal(repo.getVersionSummary(fileId, versionId)); }