Base Implementations refactoring

This commit is contained in:
Fabio Sinibaldi 2022-04-06 17:04:56 +02:00
parent 9921dec9ed
commit 724a6bcfff
4 changed files with 11 additions and 4 deletions

View File

@ -45,12 +45,12 @@ public abstract class AbstractLifeCycleManager extends AbstractPlugin implements
protected void setEvent(GuardedEventManager m){ protected void setEvent(GuardedEventManager m){
OperationDescriptor op= m.getOp(); OperationDescriptor op= m.getOp();
DESCRIPTOR.getSupportedEvents().put(op.getId(),op); DESCRIPTOR.getSupportedEvents().put(op.getId(),op);
registeredEvent.put(op.getDescription(),m); registeredEvent.put(op.getId(),m);
} }
protected void setStep(GuardedStepExecution e){ protected void setStep(GuardedStepExecution e){
OperationDescriptor op= e.getOp(); OperationDescriptor op= e.getOp();
DESCRIPTOR.getSupportedSteps().put(op.getId(),op); DESCRIPTOR.getSupportedSteps().put(op.getId(),op);
registeredSteps.put(op.getDescription(),e); registeredSteps.put(op.getId(),e);
} }
public AbstractLifeCycleManager() { public AbstractLifeCycleManager() {

View File

@ -26,7 +26,7 @@ import java.util.Collections;
public class SimpleLifeCycleManager extends AbstractLifeCycleManager implements LifecycleManager { public class SimpleLifeCycleManager extends AbstractLifeCycleManager implements LifecycleManager {
public SimpleLifeCycleManager() { public SimpleLifeCycleManager() {
DESCRIPTOR.setId("DEFAULT-SINGLE-PHASE"); DESCRIPTOR.setId("DEFAULT-SINGLE-STEP");
} }

View File

@ -0,0 +1,7 @@
package org.gcube.application.geoportal.service;
public class PluginsTests {
}

View File

@ -1,7 +1,7 @@
{ {
"_id" : "basic", "_id" : "basic",
"_version" : "1.0.0", "_version" : "1.0.0",
"_name" : "Concessione", "_name" : "Basic Use Case Descriptor",
"_schema" : {}, "_schema" : {},