Skip to content
Snippets Groups Projects
Commit 72b09bcc authored by Thorsten Vitt's avatar Thorsten Vitt
Browse files

Removed non-working sandbox config

parent bad9d34a
No related branches found
No related tags found
No related merge requests found
......@@ -180,7 +180,7 @@ private static URI[] extractURIs(final String uriList) {
}
protected void initFromSearch(final String query, final String target, int start, int stop, List<String> filter) {
rootObjects = SearchResultList.create(repository.getPublicSearchClient(), query, target, filter, sandbox).start(start).stop(stop);
rootObjects = SearchResultList.create(repository.getPublicSearchClient(), query, target, filter, getSandbox()).start(start).stop(stop);
}
/**
......
......@@ -47,6 +47,4 @@ public interface TGOSupplier<T> extends InputSupplier<T> {
Map<String, String> getConfig();
public void setSandbox(boolean sandbox);
}
\ No newline at end of file
......@@ -47,7 +47,6 @@ public class TextGridRepProvider implements ITextGridRep {
private final String CONF_ENDPOINT;
private Map<String, String> configOverrides;
private Properties localConfig;
private boolean sandbox;
private static final String DEFAULT_CONF_ENDPOINT = "https://www.textgridlab.org/1.0/confserv";
private static final Logger logger = Logger
.getLogger(TextGridRepProvider.class.getCanonicalName());
......@@ -239,7 +238,6 @@ public SearchClient getPublicSearchClient() {
if (publicSearchClient == null) {
final String endpoint = getConfValue(ConfservClientConstants.TG_SEARCH_PUBLIC);
publicSearchClient = new SearchClient(endpoint);
publicSearchClient.setSandbox(sandbox);
logger.info("Instantiated public search client at: " + endpoint);
}
return publicSearchClient;
......@@ -281,10 +279,4 @@ public String getCRUDRestEndpoint() {
.concat("rest");
}
public void setSandbox(boolean sandbox) {
this.sandbox = sandbox;
if (this.publicSearchClient != null)
this.publicSearchClient.setSandbox(sandbox);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment