2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
21 package org.onap.so.bpmn.servicedecomposition.generalobjects;
23 import java.io.Serializable;
24 import java.util.ArrayList;
25 import java.util.HashMap;
26 import java.util.List;
29 import com.fasterxml.jackson.annotation.JsonProperty;
30 import com.fasterxml.jackson.annotation.JsonRootName;
32 @JsonRootName("request-context")
33 public class RequestContext implements Serializable{
35 private static final long serialVersionUID = -6482733428879732822L;
37 @JsonProperty("product-family-id")
38 private String productFamilyId;
39 @JsonProperty("source")
40 private String source;
41 @JsonProperty("requestor-id")
42 private String requestorId;
43 @JsonProperty("subscription-service-type")
44 private String subscriptionServiceType;
45 @JsonProperty("user-params")
46 private HashMap<String, String> userParams;
47 @JsonProperty("action")
48 private String action;
49 @JsonProperty("callback-url")
50 private String callbackURL;
51 @JsonProperty("service-uri")
52 private String serviceURI;
53 @JsonProperty("mso-request-id")
54 private String msoRequestId;
55 @JsonProperty("requestParameters")
56 private RequestParameters requestParameters;
57 @JsonProperty("configurationParameters")
58 private List<Map<String, String>> configurationParameters = new ArrayList<>();
60 public String getServiceURI() {
63 public void setServiceURI(String serviceURI) {
64 this.serviceURI = serviceURI;
66 public String getProductFamilyId() {
67 return productFamilyId;
69 public void setProductFamilyId(String productFamilyId) {
70 this.productFamilyId = productFamilyId;
72 public String getSource() {
75 public void setSource(String source) {
78 public String getRequestorId() {
81 public void setRequestorId(String requestorId) {
82 this.requestorId = requestorId;
84 public String getSubscriptionServiceType() {
85 return subscriptionServiceType;
87 public void setSubscriptionServiceType(String subscriptionServiceType) {
88 this.subscriptionServiceType = subscriptionServiceType;
90 public HashMap<String, String> getUserParams() {
93 public void setUserParams(HashMap<String, String> userParams) {
94 this.userParams = userParams;
96 public String getAction() {
99 public void setAction(String action) {
100 this.action = action;
102 public String getCallbackURL() {
105 public void setCallbackURL(String callbackURL) {
106 this.callbackURL = callbackURL;
108 public String getMsoRequestId() {
111 public void setMsoRequestId(String msoRequestId) {
112 this.msoRequestId = msoRequestId;
114 public RequestParameters getRequestParameters() {
115 return requestParameters;
117 public void setRequestParameters(RequestParameters requestParameters) {
118 this.requestParameters = requestParameters;
120 public List<Map<String, String>> getConfigurationParameters() {
121 return configurationParameters;
123 public void setConfigurationParameters(List<Map<String, String>> configurationParameters) {
124 this.configurationParameters = configurationParameters;