mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-13 21:13:19 +00:00
DS-3578 Endpoints to retrieve EPerson and Groups
implemented pagination in the eperson and group service
This commit is contained in:
@@ -143,6 +143,11 @@ public class EPersonServiceImpl extends DSpaceObjectServiceImpl<EPerson> impleme
|
||||
|
||||
@Override
|
||||
public List<EPerson> findAll(Context context, int sortField) throws SQLException {
|
||||
return findAll(context, sortField, -1, -1);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<EPerson> findAll(Context context, int sortField, int pageSize, int offset) throws SQLException {
|
||||
String sortColumn = null;
|
||||
MetadataField metadataFieldSort = null;
|
||||
switch (sortField)
|
||||
@@ -165,7 +170,7 @@ public class EPersonServiceImpl extends DSpaceObjectServiceImpl<EPerson> impleme
|
||||
default:
|
||||
metadataFieldSort = metadataFieldService.findByElement(context, "eperson", "lastname", null);
|
||||
}
|
||||
return ePersonDAO.findAll(context, metadataFieldSort, sortColumn);
|
||||
return ePersonDAO.findAll(context, metadataFieldSort, sortColumn, pageSize, offset);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user