Compare commits

...

2 Commits

Author SHA1 Message Date
Luca Frosini 7b2bb740e7 Enhanced version 2023-05-04 15:47:42 +02:00
Luca Frosini 6ef83e2dea Fixed code to comply with new E/R profile 2023-05-04 15:43:50 +02:00
4 changed files with 10 additions and 6 deletions

View File

@ -2,6 +2,11 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
# Changelog for Smart Executor Service # Changelog for Smart Executor Service
## [v3.1.1-SNAPSHOT]
- Migrated code to reorganized E/R format [#24992]
## [v3.1.0] ## [v3.1.0]
- Ported service to authorization-utils [#22871] - Ported service to authorization-utils [#22871]

View File

@ -11,7 +11,7 @@
<groupId>org.gcube.vremanagement</groupId> <groupId>org.gcube.vremanagement</groupId>
<artifactId>smart-executor</artifactId> <artifactId>smart-executor</artifactId>
<version>3.1.0</version> <version>3.1.1-SNAPSHOT</version>
<name>SmartExecutor</name> <name>SmartExecutor</name>
<description>Smart Executor Service allows to launch recurrent tasks such as task for infrastructure management, healthy monitoring etc.</description> <description>Smart Executor Service allows to launch recurrent tasks such as task for infrastructure management, healthy monitoring etc.</description>
<packaging>war</packaging> <packaging>war</packaging>
@ -33,7 +33,7 @@
<dependency> <dependency>
<groupId>org.gcube.distribution</groupId> <groupId>org.gcube.distribution</groupId>
<artifactId>gcube-smartgears-bom</artifactId> <artifactId>gcube-smartgears-bom</artifactId>
<version>2.2.0</version> <version>2.5.0-SNAPSHOT</version>
<type>pom</type> <type>pom</type>
<scope>import</scope> <scope>import</scope>
</dependency> </dependency>

View File

@ -9,7 +9,6 @@ import java.util.Map;
import java.util.UUID; import java.util.UUID;
import org.gcube.informationsystem.base.reference.Direction; import org.gcube.informationsystem.base.reference.Direction;
import org.gcube.informationsystem.model.impl.properties.HeaderImpl;
import org.gcube.informationsystem.model.impl.properties.PropagationConstraintImpl; import org.gcube.informationsystem.model.impl.properties.PropagationConstraintImpl;
import org.gcube.informationsystem.model.reference.entities.Facet; import org.gcube.informationsystem.model.reference.entities.Facet;
import org.gcube.informationsystem.model.reference.entities.Resource; import org.gcube.informationsystem.model.reference.entities.Resource;
@ -151,7 +150,7 @@ public class RestISPublisher extends ISPublisher {
protected RunningPlugin publishRunningPluginWithRelations(Plugin plugin, UUID pluginUUID) throws Exception { protected RunningPlugin publishRunningPluginWithRelations(Plugin plugin, UUID pluginUUID) throws Exception {
RunningPlugin runningPlugin = new RunningPluginImpl(); RunningPlugin runningPlugin = new RunningPluginImpl();
runningPlugin.setHeader(new HeaderImpl(pluginUUID)); runningPlugin.setID(pluginUUID);
SoftwareFacet softwareFacet = new SoftwareFacetImpl(); SoftwareFacet softwareFacet = new SoftwareFacetImpl();
softwareFacet.setGroup(plugin.getGroup()); softwareFacet.setGroup(plugin.getGroup());
@ -240,7 +239,7 @@ public class RestISPublisher extends ISPublisher {
runningPlugin = publishRunningPluginWithRelations(plugin, pluginUUID); runningPlugin = publishRunningPluginWithRelations(plugin, pluginUUID);
} catch (AvailableInAnotherContextException e) { } catch (AvailableInAnotherContextException e) {
runningPlugin = new RunningPluginImpl(); runningPlugin = new RunningPluginImpl();
runningPlugin.setHeader(new HeaderImpl(pluginUUID)); runningPlugin.setID(pluginUUID);
resourceRegistryPublisher.addToCurrentContext(runningPlugin, false); resourceRegistryPublisher.addToCurrentContext(runningPlugin, false);
} catch (ResourceRegistryException e) { } catch (ResourceRegistryException e) {
throw e; throw e;

View File

@ -6,7 +6,7 @@ import java.util.UUID;
import javax.servlet.ServletContext; import javax.servlet.ServletContext;
import org.gcube.common.events.Hub; import org.gcube.common.events.Hub;
import org.gcube.informationsystem.utils.ElementMapper; import org.gcube.informationsystem.serialization.ElementMapper;
import org.gcube.resourcemanagement.model.impl.entities.facets.AccessPointFacetImpl; import org.gcube.resourcemanagement.model.impl.entities.facets.AccessPointFacetImpl;
import org.gcube.resourcemanagement.model.reference.entities.facets.AccessPointFacet; import org.gcube.resourcemanagement.model.reference.entities.facets.AccessPointFacet;
import org.gcube.smartgears.configuration.application.ApplicationConfiguration; import org.gcube.smartgears.configuration.application.ApplicationConfiguration;