diff options
author | Elena Kuleshov <evn@att.com> | 2019-03-15 13:08:49 -0400 |
---|---|---|
committer | Elena Kuleshov <evn@att.com> | 2019-03-15 13:56:31 -0400 |
commit | 2f2a07e0e5cd5f8ecc5a3fed71f296cb3896809a (patch) | |
tree | 7259cdedd6d4ae8166546427fa47233f6d03d993 /mso-api-handlers/mso-api-handler-infra/src/main/java/org/onap | |
parent | c5327d21bafbc8c0284a659704d70106bbd93c7e (diff) |
Update Tasks API with additional fields
Update Tasks API with additional fields and new valid response
Change-Id: I39d85ae599f9274373bbcf66dce4752ee75f16ed
Issue-ID: SO-1594
Signed-off-by: Kuleshov, Elena <evn@att.com>
Diffstat (limited to 'mso-api-handlers/mso-api-handler-infra/src/main/java/org/onap')
3 files changed, 56 insertions, 3 deletions
diff --git a/mso-api-handlers/mso-api-handler-infra/src/main/java/org/onap/so/apihandlerinfra/TasksHandler.java b/mso-api-handlers/mso-api-handler-infra/src/main/java/org/onap/so/apihandlerinfra/TasksHandler.java index 0a72cf68ad..98227f8495 100644 --- a/mso-api-handlers/mso-api-handler-infra/src/main/java/org/onap/so/apihandlerinfra/TasksHandler.java +++ b/mso-api-handlers/mso-api-handler-infra/src/main/java/org/onap/so/apihandlerinfra/TasksHandler.java @@ -294,7 +294,9 @@ public class TasksHandler { taskList.setErrorCode(getOptVariableValue(variables, "errorCode")); taskList.setErrorMessage(getOptVariableValue(variables, "errorMessage")); taskList.setBuildingBlockName(getOptVariableValue(variables, "buildingBlockName")); - taskList.setBuildingBlockStep(getOptVariableValue(variables, "buildingBlockStep")); + taskList.setBuildingBlockStep(getOptVariableValue(variables, "buildingBlockStep")); + taskList.setDescription(getOptVariableValue(variables, "description")); + taskList.setTimeout(getOptVariableValue(variables, "timeout")); String validResponses = getOptVariableValue(variables, "validResponses").toLowerCase(); List<String> items = Arrays.asList(validResponses.split("\\s*,\\s*")); diff --git a/mso-api-handlers/mso-api-handler-infra/src/main/java/org/onap/so/apihandlerinfra/tasksbeans/TaskList.java b/mso-api-handlers/mso-api-handler-infra/src/main/java/org/onap/so/apihandlerinfra/tasksbeans/TaskList.java index b88521f813..ceba65fa97 100644 --- a/mso-api-handlers/mso-api-handler-infra/src/main/java/org/onap/so/apihandlerinfra/tasksbeans/TaskList.java +++ b/mso-api-handlers/mso-api-handler-infra/src/main/java/org/onap/so/apihandlerinfra/tasksbeans/TaskList.java @@ -36,7 +36,9 @@ public class TaskList { protected String errorCode; protected String errorMessage; protected String buildingBlockName; - protected String buildingBlockStep; + protected String buildingBlockStep; + protected String description; + protected String timeout; protected List<String> validResponses; /** @@ -302,6 +304,54 @@ public class TaskList { public void setBuildingBlockStep(String value) { this.buildingBlockStep = value; } + + /** + * Gets the value of the description property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDescription() { + return description; + } + + /** + * Sets the value of the description property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDescription(String value) { + this.description = value; + } + + /** + * Gets the value of the timeout property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTimeout() { + return timeout; + } + + /** + * Sets the value of the timeout property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTimeout(String value) { + this.timeout = value; + } /** * Gets the value of the validResponses property. diff --git a/mso-api-handlers/mso-api-handler-infra/src/main/java/org/onap/so/apihandlerinfra/tasksbeans/ValidResponses.java b/mso-api-handlers/mso-api-handler-infra/src/main/java/org/onap/so/apihandlerinfra/tasksbeans/ValidResponses.java index 977e7c4f2e..18fc7f9739 100644 --- a/mso-api-handlers/mso-api-handler-infra/src/main/java/org/onap/so/apihandlerinfra/tasksbeans/ValidResponses.java +++ b/mso-api-handlers/mso-api-handler-infra/src/main/java/org/onap/so/apihandlerinfra/tasksbeans/ValidResponses.java @@ -38,7 +38,8 @@ public enum ValidResponses { abort, skip, retry, - manual + manual, + resume ; public String value() { |