aboutsummaryrefslogtreecommitdiffstats
path: root/mso-api-handlers/mso-api-handler-infra/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'mso-api-handlers/mso-api-handler-infra/src/main/java')
-rw-r--r--mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/MsoRequest.java4
-rw-r--r--mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/ServiceInstances.java2
-rw-r--r--mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/serviceinstancebeans/RequestParameters.java12
3 files changed, 7 insertions, 11 deletions
diff --git a/mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/MsoRequest.java b/mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/MsoRequest.java
index 9b975facc6..27c3c2b283 100644
--- a/mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/MsoRequest.java
+++ b/mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/MsoRequest.java
@@ -254,7 +254,7 @@ public class MsoRequest {
RequestParameters requestParameters = sir.getRequestDetails().getRequestParameters();
if(this.reqVersion >= 3){
if(requestParameters!=null){
- this.aLaCarteFlag = sir.getRequestDetails().getRequestParameters().getALaCarte();
+ this.aLaCarteFlag = sir.getRequestDetails().getRequestParameters().isaLaCarte();
}else{
this.aLaCarteFlag = false;
}
@@ -1010,4 +1010,4 @@ public class MsoRequest {
public void setReqVersion(int reqVersion) {
this.reqVersion = reqVersion;
}
-} \ No newline at end of file
+}
diff --git a/mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/ServiceInstances.java b/mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/ServiceInstances.java
index 66a14db610..6413c4bf57 100644
--- a/mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/ServiceInstances.java
+++ b/mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/ServiceInstances.java
@@ -771,7 +771,7 @@ public class ServiceInstances {
}
//if an aLaCarte flag was sent in the request, throw an error if the recipe was not found
RequestParameters reqParam = msoRequest.getServiceInstancesRequest().getRequestDetails().getRequestParameters();
- if(reqParam!=null && reqParam.isALaCarteSet() && recipe==null){
+ if(reqParam!=null && reqParam.isaLaCarteSet() && recipe==null){
return null;
}else if (recipe == null) { //aLaCarte wasn't sent, so we'll try the default
serviceRecord = db.getServiceByModelName(defaultServiceModelName);
diff --git a/mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/serviceinstancebeans/RequestParameters.java b/mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/serviceinstancebeans/RequestParameters.java
index a2acc3c3e4..f34272954d 100644
--- a/mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/serviceinstancebeans/RequestParameters.java
+++ b/mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/serviceinstancebeans/RequestParameters.java
@@ -36,7 +36,7 @@ public class RequestParameters {
@JsonSerialize(include=Inclusion.ALWAYS)
private boolean aLaCarte = false;
@JsonIgnore
- private boolean isALaCarteSet = false;
+ private boolean aLaCarteSet = false;
@JsonSerialize(include=Inclusion.ALWAYS)
private boolean autoBuildVfModules = false;
@JsonSerialize(include=Inclusion.ALWAYS)
@@ -55,18 +55,14 @@ public class RequestParameters {
this.subscriptionServiceType = subscriptionServiceType;
}
- public boolean getALaCarte() {
- return aLaCarte;
- }
-
public void setaLaCarte(boolean aLaCarte) {
this.aLaCarte = aLaCarte;
- this.isALaCarteSet = true;
+ this.aLaCarteSet = true;
}
//returns true if aLaCarte param came in on request
- public boolean isALaCarteSet() {
- return isALaCarteSet;
+ public boolean isaLaCarteSet() {
+ return aLaCarteSet;
}
public boolean isaLaCarte() {