using internal getConfiguration
This commit is contained in:
parent
c8159a783e
commit
a6609a5b4a
|
@ -1822,12 +1822,15 @@ public class GWTWorkspaceServiceImpl extends RemoteServiceServlet implements GWT
|
||||||
|
|
||||||
workspace = getWorkspaceFromStorageHub();
|
workspace = getWorkspaceFromStorageHub();
|
||||||
wsItem = workspace.getItem(itemId);
|
wsItem = workspace.getItem(itemId);
|
||||||
|
;
|
||||||
|
GCubeUser user = PortalContext.getConfiguration().getCurrentUser(this.getThreadLocalRequest());
|
||||||
|
|
||||||
ThreddsWorkspaceSyncServiceImpl workspaceServiceServlet = new ThreddsWorkspaceSyncServiceImpl();
|
ThreddsWorkspaceSyncServiceImpl workspaceServiceServlet = new ThreddsWorkspaceSyncServiceImpl();
|
||||||
// IF THE ITEM IS A FOLDER, CHECKING IT
|
// IF THE ITEM IS A FOLDER, CHECKING IT
|
||||||
if (wsItem.isFolder()) {
|
if (wsItem.isFolder()) {
|
||||||
// WorkspaceThreddsSynchronize.getInstance().checkItemSynched(wsItem.getId());
|
// WorkspaceThreddsSynchronize.getInstance().checkItemSynched(wsItem.getId());
|
||||||
workspaceServiceServlet.getConfiguration(itemId, true);
|
|
||||||
|
workspaceServiceServlet.getConfiguration(itemId, true, this.getThreadLocalRequest(),user);
|
||||||
} else {
|
} else {
|
||||||
// IF THE ITEM IS A FILE, CHECKING ITS PARENT
|
// IF THE ITEM IS A FILE, CHECKING ITS PARENT
|
||||||
String parentId = wsItem.getParentId();
|
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");
|
workspaceLogger.warn("I'm not able to check the lock because the parent id is null");
|
||||||
} else {
|
} else {
|
||||||
//WorkspaceThreddsSynchronize.getInstance().checkItemSynched(parentId);
|
//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
|
// in this case the folder is synched but not locked
|
||||||
|
|
Loading…
Reference in New Issue