Reorganized utilities and their usage

This commit is contained in:
Luca Frosini 2023-04-21 15:58:02 +02:00
parent 9e7b0d4da1
commit 164fe5f473
2 changed files with 2 additions and 4 deletions

View File

@ -33,7 +33,6 @@ import org.gcube.informationsystem.resourceregistry.client.ResourceRegistryClien
import org.gcube.informationsystem.resourceregistry.publisher.ResourceRegistryPublisher;
import org.gcube.informationsystem.resourceregistry.publisher.ResourceRegistryPublisherFactory;
import org.gcube.informationsystem.serialization.ElementMapper;
import org.gcube.informationsystem.utils.UUIDManager;
import org.gcube.resourcemanagement.model.impl.entities.facets.AccessPointFacetImpl;
import org.gcube.resourcemanagement.model.impl.entities.facets.EventFacetImpl;
import org.gcube.resourcemanagement.model.impl.entities.facets.SoftwareFacetImpl;
@ -227,7 +226,7 @@ public class EServiceManager {
ApplicationConfiguration applicationConfiguration = applicationContext.configuration();
String id = applicationContext.id();
UUID uuid = UUIDManager.getInstance().generateValidRandomUUID();
UUID uuid = UUID.fromString(id);
EService eService = new EServiceImpl();
eService.setUUID(uuid);

View File

@ -49,7 +49,6 @@ import org.gcube.informationsystem.resourceregistry.client.ResourceRegistryClien
import org.gcube.informationsystem.resourceregistry.publisher.ResourceRegistryPublisher;
import org.gcube.informationsystem.resourceregistry.publisher.ResourceRegistryPublisherFactory;
import org.gcube.informationsystem.serialization.ElementMapper;
import org.gcube.informationsystem.utils.UUIDManager;
import org.gcube.resourcemanagement.model.impl.entities.facets.CPUFacetImpl;
import org.gcube.resourcemanagement.model.impl.entities.facets.EventFacetImpl;
import org.gcube.resourcemanagement.model.impl.entities.facets.LocationFacetImpl;
@ -294,7 +293,7 @@ public class HostingNodeManager {
ContainerConfiguration containerConfiguration = containerContext.configuration();
String id = containerContext.id();
UUID uuid = UUIDManager.getInstance().generateValidRandomUUID();
UUID uuid = UUID.fromString(id);
HostingNode hostingNode = new HostingNodeImpl();
hostingNode.setUUID(uuid);