mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
Fix checkstyle issue after update to 8.30, move comments closer to the relevant code
This commit is contained in:
@@ -8,7 +8,6 @@
|
||||
package org.dspace.discovery;
|
||||
|
||||
import java.sql.SQLException;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
|
@@ -8,7 +8,6 @@
|
||||
package org.dspace.app.rest.repository;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
|
@@ -8,7 +8,6 @@
|
||||
package org.dspace.app.rest.repository;
|
||||
|
||||
import java.sql.SQLException;
|
||||
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
@@ -60,12 +59,12 @@ public class CommunityCollectionLinkRepository extends AbstractDSpaceRestReposit
|
||||
if (community == null) {
|
||||
throw new ResourceNotFoundException("No such community: " + communityId);
|
||||
}
|
||||
// search for all the collections direct children of our community
|
||||
// and let the SOLR security plugins to limit what is returned to what the user can see
|
||||
Pageable pageable = utils.getPageable(optionalPageable);
|
||||
List<Collection> collections = new LinkedList<Collection>();
|
||||
IndexObjectFactoryFactory indexObjectFactory = IndexObjectFactoryFactory.getInstance();
|
||||
IndexableObject scopeObject = indexObjectFactory.getIndexableObjects(context, community).get(0);
|
||||
// search for all the collections direct children of our community
|
||||
// and let the SOLR security plugins to limit what is returned to what the user can see
|
||||
DiscoverQuery discoverQuery = new DiscoverQuery();
|
||||
discoverQuery.setQuery("*:*");
|
||||
discoverQuery.setDSpaceObjectFilter(IndexableCollection.TYPE);
|
||||
|
@@ -8,7 +8,6 @@
|
||||
package org.dspace.app.rest.repository;
|
||||
|
||||
import java.sql.SQLException;
|
||||
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
@@ -8,7 +8,6 @@
|
||||
package org.dspace.app.rest;
|
||||
|
||||
import static com.jayway.jsonpath.matchers.JsonPathMatchers.hasJsonPath;
|
||||
|
||||
import static org.hamcrest.Matchers.empty;
|
||||
import static org.hamcrest.Matchers.is;
|
||||
import static org.hamcrest.Matchers.not;
|
||||
|
@@ -8,7 +8,6 @@
|
||||
package org.dspace.app.rest.matcher;
|
||||
|
||||
import static com.jayway.jsonpath.matchers.JsonPathMatchers.hasJsonPath;
|
||||
|
||||
import static org.dspace.app.rest.matcher.HalMatcher.matchEmbeds;
|
||||
import static org.dspace.app.rest.test.AbstractControllerIntegrationTest.REST_SERVER_URL;
|
||||
import static org.hamcrest.Matchers.allOf;
|
||||
|
Reference in New Issue
Block a user