@Override public VersionSummary getVersionSummary(Serializable fileId, Serializable versionId) { return versionSummaryAdapter.unmarshal( repoWebService.getVersionSummary( fileId != null ? fileId.toString() : null, versionId != null ? versionId.toString() : null)); }
private List<VersionSummary> unmarshalVersionSummaries(List<VersionSummaryDto> dtos) { List<VersionSummary> versionSummaries = new ArrayList<VersionSummary>(); for (VersionSummaryDto dto : dtos) { versionSummaries.add(versionSummaryAdapter.unmarshal(dto)); } return versionSummaries; }