Feature #12726 update resource at vo level rather than vre level

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/admin/rmp-common-library@173970 82a268e6-3cf1-43bd-a215-b396298e98cf
Feature/25384
Massimiliano Assante 6 years ago
parent ba657d9701
commit 7c0a1b31e2

@ -2,6 +2,7 @@
xsi:noNamespaceSchemaLocation="xsd/changelog.xsd">
<Changeset component="org.gcube.portlets-admin.rmp-common-library.2-8-1"
date="2018-10-14">
<Change>Feature #12726 update resource at vo level rather than vre level</Change>
<Change>Feature #11788 ContextManager class added</Change>
</Changeset>
<Changeset component="org.gcube.portlets-admin.rmp-common-library.2-7-1"

@ -143,8 +143,10 @@ public class GenericResourceManager extends AbstractResourceManager {
resource.profile().type(subType.trim());
ScopeProvider.instance.set(scope.toString());
RegistryPublisher publisher = getRegistryPublisher();
String id = publisher.update(resource).id();
RegistryPublisher publisher = getRegistryPublisher();
//String id = publisher.update(resource).id();
String id = publisher.vosUpdate(resource).id();
if (id == null || id.length() == 0) {
throw new Exception("The GenericResource has not been updated");

Loading…
Cancel
Save