diff --git a/pom.xml b/pom.xml index 8f5455d4b2a29e8f438efa1a5d73a3f9c454ebdb..8eccba85fb420cc6877dd601d09c463b8d56f3bf 100644 --- a/pom.xml +++ b/pom.xml @@ -164,7 +164,7 @@ org.etsi.osl - org.etsi.osl.model + org.etsi.osl.model.nfv ${project.version} diff --git a/src/main/java/org/etsi/osl/bugzilla/BugzillaClient.java b/src/main/java/org/etsi/osl/bugzilla/BugzillaClient.java index 1d5ce6631a943c024d18b4c649f2da0613e76060..8b90bf77a0ec3e9a3f0a44670962d7e02ae94f5c 100644 --- a/src/main/java/org/etsi/osl/bugzilla/BugzillaClient.java +++ b/src/main/java/org/etsi/osl/bugzilla/BugzillaClient.java @@ -45,21 +45,21 @@ import org.springframework.stereotype.Component; import com.fasterxml.jackson.core.JsonParseException; import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; -import org.etsi.osl.model.CompositeExperimentOnBoardDescriptor; -import org.etsi.osl.model.CompositeVxFOnBoardDescriptor; -import org.etsi.osl.model.DeploymentDescriptor; -import org.etsi.osl.model.DeploymentDescriptorStatus; -import org.etsi.osl.model.DeploymentDescriptorVxFPlacement; -import org.etsi.osl.model.ExperimentMetadata; -import org.etsi.osl.model.ExperimentOnBoardDescriptor; -import org.etsi.osl.model.IMANOCommunicationStatus; -import org.etsi.osl.model.OnBoardingStatus; -import org.etsi.osl.model.PortalUser; -import org.etsi.osl.model.VFImage; -import org.etsi.osl.model.ValidationJob; -import org.etsi.osl.model.ValidationStatus; -import org.etsi.osl.model.VxFMetadata; -import org.etsi.osl.model.VxFOnBoardedDescriptor; +import org.etsi.osl.model.nfv.CompositeExperimentOnBoardDescriptor; +import org.etsi.osl.model.nfv.CompositeVxFOnBoardDescriptor; +import org.etsi.osl.model.nfv.DeploymentDescriptor; +import org.etsi.osl.model.nfv.DeploymentDescriptorStatus; +import org.etsi.osl.model.nfv.DeploymentDescriptorVxFPlacement; +import org.etsi.osl.model.nfv.ExperimentMetadata; +import org.etsi.osl.model.nfv.ExperimentOnBoardDescriptor; +import org.etsi.osl.model.nfv.IMANOCommunicationStatus; +import org.etsi.osl.model.nfv.OnBoardingStatus; +import org.etsi.osl.model.nfv.PortalUser; +import org.etsi.osl.model.nfv.VFImage; +import org.etsi.osl.model.nfv.ValidationJob; +import org.etsi.osl.model.nfv.ValidationStatus; +import org.etsi.osl.model.nfv.VxFMetadata; +import org.etsi.osl.model.nfv.VxFOnBoardedDescriptor; import org.etsi.osl.tmf.common.model.Notification; import org.etsi.osl.tmf.common.model.service.Characteristic; import org.etsi.osl.tmf.common.model.service.Note; diff --git a/src/main/java/org/etsi/osl/bugzilla/BugzillaRouteBuilder.java b/src/main/java/org/etsi/osl/bugzilla/BugzillaRouteBuilder.java index 520c8bed5dd628aec2b9cc74aff6838214816b31..12fa8e0f8e0b4a02a3a5f464264e75ce06f71171 100644 --- a/src/main/java/org/etsi/osl/bugzilla/BugzillaRouteBuilder.java +++ b/src/main/java/org/etsi/osl/bugzilla/BugzillaRouteBuilder.java @@ -211,7 +211,7 @@ public class BugzillaRouteBuilder extends RouteBuilder { */ from("activemq:topic:users.create").routeId( "users-create-route" ) - .unmarshal().json( JsonLibrary.Jackson, org.etsi.osl.model.PortalUser.class, true) + .unmarshal().json( JsonLibrary.Jackson, org.etsi.osl.model.nfv.PortalUser.class, true) .bean( BugzillaClient.class, "transformUser2BugzillaUser") .marshal().json( JsonLibrary.Jackson, true) .convertBodyTo( String.class ).to("stream:out") @@ -322,7 +322,7 @@ public class BugzillaRouteBuilder extends RouteBuilder { * Update Validation Route */ from("activemq:topic:vxf.validationresult.update") - .unmarshal().json( JsonLibrary.Jackson, org.etsi.osl.model.ValidationStatus.class, true) + .unmarshal().json( JsonLibrary.Jackson, org.etsi.osl.model.nfv.ValidationStatus.class, true) .bean( BugzillaClient.class, "transformVxFValidation2BugBody") .to("direct:bugzilla.bugmanage"); @@ -331,12 +331,12 @@ public class BugzillaRouteBuilder extends RouteBuilder { * Create VxF Validate New Route */ from("activemq:topic:vxf.onboard") - .unmarshal().json( JsonLibrary.Jackson, org.etsi.osl.model.VxFOnBoardedDescriptor.class, true) + .unmarshal().json( JsonLibrary.Jackson, org.etsi.osl.model.nfv.VxFOnBoardedDescriptor.class, true) .bean( BugzillaClient.class, "transformVxFAutomaticOnBoarding2BugBody") .to("direct:bugzilla.newIssue"); from("activemq:topic:vxf.onBoardByCompositeObj") - .unmarshal().json( JsonLibrary.Jackson, org.etsi.osl.model.CompositeVxFOnBoardDescriptor.class, true) + .unmarshal().json( JsonLibrary.Jackson, org.etsi.osl.model.nfv.CompositeVxFOnBoardDescriptor.class, true) .bean( BugzillaClient.class, "transformVxFAutomaticOnBoarding2BugBodyCompObj") .to("direct:bugzilla.newIssue"); @@ -344,7 +344,7 @@ public class BugzillaRouteBuilder extends RouteBuilder { * Create VxF OffBoard New Route */ from("activemq:topic:vxf.offboard") - .unmarshal().json( JsonLibrary.Jackson, org.etsi.osl.model.VxFOnBoardedDescriptor.class, true) + .unmarshal().json( JsonLibrary.Jackson, org.etsi.osl.model.nfv.VxFOnBoardedDescriptor.class, true) .bean( BugzillaClient.class, "transformVxFAutomaticOffBoarding2BugBody") .to("direct:bugzilla.bugmanage"); @@ -352,7 +352,7 @@ public class BugzillaRouteBuilder extends RouteBuilder { * Automatic OnBoarding Route Success */ from("activemq:topic:vxf.onboard.success") - .unmarshal().json( JsonLibrary.Jackson, org.etsi.osl.model.VxFOnBoardedDescriptor.class, true) + .unmarshal().json( JsonLibrary.Jackson, org.etsi.osl.model.nfv.VxFOnBoardedDescriptor.class, true) .delay(30000) .bean( BugzillaClient.class, "transformVxFAutomaticOnBoarding2BugBody") .process( BugHeaderExtractProcessor ) @@ -364,7 +364,7 @@ public class BugzillaRouteBuilder extends RouteBuilder { * Automatic OnBoarding Route Fail */ from("activemq:topic:vxf.onboard.fail") - .unmarshal().json( JsonLibrary.Jackson, org.etsi.osl.model.VxFOnBoardedDescriptor.class, true) + .unmarshal().json( JsonLibrary.Jackson, org.etsi.osl.model.nfv.VxFOnBoardedDescriptor.class, true) .delay(30000) .bean( BugzillaClient.class, "transformVxFAutomaticOnBoarding2BugBody") .process( BugHeaderExtractProcessor ) @@ -402,7 +402,7 @@ public class BugzillaRouteBuilder extends RouteBuilder { * Create NSD onboard New Route */ from("activemq:topic:nsd.onboard") - .unmarshal().json( JsonLibrary.Jackson, org.etsi.osl.model.ExperimentOnBoardDescriptor.class, true) + .unmarshal().json( JsonLibrary.Jackson, org.etsi.osl.model.nfv.ExperimentOnBoardDescriptor.class, true) .bean( BugzillaClient.class, "transformNSDAutomaticOnBoarding2BugBody") .to("direct:bugzilla.newIssue"); @@ -411,7 +411,7 @@ public class BugzillaRouteBuilder extends RouteBuilder { */ from("activemq:topic:nsd.onBoardByCompositeObj") .log( "activemq:topic:nsd.onBoardByCompositeObj for ${body} !" ) - .unmarshal().json( JsonLibrary.Jackson, org.etsi.osl.model.CompositeExperimentOnBoardDescriptor.class, true) + .unmarshal().json( JsonLibrary.Jackson, org.etsi.osl.model.nfv.CompositeExperimentOnBoardDescriptor.class, true) .bean( BugzillaClient.class, "transformNSDAutomaticOnBoarding2BugBodyCompObj") .to("direct:bugzilla.newIssue"); @@ -419,7 +419,7 @@ public class BugzillaRouteBuilder extends RouteBuilder { * Create NSD offboard New Route */ from("activemq:topic:nsd.offboard") - .unmarshal().json( JsonLibrary.Jackson, org.etsi.osl.model.ExperimentOnBoardDescriptor.class, true) + .unmarshal().json( JsonLibrary.Jackson, org.etsi.osl.model.nfv.ExperimentOnBoardDescriptor.class, true) .bean( BugzillaClient.class, "transformNSDAutomaticOffBoarding2BugBody") .to("direct:bugzilla.bugmanage"); @@ -427,7 +427,7 @@ public class BugzillaRouteBuilder extends RouteBuilder { * Automatic OnBoarding Route Success */ from("activemq:topic:nsd.onboard.success") - .unmarshal().json( JsonLibrary.Jackson, org.etsi.osl.model.ExperimentOnBoardDescriptor.class, true) + .unmarshal().json( JsonLibrary.Jackson, org.etsi.osl.model.nfv.ExperimentOnBoardDescriptor.class, true) .delay(30000) .bean( BugzillaClient.class, "transformNSDAutomaticOnBoarding2BugBody") .process( BugHeaderExtractProcessor ) @@ -438,7 +438,7 @@ public class BugzillaRouteBuilder extends RouteBuilder { * Automatic OnBoarding Route Fail */ from("activemq:topic:nsd.onboard.fail") - .unmarshal().json( JsonLibrary.Jackson, org.etsi.osl.model.ExperimentOnBoardDescriptor.class, true) + .unmarshal().json( JsonLibrary.Jackson, org.etsi.osl.model.nfv.ExperimentOnBoardDescriptor.class, true) .delay(30000) .bean( BugzillaClient.class, "transformNSDAutomaticOnBoarding2BugBody") .process( BugHeaderExtractProcessor ) @@ -449,7 +449,7 @@ public class BugzillaRouteBuilder extends RouteBuilder { * Automatic NS Instantiation Route Success */ from("activemq:topic:nsd.deployment.instantiation.success") - .unmarshal().json( JsonLibrary.Jackson, org.etsi.osl.model.DeploymentDescriptor.class, true) + .unmarshal().json( JsonLibrary.Jackson, org.etsi.osl.model.nfv.DeploymentDescriptor.class, true) .delay(30000) .bean( BugzillaClient.class, "transformNSInstantiation2BugBody") .to("direct:bugzilla.bugmanage"); @@ -458,13 +458,13 @@ public class BugzillaRouteBuilder extends RouteBuilder { * Automatic NS Termination Route Success */ from("activemq:topic:nsd.deployment.termination.success") - .unmarshal().json( JsonLibrary.Jackson, org.etsi.osl.model.DeploymentDescriptor.class, true) + .unmarshal().json( JsonLibrary.Jackson, org.etsi.osl.model.nfv.DeploymentDescriptor.class, true) .delay(30000) .bean( BugzillaClient.class, "transformNSInstantiation2BugBody") .to("direct:bugzilla.bugmanage"); from("activemq:topic:nsd.deployment.termination.fail") - .unmarshal().json( JsonLibrary.Jackson, org.etsi.osl.model.DeploymentDescriptor.class, true) + .unmarshal().json( JsonLibrary.Jackson, org.etsi.osl.model.nfv.DeploymentDescriptor.class, true) .delay(30000) .bean( BugzillaClient.class, "transformNSInstantiation2BugBody") .to("direct:bugzilla.bugmanage"); @@ -474,7 +474,7 @@ public class BugzillaRouteBuilder extends RouteBuilder { * Create Deployment Route Issue */ from("activemq:topic:deployments.create") - .unmarshal().json( JsonLibrary.Jackson, org.etsi.osl.model.DeploymentDescriptor.class, true) + .unmarshal().json( JsonLibrary.Jackson, org.etsi.osl.model.nfv.DeploymentDescriptor.class, true) .bean( BugzillaClient.class, "transformDeployment2BugBody") .to("direct:bugzilla.newIssue"); @@ -482,7 +482,7 @@ public class BugzillaRouteBuilder extends RouteBuilder { * Update Deployment Route */ from("activemq:topic:deployments.update") - .unmarshal().json( JsonLibrary.Jackson, org.etsi.osl.model.DeploymentDescriptor.class, true) + .unmarshal().json( JsonLibrary.Jackson, org.etsi.osl.model.nfv.DeploymentDescriptor.class, true) .bean( BugzillaClient.class, "transformDeployment2BugBody") .process( BugHeaderExtractProcessor ) .to("direct:bugzilla.updateIssue"); @@ -504,7 +504,7 @@ public class BugzillaRouteBuilder extends RouteBuilder { * NS Scheduling Route */ from("activemq:topic:nsd.schedule") - .unmarshal().json( JsonLibrary.Jackson, org.etsi.osl.model.DeploymentDescriptor.class, true) + .unmarshal().json( JsonLibrary.Jackson, org.etsi.osl.model.nfv.DeploymentDescriptor.class, true) .delay(30000) .bean( BugzillaClient.class, "transformNSInstantiation2BugBody") .to("direct:bugzilla.bugmanage"); @@ -513,7 +513,7 @@ public class BugzillaRouteBuilder extends RouteBuilder { * Automatic NS Instantiation Route Fail */ from("activemq:topic:nsd.deployment.instantiation.fail") - .unmarshal().json( JsonLibrary.Jackson, org.etsi.osl.model.DeploymentDescriptor.class, true) + .unmarshal().json( JsonLibrary.Jackson, org.etsi.osl.model.nfv.DeploymentDescriptor.class, true) .delay(30000) .bean( BugzillaClient.class, "transformNSInstantiation2BugBody") .to("direct:bugzilla.bugmanage"); @@ -522,7 +522,7 @@ public class BugzillaRouteBuilder extends RouteBuilder { * Automatic NS Termination Route Success */ from("activemq:topic:nsd.instance.termination.success") - .unmarshal().json( JsonLibrary.Jackson, org.etsi.osl.model.DeploymentDescriptor.class, true) + .unmarshal().json( JsonLibrary.Jackson, org.etsi.osl.model.nfv.DeploymentDescriptor.class, true) .delay(30000) .bean( BugzillaClient.class, "transformNSTermination2BugBody") .to("direct:bugzilla.bugmanage"); @@ -531,7 +531,7 @@ public class BugzillaRouteBuilder extends RouteBuilder { * Automatic NS Termination Route Fail */ from("activemq:topic:nsd.instance.termination.fail") - .unmarshal().json( JsonLibrary.Jackson, org.etsi.osl.model.DeploymentDescriptor.class, true) + .unmarshal().json( JsonLibrary.Jackson, org.etsi.osl.model.nfv.DeploymentDescriptor.class, true) .delay(30000) .bean( BugzillaClient.class, "transformNSTermination2BugBody") .to("direct:bugzilla.bugmanage"); @@ -540,7 +540,7 @@ public class BugzillaRouteBuilder extends RouteBuilder { * Automatic NS Deletion Route Success */ from("activemq:topic:nsd.instance.deletion.success") - .unmarshal().json( JsonLibrary.Jackson, org.etsi.osl.model.DeploymentDescriptor.class, true) + .unmarshal().json( JsonLibrary.Jackson, org.etsi.osl.model.nfv.DeploymentDescriptor.class, true) .delay(30000) .bean( BugzillaClient.class, "transformNSDeletion2BugBody") .to("direct:bugzilla.bugmanage"); @@ -549,7 +549,7 @@ public class BugzillaRouteBuilder extends RouteBuilder { * Automatic NS Deletion Route Fail */ from("activemq:topic:nsd.instance.deletion.fail") - .unmarshal().json( JsonLibrary.Jackson, org.etsi.osl.model.DeploymentDescriptor.class, true) + .unmarshal().json( JsonLibrary.Jackson, org.etsi.osl.model.nfv.DeploymentDescriptor.class, true) .delay(30000) .bean( BugzillaClient.class, "transformNSDeletion2BugBody") .to("direct:bugzilla.bugmanage"); @@ -558,7 +558,7 @@ public class BugzillaRouteBuilder extends RouteBuilder { * Reject Deployment Route Issue */ from("activemq:topic:nsd.deployment.reject") - .unmarshal().json( JsonLibrary.Jackson, org.etsi.osl.model.DeploymentDescriptor.class, true) + .unmarshal().json( JsonLibrary.Jackson, org.etsi.osl.model.nfv.DeploymentDescriptor.class, true) .delay(30000) .bean( BugzillaClient.class, "transformDeployment2BugBody") .to("direct:bugzilla.bugmanage");