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
This commit is contained in:
Massimiliano Assante 2018-11-06 11:05:06 +00:00
parent ba657d9701
commit 7c0a1b31e2
2 changed files with 5 additions and 2 deletions

View File

@ -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"

View File

@ -144,7 +144,9 @@ public class GenericResourceManager extends AbstractResourceManager {
ScopeProvider.instance.set(scope.toString());
RegistryPublisher publisher = getRegistryPublisher();
String id = publisher.update(resource).id();
//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");