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<>();
58 @JsonProperty("application-id")
59 private String applicationId;
61 public String getServiceURI() {
65 public void setServiceURI(String serviceURI) {
66 this.serviceURI = serviceURI;
69 public String getProductFamilyId() {
70 return productFamilyId;
73 public void setProductFamilyId(String productFamilyId) {
74 this.productFamilyId = productFamilyId;
77 public String getSource() {
81 public void setSource(String source) {
85 public String getRequestorId() {
89 public void setRequestorId(String requestorId) {
90 this.requestorId = requestorId;
93 public String getSubscriptionServiceType() {
94 return subscriptionServiceType;
97 public void setSubscriptionServiceType(String subscriptionServiceType) {
98 this.subscriptionServiceType = subscriptionServiceType;
101 public Map<String, Object> getUserParams() {
105 public void setUserParams(Map<String, Object> userParams) {
106 this.userParams = userParams;
109 public String getAction() {
113 public void setAction(String action) {
114 this.action = action;
117 public String getCallbackURL() {
121 public void setCallbackURL(String callbackURL) {
122 this.callbackURL = callbackURL;
125 public String getMsoRequestId() {
129 public void setMsoRequestId(String msoRequestId) {
130 this.msoRequestId = msoRequestId;
133 public RequestParameters getRequestParameters() {
134 return requestParameters;
137 public void setRequestParameters(RequestParameters requestParameters) {
138 this.requestParameters = requestParameters;
141 public List<Map<String, String>> getConfigurationParameters() {
142 return configurationParameters;
145 public void setConfigurationParameters(List<Map<String, String>> configurationParameters) {
146 this.configurationParameters = configurationParameters;
149 public String getApplicationId() {
150 return applicationId;
153 public void setApplicationId(String applicationId) {
154 this.applicationId = applicationId;