use of org.apache.archiva.admin.model.beans.RepositoryGroup in project archiva by apache.
the class DefaultRepositoryGroupAdmin method getRepositoryToGroupMap.
@Override
public Map<String, List<String>> getRepositoryToGroupMap() throws RepositoryAdminException {
Map<String, List<String>> map = new HashMap<>();
for (RepositoryGroup group : getRepositoriesGroups()) {
for (String repositoryId : group.getRepositories()) {
List<String> groups = map.get(repositoryId);
if (groups == null) {
groups = new ArrayList<>();
map.put(repositoryId, groups);
}
groups.add(group.getId());
}
}
return map;
}
Aggregations