97183 Processing PR review feedback

This commit is contained in:
Koen Pauwels
2023-01-02 09:58:31 +01:00
parent 1252a98240
commit 7ee46e0cba
2 changed files with 2 additions and 2 deletions

View File

@@ -1100,6 +1100,7 @@ public class ItemServiceImpl extends DSpaceObjectServiceImpl<Item> implements It
return searchService.search(context, discoverQuery);
}
@Override
public List<Item> findItemsWithEdit(Context context, int offset, int limit)
throws SQLException, SearchServiceException {
DiscoverQuery discoverQuery = new DiscoverQuery();
@@ -1112,6 +1113,7 @@ public class ItemServiceImpl extends DSpaceObjectServiceImpl<Item> implements It
.collect(Collectors.toList());
}
@Override
public int countItemsWithEdit(Context context) throws SQLException, SearchServiceException {
DiscoverQuery discoverQuery = new DiscoverQuery();
discoverQuery.setMaxResults(0);

View File

@@ -34,8 +34,6 @@ public class IndexingUtils {
* Retrieve all ancestor communities of a given community, with the first one being the given community and the
* last one being the root.
* <p>
* TODO: can be done in a single SQL query with recursive common table expressions
* TODO: should probably be moved to CommunityService
*
* @param context DSpace context object
* @param community Community for which we search the ancestors