Reorganized utilities and their usage
This commit is contained in:
parent
9e7b0d4da1
commit
164fe5f473
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue