mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-10 11:33:11 +00:00
Restore SetRepository classes (accidentally deleted in refactor). Add a new limit/offet option to CommunityService.findAll()
This commit is contained in:
@@ -137,6 +137,12 @@ public class CommunityServiceImpl extends DSpaceObjectServiceImpl<Community> imp
|
||||
return communityDAO.findAll(context, sortField);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Community> findAll(Context context, Integer limit, Integer offset) throws SQLException {
|
||||
MetadataField nameField = metadataFieldService.findByElement(context, MetadataSchema.DC_SCHEMA, "title", null);
|
||||
return communityDAO.findAll(context, nameField, limit, offset);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Community> findAllTop(Context context) throws SQLException
|
||||
{
|
||||
|
Reference in New Issue
Block a user