X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=PolicyEngineAPI%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Fpolicy%2Fapi%2FDecisionRequestParameters.java;h=5cf9d641d15ae47265c74dc645cb2ffc67c90b69;hb=ce1cf85647ab1ae3c292fd1b1286ea0dbb56223f;hp=27e419fb1ce1b811bbeb8f9be53dd8ecd0f7938a;hpb=827a2016429bc377e28d2a414b6bcbdf8b6dc924;p=policy%2Fengine.git diff --git a/PolicyEngineAPI/src/main/java/org/onap/policy/api/DecisionRequestParameters.java b/PolicyEngineAPI/src/main/java/org/onap/policy/api/DecisionRequestParameters.java index 27e419fb1..5cf9d641d 100644 --- a/PolicyEngineAPI/src/main/java/org/onap/policy/api/DecisionRequestParameters.java +++ b/PolicyEngineAPI/src/main/java/org/onap/policy/api/DecisionRequestParameters.java @@ -30,7 +30,7 @@ import java.util.UUID; * @version 0.1 */ public class DecisionRequestParameters { - private String onapComponentName; + private String onapName; private Map decisionAttributes; private UUID requestID; @@ -43,32 +43,56 @@ public class DecisionRequestParameters { /** * Constructor with Parameters * - * @param onapComponentName the String format of the onapComponentName whose Decision is required. + * @param onapName the String format of the onapName whose Decision is required. * @param decisionAttributes the Map of String,String format of the decisionAttributes that contain the ID and values. * @param requestID unique request ID which will be passed throughout the ONAP components to correlate logging messages. */ - public DecisionRequestParameters(String onapComponentName, Map decisionAttributes, UUID requestID){ - this.onapComponentName = onapComponentName; + public DecisionRequestParameters(String onapName, Map decisionAttributes, UUID requestID){ + this.onapName = onapName; this.decisionAttributes = decisionAttributes; this.requestID = requestID; } /** - * Gets the ONAPComponentName of the Decision Request Parameters. + * Gets the onapName of the Decision Request Parameters. * - * @return ONAPComponentName the String format of the onapComponentName of the Decision Request Parameters. + * @return onapName the String format of the onapName of the Decision Request Parameters. */ - public String getONAPComponentName() { - return onapComponentName; + public String getOnapName() { + return onapName; } + + /** + * Gets the onapName of the Decision Request Parameters. + * + * @return onapName the String format of the onapName of the Decision Request Parameters. + * @deprecated use {@link #getOnapName()} instead. + */ + @Deprecated + public String getECOMPComponentName() { + return onapName; + } + /** - * Sets the ONAPComponentName of the Decision Request parameters. + * Sets the onapName of the Decision Request parameters. * - * @param onapComponentName the String format of the onapComponentName whose Decision is required. + * @param onapName the String format of the onapName whose Decision is required. */ - public void setONAPComponentName(String onapComponentName) { - this.onapComponentName = onapComponentName; + public void setOnapName(String onapName) { + this.onapName = onapName; } + + /** + * Sets the ecompComponentName of the Decision Request parameters. + * + * @param ecompName the String format of the onapName whose Decision is required. + * @deprecated use {@link #setOnapName(String)} instead. + */ + @Deprecated + public void setECOMPComponentName(String ecompName) { + this.onapName = ecompName; + } + /** * Gets the Decision Attributes from Decision Request Parameters. *