Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional Methods for Index/Unindex Operations in Platform Interface #701

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
import java.net.URI;
import java.util.Collection;
import java.util.List;
import java.util.function.Consumer;

import pt.ua.dicoogle.core.settings.ServerSettingsManager;


Expand All @@ -31,6 +33,7 @@
import pt.ua.dicoogle.sdk.core.DicooglePlatformInterface;
import pt.ua.dicoogle.sdk.datastructs.Report;
import pt.ua.dicoogle.sdk.datastructs.SearchResult;
import pt.ua.dicoogle.sdk.datastructs.UnindexReport;
import pt.ua.dicoogle.sdk.datastructs.dim.DimLevel;
import pt.ua.dicoogle.sdk.settings.server.ServerSettingsReader;
import pt.ua.dicoogle.sdk.task.JointQueryTask;
Expand Down Expand Up @@ -158,6 +161,28 @@ public List<Task<Report>> index(URI path) {
}

@Override
public List<Task<Report>> index(Collection<URI> paths) {
return pluginController.index(paths);
}


Enet4 marked this conversation as resolved.
Show resolved Hide resolved
@Override
public void unindex(URI path) {
pluginController.unindex(path);
}

@Override
public List<Task<UnindexReport>> unindex(Collection<URI> paths) {
return pluginController.unindex(paths, null);
}

@Override
public List<Task<UnindexReport>> unindex(Collection<URI> paths, Consumer<Collection<URI>> callbacks) {
return pluginController.unindex(paths, callbacks);
}

@Override
@Deprecated
public List<Report> indexBlocking(URI path) {
return pluginController.indexBlocking(path);
}
Expand Down
Loading
Loading