using internal getConfiguration

task_21388
Francesco Mangiacrapa 3 years ago
parent c8159a783e
commit a6609a5b4a

@ -1822,12 +1822,15 @@ public class GWTWorkspaceServiceImpl extends RemoteServiceServlet implements GWT
workspace = getWorkspaceFromStorageHub();
wsItem = workspace.getItem(itemId);
;
GCubeUser user = PortalContext.getConfiguration().getCurrentUser(this.getThreadLocalRequest());
ThreddsWorkspaceSyncServiceImpl workspaceServiceServlet = new ThreddsWorkspaceSyncServiceImpl();
// IF THE ITEM IS A FOLDER, CHECKING IT
if (wsItem.isFolder()) {
// WorkspaceThreddsSynchronize.getInstance().checkItemSynched(wsItem.getId());
workspaceServiceServlet.getConfiguration(itemId, true);
workspaceServiceServlet.getConfiguration(itemId, true, this.getThreadLocalRequest(),user);
} else {
// IF THE ITEM IS A FILE, CHECKING ITS PARENT
String parentId = wsItem.getParentId();
@ -1835,7 +1838,7 @@ public class GWTWorkspaceServiceImpl extends RemoteServiceServlet implements GWT
workspaceLogger.warn("I'm not able to check the lock because the parent id is null");
} else {
//WorkspaceThreddsSynchronize.getInstance().checkItemSynched(parentId);
workspaceServiceServlet.getConfiguration(parentId, true);
workspaceServiceServlet.getConfiguration(itemId, true, this.getThreadLocalRequest(),user);
}
}
// in this case the folder is synched but not locked

Loading…
Cancel
Save