From 6fe9c2775a1ff391336ee9f55d284304cf037df3 Mon Sep 17 00:00:00 2001 From: Thugutla Sailakshmi Date: Fri, 26 Jul 2019 01:41:39 +0530 Subject: CCSDK-1538 -Move this constructor to comply with Java Code Conventions Move this constructor to comply with Java Code Conventions Issue-ID: CCSDK-1538 Change-Id: I10ac0c405f137cc8bda607bf08cc7476ebd472f0 Signed-off-by: Thugutla Sailakshmi --- .../dashboard/model/CloudifyExecutionRequest.java | 29 ++++++++++++---------- 1 file changed, 16 insertions(+), 13 deletions(-) (limited to 'ccsdk-app-common/src/main/java') diff --git a/ccsdk-app-common/src/main/java/org/onap/ccsdk/dashboard/model/CloudifyExecutionRequest.java b/ccsdk-app-common/src/main/java/org/onap/ccsdk/dashboard/model/CloudifyExecutionRequest.java index e296565..a9bad02 100644 --- a/ccsdk-app-common/src/main/java/org/onap/ccsdk/dashboard/model/CloudifyExecutionRequest.java +++ b/ccsdk-app-common/src/main/java/org/onap/ccsdk/dashboard/model/CloudifyExecutionRequest.java @@ -3,6 +3,8 @@ * * ================================================================================= * Copyright (c) 2019 AT&T Intellectual Property. All rights reserved. + * + * Modifications Copyright (C) 2019 IBM * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -37,6 +39,20 @@ public class CloudifyExecutionRequest extends ECTransportModel { public String tenant; /** Parameters: retrieve using the GET /deployments */ public Map parameters; + + @JsonCreator + public CloudifyExecutionRequest(@JsonProperty("deployment_id") String deployment_id, + @JsonProperty("workflow_id") String workflow_id, + @JsonProperty("allow_custom_parameters") Boolean allowCustomParameters, + @JsonProperty("force") Boolean force, @JsonProperty("tenant") String tenant, + @JsonProperty("parameters") Map parameters) { + this.deployment_id = deployment_id; + this.workflow_id = workflow_id; + this.allow_custom_parameters = allowCustomParameters; + this.force = force; + this.tenant = tenant; + this.parameters = parameters; + } public String getDeployment_id() { return deployment_id; @@ -86,18 +102,5 @@ public class CloudifyExecutionRequest extends ECTransportModel { this.parameters = parameters; } - @JsonCreator - public CloudifyExecutionRequest(@JsonProperty("deployment_id") String deployment_id, - @JsonProperty("workflow_id") String workflow_id, - @JsonProperty("allow_custom_parameters") Boolean allowCustomParameters, - @JsonProperty("force") Boolean force, @JsonProperty("tenant") String tenant, - @JsonProperty("parameters") Map parameters) { - this.deployment_id = deployment_id; - this.workflow_id = workflow_id; - this.allow_custom_parameters = allowCustomParameters; - this.force = force; - this.tenant = tenant; - this.parameters = parameters; - } } -- cgit 1.2.3-korg