mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-11 03:53:07 +00:00
moving queries to DAOs
This commit is contained in:
@@ -762,6 +762,11 @@ public class CollectionServiceImpl extends DSpaceObjectServiceImpl<Collection> i
|
||||
return collectionDAO.findByGroup(context, group);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Collection> findCollectionsWithSubscribers(Context context) throws SQLException {
|
||||
return collectionDAO.findCollectionsWithSubscribers(context);
|
||||
}
|
||||
|
||||
@Override
|
||||
public DSpaceObject getAdminObject(Context context, Collection collection, int action) throws SQLException {
|
||||
DSpaceObject adminObject = null;
|
||||
@@ -831,4 +836,14 @@ public class CollectionServiceImpl extends DSpaceObjectServiceImpl<Collection> i
|
||||
public Collection findByLegacyId(Context context, int id) throws SQLException {
|
||||
return collectionDAO.findByLegacyId(context, id, Collection.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int countTotal(Context context) throws SQLException {
|
||||
return collectionDAO.countRows(context);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Map> getCollectionsWithBitstreamSizesTotal(Context context) throws SQLException {
|
||||
return collectionDAO.getCollectionsWithBitstreamSizesTotal(context);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user