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;
28 import com.fasterxml.jackson.annotation.JsonProperty;
29 import com.fasterxml.jackson.annotation.JsonRootName;
31 @JsonRootName("request-context")
32 public class RequestContext implements Serializable {
34 private static final long serialVersionUID = -6482733428879732822L;
36 @JsonProperty("product-family-id")
37 private String productFamilyId;
38 @JsonProperty("source")
39 private String source;
40 @JsonProperty("requestor-id")
41 private String requestorId;
42 @JsonProperty("subscription-service-type")
43 private String subscriptionServiceType;
44 @JsonProperty("user-params")
45 private Map<String, Object> userParams = new HashMap<>();
46 @JsonProperty("action")
47 private String action;
48 @JsonProperty("callback-url")
49 private String callbackURL;
50 @JsonProperty("service-uri")
51 private String serviceURI;
52 @JsonProperty("mso-request-id")
53 private String msoRequestId;
54 @JsonProperty("requestParameters")
55 private RequestParameters requestParameters;
56 @JsonProperty("configurationParameters")
57 private List<Map<String, String>> configurationParameters = new ArrayList<>();
59 public String getServiceURI() {
63 public void setServiceURI(String serviceURI) {
64 this.serviceURI = serviceURI;
67 public String getProductFamilyId() {
68 return productFamilyId;
71 public void setProductFamilyId(String productFamilyId) {
72 this.productFamilyId = productFamilyId;
75 public String getSource() {
79 public void setSource(String source) {
83 public String getRequestorId() {
87 public void setRequestorId(String requestorId) {
88 this.requestorId = requestorId;
91 public String getSubscriptionServiceType() {
92 return subscriptionServiceType;
95 public void setSubscriptionServiceType(String subscriptionServiceType) {
96 this.subscriptionServiceType = subscriptionServiceType;
99 public Map<String, Object> getUserParams() {
103 public void setUserParams(Map<String, Object> userParams) {
104 this.userParams = userParams;
107 public String getAction() {
111 public void setAction(String action) {
112 this.action = action;
115 public String getCallbackURL() {
119 public void setCallbackURL(String callbackURL) {
120 this.callbackURL = callbackURL;
123 public String getMsoRequestId() {
127 public void setMsoRequestId(String msoRequestId) {
128 this.msoRequestId = msoRequestId;
131 public RequestParameters getRequestParameters() {
132 return requestParameters;
135 public void setRequestParameters(RequestParameters requestParameters) {
136 this.requestParameters = requestParameters;
139 public List<Map<String, String>> getConfigurationParameters() {
140 return configurationParameters;
143 public void setConfigurationParameters(List<Map<String, String>> configurationParameters) {
144 this.configurationParameters = configurationParameters;