cd66e512a550f2527dbc8a2d31c4f0df2b686342
[so.git] /
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
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
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
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=========================================================
19  */
20
21 package org.onap.so.bpmn.servicedecomposition.generalobjects;
22
23 import java.io.Serializable;
24 import java.util.ArrayList;
25 import java.util.HashMap;
26 import java.util.List;
27 import java.util.Map;
28
29 import com.fasterxml.jackson.annotation.JsonProperty;
30 import com.fasterxml.jackson.annotation.JsonRootName;
31
32 @JsonRootName("request-context")
33 public class RequestContext implements Serializable{
34         
35         private static final long serialVersionUID = -6482733428879732822L;
36
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 Map<String, Object> userParams = new HashMap<>();
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<>();
59         
60         public String getServiceURI() {
61                 return serviceURI;
62         }
63         public void setServiceURI(String serviceURI) {
64                 this.serviceURI = serviceURI;
65         }
66         public String getProductFamilyId() {
67                 return productFamilyId;
68         }
69         public void setProductFamilyId(String productFamilyId) {
70                 this.productFamilyId = productFamilyId;
71         }
72         public String getSource() {
73                 return source;
74         }
75         public void setSource(String source) {
76                 this.source = source;
77         }
78         public String getRequestorId() {
79                 return requestorId;
80         }
81         public void setRequestorId(String requestorId) {
82                 this.requestorId = requestorId;
83         }
84         public String getSubscriptionServiceType() {
85                 return subscriptionServiceType;
86         }
87         public void setSubscriptionServiceType(String subscriptionServiceType) {
88                 this.subscriptionServiceType = subscriptionServiceType;
89         }
90         public Map<String, Object> getUserParams() {
91                 return userParams;
92         }
93         public void setUserParams(Map<String, Object> userParams) {
94                 this.userParams = userParams;
95         }
96         public String getAction() {
97                 return action;
98         }
99         public void setAction(String action) {
100                 this.action = action;
101         }
102         public String getCallbackURL() {
103                 return callbackURL;
104         }
105         public void setCallbackURL(String callbackURL) {
106                 this.callbackURL = callbackURL;
107         }
108         public String getMsoRequestId() {
109                 return msoRequestId;
110         }
111         public void setMsoRequestId(String msoRequestId) {
112                 this.msoRequestId = msoRequestId;
113         }
114         public RequestParameters getRequestParameters() {
115                 return requestParameters;
116         }
117         public void setRequestParameters(RequestParameters requestParameters) {
118                 this.requestParameters = requestParameters;
119         }
120         public List<Map<String, String>> getConfigurationParameters() {
121                 return configurationParameters;
122         }
123         public void setConfigurationParameters(List<Map<String, String>> configurationParameters) {
124                 this.configurationParameters = configurationParameters;
125         }
126 }