use of org.opencastproject.index.service.resources.list.api.ResourceListProvider in project opencast by opencast.
the class ListProvidersServiceImpl method getList.
@Override
public Map<String, String> getList(String listName, ResourceListQuery query, Organization organization, boolean inverseValueKey) throws ListProviderException {
ResourceListProvider provider = providers.get(listName);
if (provider == null)
throw new ListProviderException("No resources list found with the name " + listName);
Map<String, String> list = provider.getList(listName, query, organization);
if (inverseValueKey) {
list = invertMap(list);
}
return list;
}
Aggregations