DS-4529 External authorities endpoint doesn't support the pagination

This commit is contained in:
Andrea Bollini
2020-06-20 18:52:45 +02:00
parent 38c5667233
commit bd2cf94376

View File

@@ -89,10 +89,10 @@ public class ExternalSourceRestRepository extends DSpaceRestRepository<ExternalS
}
@Override
@PreAuthorize("permitAll()")
public Page<ExternalSourceRest> findAll(Context context, Pageable pageable) {
List<ExternalDataProvider> externalSources = externalDataService.getExternalDataProviders();
return converter.toRestPage(externalSources, pageable, externalSources.size(),
utils.obtainProjection());
return converter.toRestPage(externalSources, pageable, utils.obtainProjection());
}
public Class<ExternalSourceRest> getDomainClass() {