diff options
author | Patrick Brady <pb071s@att.com> | 2017-04-20 21:10:43 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2017-04-20 21:10:43 +0000 |
commit | b06810bb67667edb0d9d9087cc1f978bda988c87 (patch) | |
tree | 3d5bdba464b3156a4ba24c03aa83897816985171 /appc-dispatcher/appc-command-executor/appc-command-executor-api | |
parent | f061217a2cfe6030cf147c852a4d6d183e7fb2e0 (diff) | |
parent | c9373d8f5809fe650c30832e9409282cb34688f8 (diff) |
Merge "Refactor Status to be immutable"
Diffstat (limited to 'appc-dispatcher/appc-command-executor/appc-command-executor-api')
-rw-r--r-- | appc-dispatcher/appc-command-executor/appc-command-executor-api/src/main/java/org/openecomp/appc/executor/objects/LCMCommandStatus.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/appc-dispatcher/appc-command-executor/appc-command-executor-api/src/main/java/org/openecomp/appc/executor/objects/LCMCommandStatus.java b/appc-dispatcher/appc-command-executor/appc-command-executor-api/src/main/java/org/openecomp/appc/executor/objects/LCMCommandStatus.java index 4e3a40e75..14bd8152c 100644 --- a/appc-dispatcher/appc-command-executor/appc-command-executor-api/src/main/java/org/openecomp/appc/executor/objects/LCMCommandStatus.java +++ b/appc-dispatcher/appc-command-executor/appc-command-executor-api/src/main/java/org/openecomp/appc/executor/objects/LCMCommandStatus.java @@ -23,6 +23,7 @@ package org.openecomp.appc.executor.objects; import org.apache.commons.lang3.StringUtils; +import org.openecomp.appc.domainmodel.lcm.Status; import org.openecomp.appc.util.MessageFormatter; import java.util.Map; @@ -108,5 +109,9 @@ public enum LCMCommandStatus { ", responseMessage='" + responseMessage + '\'' + '}'; } + + public Status toStatus(Params params) { + return new Status(responseCode, getFormattedMessage(params)); + } } |