diff --git a/service/src/main/java/gov/nasa/pds/api/registry/model/RefLogicBundle.java b/service/src/main/java/gov/nasa/pds/api/registry/model/RefLogicBundle.java index 181e93e2..65057686 100644 --- a/service/src/main/java/gov/nasa/pds/api/registry/model/RefLogicBundle.java +++ b/service/src/main/java/gov/nasa/pds/api/registry/model/RefLogicBundle.java @@ -3,25 +3,18 @@ import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; -import java.util.Collection; import java.util.HashMap; -import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Set; -import java.util.TreeSet; import java.util.stream.Collectors; -import gov.nasa.pds.api.registry.RequestBuildContext; import gov.nasa.pds.api.registry.model.identifiers.LidVidUtils; import gov.nasa.pds.api.registry.model.identifiers.PdsLidVid; import gov.nasa.pds.api.registry.model.identifiers.PdsProductIdentifier; import gov.nasa.pds.api.registry.search.HitIterator; import gov.nasa.pds.api.registry.search.QuickSearch; import org.opensearch.action.search.SearchRequest; -import org.opensearch.client.RequestOptions; -import org.opensearch.search.SearchHit; -import org.opensearch.search.SearchHits; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -29,7 +22,6 @@ import gov.nasa.pds.api.registry.ControlContext; import gov.nasa.pds.api.registry.GroupConstraint; -import gov.nasa.pds.api.registry.LidvidsContext; import gov.nasa.pds.api.registry.ReferencingLogic; import gov.nasa.pds.api.registry.UserContext; import gov.nasa.pds.api.registry.exceptions.ApplicationTypeException; @@ -126,8 +118,7 @@ public RequestAndResponseContext member(ControlContext ctrlContext, UserContext @Override public RequestAndResponseContext memberOf(ControlContext context, UserContext input, - boolean twoSteps) throws ApplicationTypeException, IOException, LidVidNotFoundException, - MembershipException, UnknownGroupNameException { + boolean twoSteps) throws MembershipException { throw new MembershipException(input.getIdentifier(), "member-of", "bundle"); } diff --git a/service/src/main/java/gov/nasa/pds/api/registry/model/RefLogicCollection.java b/service/src/main/java/gov/nasa/pds/api/registry/model/RefLogicCollection.java index f04061d3..61bcecdf 100644 --- a/service/src/main/java/gov/nasa/pds/api/registry/model/RefLogicCollection.java +++ b/service/src/main/java/gov/nasa/pds/api/registry/model/RefLogicCollection.java @@ -6,22 +6,15 @@ import java.util.HashMap; import java.util.List; import java.util.Map; -import java.util.Objects; import java.util.Set; -import java.util.function.Predicate; import java.util.stream.Collectors; import gov.nasa.pds.api.registry.ControlContext; import gov.nasa.pds.api.registry.GroupConstraint; -import gov.nasa.pds.api.registry.LidvidsContext; import gov.nasa.pds.api.registry.ReferencingLogic; -import gov.nasa.pds.api.registry.RequestConstructionContext; -import gov.nasa.pds.api.registry.RequestBuildContext; import gov.nasa.pds.api.registry.UserContext; -import gov.nasa.pds.api.registry.controller.URIParametersBuilder; import gov.nasa.pds.api.registry.model.identifiers.PdsProductIdentifier; import gov.nasa.pds.api.registry.search.QuickSearch; -import org.opensearch.action.search.SearchRequest; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -30,11 +23,7 @@ import gov.nasa.pds.api.registry.exceptions.ApplicationTypeException; import gov.nasa.pds.api.registry.exceptions.LidVidNotFoundException; import gov.nasa.pds.api.registry.exceptions.MembershipException; -import gov.nasa.pds.api.registry.exceptions.UnknownGroupNameException; -import gov.nasa.pds.api.registry.search.HitIterator; import gov.nasa.pds.api.registry.search.RequestBuildContextFactory; -import gov.nasa.pds.api.registry.search.RequestConstructionContextFactory; -import gov.nasa.pds.api.registry.search.SearchRequestFactory; import gov.nasa.pds.api.registry.util.GroupConstraintImpl; import static gov.nasa.pds.api.registry.model.identifiers.LidVidUtils.getAllLidVidsByLids;