Adding owner to jobInfo 80/5180/2
authorPatrikBuhr <patrik.buhr@est.tech>
Fri, 27 Nov 2020 11:11:20 +0000 (12:11 +0100)
committerPatrikBuhr <patrik.buhr@est.tech>
Mon, 30 Nov 2020 13:19:08 +0000 (14:19 +0100)
Added job owner to Job Ino in producer API.

Uplift submodule with  policymanagement source from ONAP. This means that GET component configuration is included.

Change-Id: Ib10138080c0d46165e5fb82de4693e6c9acdf983
Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
Issue-ID: NONRTRIC-173

docs/offeredapis/swagger/ecs-api.json
enrichment-coordinator-service/src/main/java/org/oransc/enrichment/controllers/producer/ProducerJobInfo.java
enrichment-coordinator-service/src/main/java/org/oransc/enrichment/repository/EiJob.java
onap/oran

index 740be9b..303a925 100644 (file)
             "tags": ["A1-EI (enrichment information)"]
         }}
     },
-    "host": "localhost:38411",
+    "host": "localhost:34053",
     "definitions": {
         "producer_ei_job_request": {
             "description": "The body of the EI producer callbacks for EI job creation and deletion",
             "title": "producer_ei_job_request",
             "required": ["ei_job_identity"],
             "properties": {
+                "owner": {
+                    "description": "The owner of the job",
+                    "type": "string"
+                },
                 "ei_job_identity": {
                     "description": "Idenitity of the EI job",
                     "type": "string"
index 1380cca..c02c280 100644 (file)
@@ -55,15 +55,21 @@ public class ProducerJobInfo {
     @JsonProperty("target_uri")
     public String targetUri;
 
-    public ProducerJobInfo(Object jobData, String id, String typeId, String targetUri) {
+    @ApiModelProperty(value = "The owner of the job")
+    @SerializedName("owner")
+    @JsonProperty("owner")
+    public String owner;
+
+    public ProducerJobInfo(Object jobData, String id, String typeId, String targetUri, String owner) {
         this.id = id;
         this.jobData = jobData;
         this.typeId = typeId;
         this.targetUri = targetUri;
+        this.owner = owner;
     }
 
     public ProducerJobInfo(EiJob job) {
-        this(job.getJobData(), job.getId(), job.getTypeId(), job.getTargetUrl());
+        this(job.getJobData(), job.getId(), job.getTypeId(), job.getTargetUrl(), job.getOwner());
     }
 
     public ProducerJobInfo() {
index 50fe65e..3b56b4f 160000 (submodule)
--- a/onap/oran
+++ b/onap/oran
@@ -1 +1 @@
-Subproject commit 50fe65ea5daca6935cdbc1155adbfb53f5a28c40
+Subproject commit 3b56b4ff40eba05108651d04df4b9a2ef3a4eb1d