Calling the SHUB search (instead of find) on searching by Workspace

This commit is contained in:
francesco 2020-03-12 10:29:04 +01:00
parent 4a2bc4d5e1
commit 7107a2e0f5
2 changed files with 6 additions and 5 deletions

View File

@ -118,6 +118,7 @@ import org.gcube.portlets.user.workspace.client.view.tree.AsyncTreePanel;
import org.gcube.portlets.user.workspace.client.view.windows.DialogAddFolderAndSmart;
import org.gcube.portlets.user.workspace.client.view.windows.DialogAddFolderAndSmart.AddType;
import org.gcube.portlets.user.workspace.client.view.windows.DialogAddUrl;
import org.gcube.portlets.user.workspace.client.view.windows.DialogGetInfo;
import org.gcube.portlets.user.workspace.client.view.windows.DialogGetLink;
import org.gcube.portlets.user.workspace.client.view.windows.DialogGetLink.Link_Type;
import org.gcube.portlets.user.workspace.client.view.windows.DialogInfoboot;
@ -690,8 +691,8 @@ public class AppControllerExplorer implements EventHandler, TreeAppControllerInt
@Override
public void onGetInfo(GetInfoEvent getInfoEvent) {
//new DialogGetInfo(getInfoEvent.getSourceFile());
new DialogInfoboot(getInfoEvent.getSourceFile());
new DialogGetInfo(getInfoEvent.getSourceFile());
//new DialogInfoboot(getInfoEvent.getSourceFile());
}
});

View File

@ -2423,8 +2423,8 @@ public class GWTWorkspaceServiceImpl extends RemoteServiceServlet implements GWT
folderId = workspace.getRoot().getId();
}
workspaceLogger.info("searching by name: " + text + " in the folder id: " + folderId);
List<org.gcube.common.storagehubwrapper.shared.tohl.WorkspaceItem> foundItems = workspace.find(text, folderId);
workspaceLogger.info("searching by text: " + text + " in the folder id: " + folderId);
List<org.gcube.common.storagehubwrapper.shared.tohl.WorkspaceItem> foundItems = workspace.search(text, folderId);
if(foundItems==null) {
workspaceLogger.info("Searching by SHUB returned null, instancing empty list");
@ -2494,7 +2494,7 @@ public class GWTWorkspaceServiceImpl extends RemoteServiceServlet implements GWT
try {
org.gcube.common.storagehubwrapper.server.tohl.Workspace workspace = getWorkspaceFromStorageHub();
workspaceLogger.info("searching by name: " + itemName + " in the folder id: " + parentId);
workspaceLogger.info("finding by name: " + itemName + " in the folder id: " + parentId);
List<org.gcube.common.storagehubwrapper.shared.tohl.WorkspaceItem> foundItems = workspace.find(itemName, parentId);
if (foundItems == null || foundItems.isEmpty())