mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-08 02:24:18 +00:00
DS-4529 External authorities endpoint doesn't support the pagination
This commit is contained in:
@@ -89,10 +89,10 @@ public class ExternalSourceRestRepository extends DSpaceRestRepository<ExternalS
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@PreAuthorize("permitAll()")
|
||||||
public Page<ExternalSourceRest> findAll(Context context, Pageable pageable) {
|
public Page<ExternalSourceRest> findAll(Context context, Pageable pageable) {
|
||||||
List<ExternalDataProvider> externalSources = externalDataService.getExternalDataProviders();
|
List<ExternalDataProvider> externalSources = externalDataService.getExternalDataProviders();
|
||||||
return converter.toRestPage(externalSources, pageable, externalSources.size(),
|
return converter.toRestPage(externalSources, pageable, utils.obtainProjection());
|
||||||
utils.obtainProjection());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public Class<ExternalSourceRest> getDomainClass() {
|
public Class<ExternalSourceRest> getDomainClass() {
|
||||||
|
Reference in New Issue
Block a user