|
|
|
@ -112,8 +112,8 @@ public class RegistryPublisherImpl implements RegistryPublisher {
|
|
|
|
|
//in this case it is a root-vo scope so we need to create the resource only at root-vo level
|
|
|
|
|
}else{
|
|
|
|
|
RegistryStub stub = getRegistryStub();
|
|
|
|
|
createResource(resource, currentVO, stub);
|
|
|
|
|
return resource;
|
|
|
|
|
createResource(resource, currentScope, stub);
|
|
|
|
|
vosScopes.remove(currentScope);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// update the resource for each VO
|
|
|
|
@ -237,12 +237,14 @@ public class RegistryPublisherImpl implements RegistryPublisher {
|
|
|
|
|
if (currentVO != null){
|
|
|
|
|
ScopeProvider.instance.set(currentVO);
|
|
|
|
|
registryUpdate(resource, 0);
|
|
|
|
|
log.debug("currentVO "+currentVO+" updated");
|
|
|
|
|
vosScopes.remove(currentVO);
|
|
|
|
|
// in this case it is a root-vo scope so we need to update the resource only at root-vo level
|
|
|
|
|
}else{
|
|
|
|
|
ScopeProvider.instance.set(currentScope);
|
|
|
|
|
registryUpdate(resource, 0);
|
|
|
|
|
return resource;
|
|
|
|
|
log.debug("currentVO "+currentScope+" is the root-vo");
|
|
|
|
|
vosScopes.remove(currentScope);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|