@ GET @ Path ( "/archivesummaries" ) public Map < String , List < ArchiveSummary > > getArchiveSummaries ( @ QueryParam ( "repositoryIds" ) Set < String > repositoryIds ) { if ( CollectionUtils . isEmpty ( repositoryIds ) ) { repositoryIds = repositories . keySet ( ) ; } Map < String , List < ArchiveSummary > > result = new LinkedHashMap < String , List < ArchiveSummary > > ( ) ; for ( String repositoryId : repositoryIds ) { List < ArchiveSummary > repoSummaries = getScriptRepo ( repositoryId ) . getSummaries ( ) ; result . put ( repositoryId , repoSummaries ) ; } return result ; }
Get a map of summaries from different repositories .