diff options
author | Seshu Kumar M <seshu.kumar.m@huawei.com> | 2020-09-26 16:28:07 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-09-26 16:28:07 +0000 |
commit | a501ef4b6515b6601d5ea84abeb4c019ce9086ce (patch) | |
tree | ce425f11d4b01d93896ae3304cf5983b63354264 /common | |
parent | dc22a628fed70b82d074c509ebd91d51c33e20ec (diff) | |
parent | 3e4d7035ff7fc105465840bfaec14da47f64b3aa (diff) |
Merge "Update NSMF workflow of allocate"
Diffstat (limited to 'common')
-rw-r--r-- | common/src/main/java/org/onap/so/beans/nsmf/SliceTaskParamsAdapter.java | 12 | ||||
-rw-r--r-- | common/src/main/java/org/onap/so/beans/nsmf/oof/NssiReqBody.java | 12 |
2 files changed, 18 insertions, 6 deletions
diff --git a/common/src/main/java/org/onap/so/beans/nsmf/SliceTaskParamsAdapter.java b/common/src/main/java/org/onap/so/beans/nsmf/SliceTaskParamsAdapter.java index 87de04a6ee..6ad752f047 100644 --- a/common/src/main/java/org/onap/so/beans/nsmf/SliceTaskParamsAdapter.java +++ b/common/src/main/java/org/onap/so/beans/nsmf/SliceTaskParamsAdapter.java @@ -19,12 +19,16 @@ */ package org.onap.so.beans.nsmf; -import lombok.Data; +import lombok.*; import org.onap.so.beans.nsmf.oof.TemplateInfo; import java.util.Map; @Data +@NoArgsConstructor +@AllArgsConstructor +@ToString +@Builder public class SliceTaskParamsAdapter { private static final long serialVersionUID = -7785578865170503301L; @@ -53,4 +57,10 @@ public class SliceTaskParamsAdapter { private SliceTaskInfo<CnSliceProfile> cnSliceTaskInfo; private SliceTaskInfo<AnSliceProfile> anSliceTaskInfo; + + public String convertToJson() { + SliceTaskParams sliceTaskParams = new SliceTaskParams(); + sliceTaskParams.setServiceId(serviceId); + return sliceTaskParams.convertToJson(); + } } diff --git a/common/src/main/java/org/onap/so/beans/nsmf/oof/NssiReqBody.java b/common/src/main/java/org/onap/so/beans/nsmf/oof/NssiReqBody.java index 7cfb60c113..96c5b343fd 100644 --- a/common/src/main/java/org/onap/so/beans/nsmf/oof/NssiReqBody.java +++ b/common/src/main/java/org/onap/so/beans/nsmf/oof/NssiReqBody.java @@ -19,17 +19,19 @@ */ package org.onap.so.beans.nsmf.oof; -import lombok.Data; -import org.onap.so.beans.nsmf.ServiceProfile; +import lombok.*; import java.io.Serializable; -import java.util.Map; @Data -public class NssiReqBody implements Serializable { +@NoArgsConstructor +@AllArgsConstructor +@ToString +@Builder +public class NssiReqBody<T> implements Serializable { private static final long serialVersionUID = -76327522074333341L; - private Map<String, Object> serviceProfile; + private T sliceProfile; private RequestInfo requestInfo; |