Restore SetRepository classes (accidentally deleted in refactor). Add a new limit/offet option to CommunityService.findAll()

This commit is contained in:
Tim Donohue
2015-10-07 16:29:08 -05:00
parent 05fbfeac7a
commit feebea46bc
7 changed files with 284 additions and 3 deletions

View File

@@ -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
{