mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-17 06:53:09 +00:00
97183 Processing PR review feedback
This commit is contained in:
@@ -1100,6 +1100,7 @@ public class ItemServiceImpl extends DSpaceObjectServiceImpl<Item> implements It
|
|||||||
return searchService.search(context, discoverQuery);
|
return searchService.search(context, discoverQuery);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public List<Item> findItemsWithEdit(Context context, int offset, int limit)
|
public List<Item> findItemsWithEdit(Context context, int offset, int limit)
|
||||||
throws SQLException, SearchServiceException {
|
throws SQLException, SearchServiceException {
|
||||||
DiscoverQuery discoverQuery = new DiscoverQuery();
|
DiscoverQuery discoverQuery = new DiscoverQuery();
|
||||||
@@ -1112,6 +1113,7 @@ public class ItemServiceImpl extends DSpaceObjectServiceImpl<Item> implements It
|
|||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public int countItemsWithEdit(Context context) throws SQLException, SearchServiceException {
|
public int countItemsWithEdit(Context context) throws SQLException, SearchServiceException {
|
||||||
DiscoverQuery discoverQuery = new DiscoverQuery();
|
DiscoverQuery discoverQuery = new DiscoverQuery();
|
||||||
discoverQuery.setMaxResults(0);
|
discoverQuery.setMaxResults(0);
|
||||||
|
@@ -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
|
* Retrieve all ancestor communities of a given community, with the first one being the given community and the
|
||||||
* last one being the root.
|
* last one being the root.
|
||||||
* <p>
|
* <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 context DSpace context object
|
||||||
* @param community Community for which we search the ancestors
|
* @param community Community for which we search the ancestors
|
||||||
|
Reference in New Issue
Block a user