diff options
author | 2018-03-22 15:01:28 +0530 | |
---|---|---|
committer | 2018-03-22 15:02:46 +0000 | |
commit | 79550d5dc1c5bcb79123128aa37b381a368e38d9 (patch) | |
tree | 0b8391355c6bcd5cafb2ae48ed2871fc905ca8e5 /services/activity-spec/activity-spec-web/activity-spec-service/src/main/java/org/openecomp/activityspec/api/rest/mapping/MapActivitySpecToActivitySpecGetResponse.java | |
parent | 473f768e025412d43afa1f403ba638b913ffce83 (diff) |
Enhance Activity Spec
Enhance Activity Spec to include additional fields type and content.
Change-Id: Ic39aa21ef265bf07a5522a2f46f84d378316c7aa
Issue-ID: SDC-1048
Signed-off-by: shrikantawachar <shrikant.awachar@amdocs.com>
Diffstat (limited to 'services/activity-spec/activity-spec-web/activity-spec-service/src/main/java/org/openecomp/activityspec/api/rest/mapping/MapActivitySpecToActivitySpecGetResponse.java')
-rw-r--r-- | services/activity-spec/activity-spec-web/activity-spec-service/src/main/java/org/openecomp/activityspec/api/rest/mapping/MapActivitySpecToActivitySpecGetResponse.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/services/activity-spec/activity-spec-web/activity-spec-service/src/main/java/org/openecomp/activityspec/api/rest/mapping/MapActivitySpecToActivitySpecGetResponse.java b/services/activity-spec/activity-spec-web/activity-spec-service/src/main/java/org/openecomp/activityspec/api/rest/mapping/MapActivitySpecToActivitySpecGetResponse.java index 25e0f6e9c4..697e1bd667 100644 --- a/services/activity-spec/activity-spec-web/activity-spec-service/src/main/java/org/openecomp/activityspec/api/rest/mapping/MapActivitySpecToActivitySpecGetResponse.java +++ b/services/activity-spec/activity-spec-web/activity-spec-service/src/main/java/org/openecomp/activityspec/api/rest/mapping/MapActivitySpecToActivitySpecGetResponse.java @@ -32,18 +32,20 @@ public class MapActivitySpecToActivitySpecGetResponse extends MappingBase<Activi target.setName(source.getName()); target.setDescription(source.getDescription()); target.setCategoryList(source.getCategoryList()); - if (Objects.nonNull(source.getInputParameters())) { - target.setInputParameters(source.getInputParameters().stream().map( + if (Objects.nonNull(source.getInputs())) { + target.setInputs(source.getInputs().stream().map( activitySpecParameter -> new MapActivityParameterToDto() .applyMapping(activitySpecParameter, ActivitySpecParameterDto .class)).collect(Collectors.toList())); } - if (Objects.nonNull(source.getOutputParameters())) { - target.setOutputParameters(source.getOutputParameters().stream().map( + if (Objects.nonNull(source.getOutputs())) { + target.setOutputs(source.getOutputs().stream().map( activitySpecParameter -> new MapActivityParameterToDto() .applyMapping(activitySpecParameter, ActivitySpecParameterDto .class)).collect(Collectors.toList())); } target.setStatus(source.getStatus()); + target.setType(source.getType()); + target.setContent(source.getContent()); } } |