0193469d93da2c9746822ca3ed97a5d8b33690b8
[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 import com.fasterxml.jackson.annotation.JsonProperty;
29 import com.fasterxml.jackson.annotation.JsonRootName;
30
31 @JsonRootName("request-context")
32 public class RequestContext implements Serializable {
33
34     private static final long serialVersionUID = -6482733428879732822L;
35
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;
60
61     public String getServiceURI() {
62         return serviceURI;
63     }
64
65     public void setServiceURI(String serviceURI) {
66         this.serviceURI = serviceURI;
67     }
68
69     public String getProductFamilyId() {
70         return productFamilyId;
71     }
72
73     public void setProductFamilyId(String productFamilyId) {
74         this.productFamilyId = productFamilyId;
75     }
76
77     public String getSource() {
78         return source;
79     }
80
81     public void setSource(String source) {
82         this.source = source;
83     }
84
85     public String getRequestorId() {
86         return requestorId;
87     }
88
89     public void setRequestorId(String requestorId) {
90         this.requestorId = requestorId;
91     }
92
93     public String getSubscriptionServiceType() {
94         return subscriptionServiceType;
95     }
96
97     public void setSubscriptionServiceType(String subscriptionServiceType) {
98         this.subscriptionServiceType = subscriptionServiceType;
99     }
100
101     public Map<String, Object> getUserParams() {
102         return userParams;
103     }
104
105     public void setUserParams(Map<String, Object> userParams) {
106         this.userParams = userParams;
107     }
108
109     public String getAction() {
110         return action;
111     }
112
113     public void setAction(String action) {
114         this.action = action;
115     }
116
117     public String getCallbackURL() {
118         return callbackURL;
119     }
120
121     public void setCallbackURL(String callbackURL) {
122         this.callbackURL = callbackURL;
123     }
124
125     public String getMsoRequestId() {
126         return msoRequestId;
127     }
128
129     public void setMsoRequestId(String msoRequestId) {
130         this.msoRequestId = msoRequestId;
131     }
132
133     public RequestParameters getRequestParameters() {
134         return requestParameters;
135     }
136
137     public void setRequestParameters(RequestParameters requestParameters) {
138         this.requestParameters = requestParameters;
139     }
140
141     public List<Map<String, String>> getConfigurationParameters() {
142         return configurationParameters;
143     }
144
145     public void setConfigurationParameters(List<Map<String, String>> configurationParameters) {
146         this.configurationParameters = configurationParameters;
147     }
148
149     public String getApplicationId() {
150         return applicationId;
151     }
152
153     public void setApplicationId(String applicationId) {
154         this.applicationId = applicationId;
155     }
156 }