mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-13 13:03:11 +00:00
moving queries to DAOs
This commit is contained in:
@@ -377,6 +377,11 @@ public class GroupServiceImpl extends DSpaceObjectServiceImpl<Group> implements
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Group> getEmptyGroups(Context context) throws SQLException {
|
||||
return groupDAO.getEmptyGroups(context);
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the group - writing out group object and EPerson list if necessary
|
||||
*/
|
||||
@@ -607,4 +612,9 @@ public class GroupServiceImpl extends DSpaceObjectServiceImpl<Group> implements
|
||||
public Group findByLegacyId(Context context, int id) throws SQLException {
|
||||
return groupDAO.findByLegacyId(context, id, Group.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int countTotal(Context context) throws SQLException {
|
||||
return groupDAO.countRows(context);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user