Skip to content

Commit

Permalink
Updated to 3.X API
Browse files Browse the repository at this point in the history
  • Loading branch information
bastiao committed May 25, 2018
1 parent 3ad51ab commit 2d90125
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

<!-- Dicoogle SDK version here -->
<dicoogle.version>2.4.0</dicoogle.version>
<dicoogle.version>3.0.0-SNAPSHOT</dicoogle.version>

<!-- Jetty server version here -->
<jetty.version>9.0.3.v20130506</jetty.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import org.restlet.resource.ServerResource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import pt.ua.dicoogle.sdk.GraphicalInterface;
import pt.ua.dicoogle.sdk.IndexerInterface;
import pt.ua.dicoogle.sdk.JettyPluginInterface;
import pt.ua.dicoogle.sdk.PluginSet;
Expand Down Expand Up @@ -126,9 +125,4 @@ public ConfigurationHolder getSettings() {
return this.settings;
}

@Override
public Collection<GraphicalInterface> getGraphicalPlugins() {
// Graphical plugins are deprecated. Do not use or provide any.
return Collections.EMPTY_LIST;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,13 @@
import pt.ua.dicoogle.sdk.QueryInterface;
import pt.ua.dicoogle.sdk.datastructs.SearchResult;
import pt.ua.dicoogle.sdk.settings.ConfigurationHolder;
import pt.ua.dicoogle.sdk.utils.QueryException;

/** Example of a query provider.
*
* @author Luís A. Bastião Silva - <bastiao@ua.pt>
* @author Luís A. Bastião Silva - <bastiao@bmd-software.com>
*/
public class RSIQuery implements QueryInterface {
public class RSIQuery implements QueryInterface {
private static final Logger logger = LoggerFactory.getLogger(RSIQuery.class);

private boolean enabled;
Expand Down Expand Up @@ -79,6 +80,7 @@ public Iterable<SearchResult> query(String query, Object... parameters) {
return results;
}


@Override
public String getName() {
return "RSI";
Expand Down

0 comments on commit 2d90125

Please sign in to comment.