|
|
|
@ -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())
|
|
|
|
|