X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=enrichment-coordinator-service%2Fsrc%2Fmain%2Fjava%2Forg%2Foransc%2Fenrichment%2Fcontrollers%2Fproducer%2FProducerJobInfo.java;h=c02c280e49d25b6060801c393e20e5c10ec1bb4e;hb=b83e54c2bdab21d7f6ff5c9a4c340e801c93e1c2;hp=a2f5b89c44e1c35fc3cf021e130220fe4e358303;hpb=647744d8ab625d28ea0ecda3e6741e23ba9b0bc7;p=nonrtric.git diff --git a/enrichment-coordinator-service/src/main/java/org/oransc/enrichment/controllers/producer/ProducerJobInfo.java b/enrichment-coordinator-service/src/main/java/org/oransc/enrichment/controllers/producer/ProducerJobInfo.java index a2f5b89c..c02c280e 100644 --- a/enrichment-coordinator-service/src/main/java/org/oransc/enrichment/controllers/producer/ProducerJobInfo.java +++ b/enrichment-coordinator-service/src/main/java/org/oransc/enrichment/controllers/producer/ProducerJobInfo.java @@ -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.jobData(), job.id(), job.typeId(), job.targetUrl()); + this(job.getJobData(), job.getId(), job.getTypeId(), job.getTargetUrl(), job.getOwner()); } public ProducerJobInfo() {